fix: rename request-human route to handoff for Iris MVC compatibility

PostHandoff maps to POST /handoff correctly in Iris MVC auto-routing.
This commit is contained in:
Aibo117
2026-05-26 15:59:56 +08:00
parent 9fde44f11d
commit ff391c31c1
3 changed files with 2 additions and 2 deletions
@@ -185,7 +185,7 @@ func (c *ConversationController) PostTransfer() *web.JsonResult {
return web.JsonSuccess()
}
func (c *ConversationController) PostRequest_human() *web.JsonResult {
func (c *ConversationController) PostHandoff() *web.JsonResult {
operator, err := services.AuthService.RequirePermission(c.Ctx, constants.PermissionConversationAssign)
if err != nil {
return web.JsonError(err)