- 修复登录参数 username→account - 修复前后端字段名不匹配 (ticketno/contactname/createtime等) - 修复AI分析GLM返回markdown包裹和priority类型问题 - 添加AutoMigrate自动建表 - 统一API路由为 /api/auth/ 前缀 - 添加config.example.yaml,.gitignore排除config.yaml
50 lines
1.4 KiB
Go
50 lines
1.4 KiB
Go
package dto
|
|
|
|
type LoginRequest struct {
|
|
Account string `json:"account" binding:"required"`
|
|
Password string `json:"password" binding:"required"`
|
|
}
|
|
|
|
type CreateTicketRequest struct {
|
|
Title string `json:"title" binding:"required"`
|
|
Content string `json:"content" binding:"required"`
|
|
Contactname string `json:"contactname" binding:"required"`
|
|
Contactphone string `json:"contactphone" binding:"required"`
|
|
Source string `json:"source"`
|
|
Category string `json:"category"`
|
|
Priority int16 `json:"priority"`
|
|
}
|
|
|
|
type UpdateTicketRequest struct {
|
|
Title string `json:"title"`
|
|
Content string `json:"content"`
|
|
Contactname string `json:"contactname"`
|
|
Contactphone string `json:"contactphone"`
|
|
Category string `json:"category"`
|
|
Priority int16 `json:"priority"`
|
|
Handlerid *int `json:"handlerid"`
|
|
}
|
|
|
|
type UpdateStatusRequest struct {
|
|
Status int16 `json:"status" binding:"required"`
|
|
}
|
|
|
|
type TicketListQuery struct {
|
|
Status *int16 `form:"status"`
|
|
Category string `form:"category"`
|
|
Priority *int16 `form:"priority"`
|
|
Keyword string `form:"keyword"`
|
|
Page int `form:"page"`
|
|
PageSize int `form:"pageSize"`
|
|
}
|
|
|
|
type ConfirmAnalysisRequest struct {
|
|
Category string `json:"category"`
|
|
Priority int16 `json:"priority"`
|
|
Summary string `json:"summary"`
|
|
}
|
|
|
|
type AddNoteRequest struct {
|
|
Content string `json:"content" binding:"required"`
|
|
}
|