2026-04-09 10:01:23 +08:00
|
|
|
package request
|
|
|
|
|
|
2026-08-21 00:41:07 +08:00
|
|
|
import "code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
|
2026-04-09 10:01:23 +08:00
|
|
|
|
|
|
|
|
type CreateAgentProfileRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
UserID int64 `json:"user_id"`
|
|
|
|
|
TeamID int64 `json:"team_id"`
|
|
|
|
|
AgentCode string `json:"agent_code"`
|
|
|
|
|
DisplayName string `json:"display_name"`
|
2026-04-09 10:01:23 +08:00
|
|
|
Avatar string `json:"avatar"`
|
2026-08-28 22:23:13 +08:00
|
|
|
ServiceStatus enums.ServiceStatus `json:"service_status"`
|
|
|
|
|
MaxConcurrentCount int `json:"max_concurrent_count"`
|
|
|
|
|
PriorityLevel int `json:"priority_level"`
|
|
|
|
|
AutoAssignEnabled bool `json:"auto_assign_enabled"`
|
|
|
|
|
ReceiveOfflineMessage bool `json:"receive_offline_message"`
|
2026-04-09 10:01:23 +08:00
|
|
|
Remark string `json:"remark"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UpdateAgentProfileRequest struct {
|
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
CreateAgentProfileRequest
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DeleteAgentProfileRequest struct {
|
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateAgentTeamRequest struct {
|
|
|
|
|
Name string `json:"name"`
|
2026-08-28 22:23:13 +08:00
|
|
|
LeaderUserID int64 `json:"leader_user_id"`
|
2026-04-09 10:01:23 +08:00
|
|
|
Status int `json:"status"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
Remark string `json:"remark"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UpdateAgentTeamRequest struct {
|
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
2026-08-28 22:23:13 +08:00
|
|
|
LeaderUserID int64 `json:"leader_user_id"`
|
2026-04-09 10:01:23 +08:00
|
|
|
Status int `json:"status"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
Remark string `json:"remark"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DeleteAgentTeamRequest struct {
|
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateAgentTeamScheduleRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
TeamID int64 `json:"team_id"`
|
|
|
|
|
StartAt string `json:"start_at"`
|
|
|
|
|
EndAt string `json:"end_at"`
|
2026-04-29 15:09:35 +08:00
|
|
|
Remark string `json:"remark"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UpdateAgentTeamScheduleRequest struct {
|
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
CreateAgentTeamScheduleRequest
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DeleteAgentTeamScheduleRequest struct {
|
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
}
|
2026-04-29 09:23:54 +08:00
|
|
|
|
|
|
|
|
type AgentTeamScheduleCalendarRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
StartAt string `json:"start_at"`
|
|
|
|
|
EndAt string `json:"end_at"`
|
|
|
|
|
TeamID int64 `json:"team_id"`
|
2026-04-29 09:23:54 +08:00
|
|
|
}
|
2026-04-29 19:03:58 +08:00
|
|
|
|
|
|
|
|
type AgentTeamScheduleBatchRequest struct {
|
2026-08-28 22:23:13 +08:00
|
|
|
TeamIDs []int64 `json:"team_ids"`
|
|
|
|
|
StartDate string `json:"start_date"`
|
|
|
|
|
EndDate string `json:"end_date"`
|
2026-04-29 19:03:58 +08:00
|
|
|
Weekdays []int `json:"weekdays"`
|
2026-08-28 22:23:13 +08:00
|
|
|
StartTime string `json:"start_time"`
|
|
|
|
|
EndTime string `json:"end_time"`
|
2026-04-29 19:03:58 +08:00
|
|
|
Remark string `json:"remark"`
|
2026-06-02 20:51:13 +08:00
|
|
|
Locale string `json:"-"`
|
2026-04-29 19:03:58 +08:00
|
|
|
}
|