2026-04-09 10:01:23 +08:00
|
|
|
package request
|
|
|
|
|
|
|
|
|
|
type AgentConversationFilter string
|
|
|
|
|
|
|
|
|
|
const (
|
2026-04-11 13:55:11 +08:00
|
|
|
AgentConversationFilterAIServing AgentConversationFilter = "ai_serving"
|
|
|
|
|
AgentConversationFilterMine AgentConversationFilter = "mine"
|
|
|
|
|
AgentConversationFilterActive AgentConversationFilter = "active"
|
|
|
|
|
AgentConversationFilterPending AgentConversationFilter = "pending"
|
|
|
|
|
AgentConversationFilterClosed AgentConversationFilter = "closed"
|
2026-04-09 10:01:23 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type ConversationListRequest struct {
|
|
|
|
|
Status int `json:"status"`
|
2026-08-28 22:23:13 +08:00
|
|
|
ServiceMode int `json:"service_mode"`
|
|
|
|
|
CurrentAssigneeID int64 `json:"current_assignee_id"`
|
2026-04-09 10:01:23 +08:00
|
|
|
Keyword string `json:"keyword"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AssignConversationRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
ConversationID int64 `json:"conversation_id"`
|
|
|
|
|
AssigneeID int64 `json:"assignee_id"`
|
2026-04-09 10:01:23 +08:00
|
|
|
Reason string `json:"reason"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DispatchConversationRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
ConversationID int64 `json:"conversation_id"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type TransferConversationRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
ConversationID int64 `json:"conversation_id"`
|
|
|
|
|
ToUserID int64 `json:"to_user_id"`
|
2026-04-09 10:01:23 +08:00
|
|
|
Reason string `json:"reason"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CloseConversationRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
ConversationID int64 `json:"conversation_id"`
|
|
|
|
|
CloseReason string `json:"close_reason"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReadConversationRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
ConversationID int64 `json:"conversation_id"`
|
|
|
|
|
MessageID int64 `json:"message_id"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
2026-08-28 22:23:13 +08:00
|
|
|
type ExecuteCustomerQuickActionRequest struct {
|
|
|
|
|
ConversationID int64 `json:"conversation_id"`
|
|
|
|
|
Code string `json:"code"`
|
|
|
|
|
ClientMsgID string `json:"client_msg_id"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|