18c9354095
- 注入数据库、运行时配置、统一响应、文件存储和平台 AI 能力,补充业务读写工具与客户快捷操作契约。 - 移除模块内重复的组织、客户、工单、标签、技能、旧工作流、MCP 和迁移实现,将身份权限与业务主体交由宿主管理。 - 使用 libSQL 重构向量存储,并完善图片消息、访客身份、排队调度、企业微信和支持聊天页面。 - 统一 HTTP、DTO 与 WebSocket 的 snake_case 协议,补齐模块初始化、业务动作和公共载荷等回归测试。
81 lines
2.3 KiB
Go
81 lines
2.3 KiB
Go
package request
|
|
|
|
import "code.tczkiot.com/wlw/ai-agent/internal/pkg/enums"
|
|
|
|
type CreateAgentProfileRequest struct {
|
|
UserID int64 `json:"user_id"`
|
|
TeamID int64 `json:"team_id"`
|
|
AgentCode string `json:"agent_code"`
|
|
DisplayName string `json:"display_name"`
|
|
Avatar string `json:"avatar"`
|
|
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"`
|
|
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"`
|
|
LeaderUserID int64 `json:"leader_user_id"`
|
|
Status int `json:"status"`
|
|
Description string `json:"description"`
|
|
Remark string `json:"remark"`
|
|
}
|
|
|
|
type UpdateAgentTeamRequest struct {
|
|
ID int64 `json:"id"`
|
|
Name string `json:"name"`
|
|
LeaderUserID int64 `json:"leader_user_id"`
|
|
Status int `json:"status"`
|
|
Description string `json:"description"`
|
|
Remark string `json:"remark"`
|
|
}
|
|
|
|
type DeleteAgentTeamRequest struct {
|
|
ID int64 `json:"id"`
|
|
}
|
|
|
|
type CreateAgentTeamScheduleRequest struct {
|
|
TeamID int64 `json:"team_id"`
|
|
StartAt string `json:"start_at"`
|
|
EndAt string `json:"end_at"`
|
|
Remark string `json:"remark"`
|
|
}
|
|
|
|
type UpdateAgentTeamScheduleRequest struct {
|
|
ID int64 `json:"id"`
|
|
CreateAgentTeamScheduleRequest
|
|
}
|
|
|
|
type DeleteAgentTeamScheduleRequest struct {
|
|
ID int64 `json:"id"`
|
|
}
|
|
|
|
type AgentTeamScheduleCalendarRequest struct {
|
|
StartAt string `json:"start_at"`
|
|
EndAt string `json:"end_at"`
|
|
TeamID int64 `json:"team_id"`
|
|
}
|
|
|
|
type AgentTeamScheduleBatchRequest struct {
|
|
TeamIDs []int64 `json:"team_ids"`
|
|
StartDate string `json:"start_date"`
|
|
EndDate string `json:"end_date"`
|
|
Weekdays []int `json:"weekdays"`
|
|
StartTime string `json:"start_time"`
|
|
EndTime string `json:"end_time"`
|
|
Remark string `json:"remark"`
|
|
Locale string `json:"-"`
|
|
}
|