Appearance
支持 API
1. "获取FAQ列表"
- route definition
- Url: /api/v1/support/faq
- Method: GET
- Request:
SupportFAQListRequest - Response:
SupportFAQListResponse
- request definition
go
type SupportFAQListRequest struct {
Category string `form:"category,optional"`
}- response definition
go
type SupportFAQListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}2. "创建FAQ"
- route definition
- Url: /api/v1/support/faq
- Method: POST
- Request:
SupportFAQCreateRequest - Response:
SupportFAQCreateResponse
- request definition
go
type SupportFAQCreateRequest struct {
Category string `json:"category"`
Question string `json:"question"`
Answer string `json:"answer"`
}- response definition
go
type SupportFAQCreateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}3. "更新FAQ"
- route definition
- Url: /api/v1/support/faq/:id
- Method: PUT
- Request:
SupportFAQUpdateRequest - Response:
SupportFAQUpdateResponse
- request definition
go
type SupportFAQUpdateRequest struct {
ID string `path:"id"`
Category string `json:"category,optional"`
Question string `json:"question,optional"`
Answer string `json:"answer,optional"`
}- response definition
go
type SupportFAQUpdateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}4. "删除FAQ"
- route definition
- Url: /api/v1/support/faq/:id
- Method: DELETE
- Request:
SupportFAQDeleteRequest - Response:
SupportFAQDeleteResponse
- request definition
go
type SupportFAQDeleteRequest struct {
ID string `path:"id"`
}- response definition
go
type SupportFAQDeleteResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}5. "获取反馈列表"
- route definition
- Url: /api/v1/support/feedback
- Method: GET
- Request:
SupportFeedbackListRequest - Response:
SupportFeedbackListResponse
- request definition
go
type SupportFeedbackListRequest struct {
Page int `form:"page,optional"`
PageSize int `form:"pageSize,optional"`
}- response definition
go
type SupportFeedbackListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}6. "创建反馈"
- route definition
- Url: /api/v1/support/feedback
- Method: POST
- Request:
SupportFeedbackCreateRequest - Response:
SupportFeedbackCreateResponse
- request definition
go
type SupportFeedbackCreateRequest struct {
Type string `json:"type"`
Content string `json:"content"`
}- response definition
go
type SupportFeedbackCreateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}7. "更新反馈"
- route definition
- Url: /api/v1/support/feedback/:id
- Method: PUT
- Request:
SupportFeedbackUpdateRequest - Response:
SupportFeedbackUpdateResponse
- request definition
go
type SupportFeedbackUpdateRequest struct {
ID string `path:"id"`
Status string `json:"status,optional"`
Comment string `json:"comment,optional"`
}- response definition
go
type SupportFeedbackUpdateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}8. "删除反馈"
- route definition
- Url: /api/v1/support/feedback/:id
- Method: DELETE
- Request:
SupportFeedbackDeleteRequest - Response:
SupportFeedbackDeleteResponse
- request definition
go
type SupportFeedbackDeleteRequest struct {
ID string `path:"id"`
}- response definition
go
type SupportFeedbackDeleteResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}9. "获取工单列表"
- route definition
- Url: /api/v1/support/tickets
- Method: GET
- Request:
SupportTicketsListRequest - Response:
SupportTicketsListResponse
- request definition
go
type SupportTicketsListRequest struct {
Page int `form:"page,optional"`
PageSize int `form:"pageSize,optional"`
Status string `form:"status,optional"`
}- response definition
go
type SupportTicketsListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}10. "创建工单"
- route definition
- Url: /api/v1/support/tickets
- Method: POST
- Request:
SupportTicketCreateRequest - Response:
SupportTicketCreateResponse
- request definition
go
type SupportTicketCreateRequest struct {
Subject string `json:"subject"`
Content string `json:"content"`
}- response definition
go
type SupportTicketCreateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}11. "获取工单详情"
- route definition
- Url: /api/v1/support/tickets/:id
- Method: GET
- Request:
SupportTicketDetailRequest - Response:
SupportTicketDetailResponse
- request definition
go
type SupportTicketDetailRequest struct {
ID string `path:"id"`
}- response definition
go
type SupportTicketDetailResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}12. "更新工单"
- route definition
- Url: /api/v1/support/tickets/:id
- Method: PUT
- Request:
SupportTicketUpdateRequest - Response:
SupportTicketUpdateResponse
- request definition
go
type SupportTicketUpdateRequest struct {
ID string `path:"id"`
Subject string `json:"subject,optional"`
Content string `json:"content,optional"`
}- response definition
go
type SupportTicketUpdateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}13. "删除工单"
- route definition
- Url: /api/v1/support/tickets/:id
- Method: DELETE
- Request:
SupportTicketDeleteRequest - Response:
SupportTicketDeleteResponse
- request definition
go
type SupportTicketDeleteRequest struct {
ID string `path:"id"`
}- response definition
go
type SupportTicketDeleteResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}14. "工单状态转换"
- route definition
- Url: /api/v1/support/tickets/:id/transition
- Method: POST
- Request:
SupportTicketTransitionRequest - Response:
SupportTicketTransitionResponse
- request definition
go
type SupportTicketTransitionRequest struct {
ID string `path:"id"`
Status string `json:"status"`
}- response definition
go
type SupportTicketTransitionResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}15. "获取工单评论"
- route definition
- Url: /api/v1/support/tickets/:ticketId/comments
- Method: GET
- Request:
SupportCommentsListRequest - Response:
SupportCommentsListResponse
- request definition
go
type SupportCommentsListRequest struct {
TicketID string `path:"ticketId"`
Page int `form:"page,optional"`
PageSize int `form:"pageSize,optional"`
}- response definition
go
type SupportCommentsListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}16. "创建工单评论"
- route definition
- Url: /api/v1/support/tickets/:ticketId/comments
- Method: POST
- Request:
SupportCommentCreateRequest - Response:
SupportCommentCreateResponse
- request definition
go
type SupportCommentCreateRequest struct {
TicketID string `path:"ticketId"`
Content string `json:"content"`
}- response definition
go
type SupportCommentCreateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}