2026-04-09 10:01:23 +08:00
|
|
|
package request
|
|
|
|
|
|
|
|
|
|
type CreateTicketRequest struct {
|
2026-05-02 18:49:10 +08:00
|
|
|
Title string `json:"title"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
Source string `json:"source"`
|
|
|
|
|
Channel string `json:"channel"`
|
|
|
|
|
CustomerID int64 `json:"customerId"`
|
|
|
|
|
ConversationID int64 `json:"conversationId"`
|
|
|
|
|
TagIDs []int64 `json:"tagIds"`
|
|
|
|
|
CurrentAssigneeID int64 `json:"currentAssigneeId"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateTicketFromConversationRequest struct {
|
2026-05-02 18:49:10 +08:00
|
|
|
ConversationID int64 `json:"conversationId"`
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
TagIDs []int64 `json:"tagIds"`
|
|
|
|
|
CurrentAssigneeID int64 `json:"currentAssigneeId"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UpdateTicketRequest struct {
|
2026-05-02 18:49:10 +08:00
|
|
|
TicketID int64 `json:"ticketId"`
|
|
|
|
|
Title string `json:"title"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
TagIDs []int64 `json:"tagIds"`
|
|
|
|
|
CurrentAssigneeID int64 `json:"currentAssigneeId"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AssignTicketRequest struct {
|
|
|
|
|
TicketID int64 `json:"ticketId"`
|
|
|
|
|
ToUserID int64 `json:"toUserId"`
|
|
|
|
|
Reason string `json:"reason"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ChangeTicketStatusRequest struct {
|
|
|
|
|
TicketID int64 `json:"ticketId"`
|
2026-05-02 18:49:10 +08:00
|
|
|
Status string `json:"status"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
2026-05-02 18:49:10 +08:00
|
|
|
type CreateTicketProgressRequest struct {
|
|
|
|
|
TicketID int64 `json:"ticketId"`
|
|
|
|
|
Content string `json:"content"`
|
2026-04-09 10:01:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type BatchAssignTicketRequest struct {
|
|
|
|
|
TicketIDs []int64 `json:"ticketIds"`
|
|
|
|
|
ToUserID int64 `json:"toUserId"`
|
|
|
|
|
Reason string `json:"reason"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type SaveTicketViewRequest struct {
|
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Filters map[string]any `json:"filters"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DeleteTicketViewRequest struct {
|
|
|
|
|
ID int64 `json:"id"`
|
|
|
|
|
}
|