0b4a1b4594
- Updated OSSStorage validation errors to use internationalized messages. - Changed error messages in provider.go for unsupported file storage types. - Refactored tag_service.go to replace hardcoded error messages with internationalized versions. - Updated ticket_service.go to use internationalized error messages for various validation checks. - Refactored ticket_tag_service.go to use internationalized error messages for tag validation. - Changed ticket_view_service.go to use internationalized error messages for view validation. - Updated tool_catalog_service.go to use internationalized error messages for tool code validation. - Refactored user_service.go to replace error messages with internationalized versions. - Updated ws_service.go to use internationalized error messages for WebSocket handling. - Refactored wxwork_kf_inbound_service.go to use internationalized error messages for message handling. - Updated wxwork_kf_outbound_service.go to use internationalized error messages for outbound message handling. - Refactored wxwork_login_service.go to use internationalized error messages for login handling. - Updated login.go in wxwork package to use internationalized error messages for login state and ticket validation.
81 lines
2.3 KiB
Go
81 lines
2.3 KiB
Go
package request
|
|
|
|
import "agent-desk/internal/pkg/enums"
|
|
|
|
type CreateAgentProfileRequest struct {
|
|
UserID int64 `json:"userId"`
|
|
TeamID int64 `json:"teamId"`
|
|
AgentCode string `json:"agentCode"`
|
|
DisplayName string `json:"displayName"`
|
|
Avatar string `json:"avatar"`
|
|
ServiceStatus enums.ServiceStatus `json:"serviceStatus"`
|
|
MaxConcurrentCount int `json:"maxConcurrentCount"`
|
|
PriorityLevel int `json:"priorityLevel"`
|
|
AutoAssignEnabled bool `json:"autoAssignEnabled"`
|
|
ReceiveOfflineMessage bool `json:"receiveOfflineMessage"`
|
|
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:"leaderUserId"`
|
|
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:"leaderUserId"`
|
|
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:"teamId"`
|
|
StartAt string `json:"startAt"`
|
|
EndAt string `json:"endAt"`
|
|
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:"startAt"`
|
|
EndAt string `json:"endAt"`
|
|
TeamID int64 `json:"teamId"`
|
|
}
|
|
|
|
type AgentTeamScheduleBatchRequest struct {
|
|
TeamIDs []int64 `json:"teamIds"`
|
|
StartDate string `json:"startDate"`
|
|
EndDate string `json:"endDate"`
|
|
Weekdays []int `json:"weekdays"`
|
|
StartTime string `json:"startTime"`
|
|
EndTime string `json:"endTime"`
|
|
Remark string `json:"remark"`
|
|
Locale string `json:"-"`
|
|
}
|