- Go Gin 后端 (19个源文件): 认证、工单CRUD、GLM AI分析、状态流转、备注、操作日志 - Arco Design Vue 前端: 登录、工单列表/详情/创建、AI分析触发与确认 - MySQL 5表: ticket_user/ticket_info/ticket_ai_analysis/ticket_operation_log/ticket_note - 部署: tk.1216.top HTTPS, Nginx反代
25 lines
923 B
Go
25 lines
923 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type TicketInfo struct {
|
|
Ticketid int `gorm:"primaryKey;autoIncrement" json:"ticketid"`
|
|
Ticketno string `gorm:"size:32;uniqueIndex" json:"ticketno"`
|
|
Title string `gorm:"size:255;not null" json:"title"`
|
|
Content string `gorm:"type:text" json:"content"`
|
|
Contactname string `gorm:"size:64" json:"contactname"`
|
|
Contactphone string `gorm:"size:20" json:"contactphone"`
|
|
Source string `gorm:"size:20;default:web" json:"source"`
|
|
Submitterid int `json:"submitterid"`
|
|
Category string `gorm:"size:32" json:"category"`
|
|
Priority int16 `gorm:"default:2" json:"priority"`
|
|
Handlerid *int `json:"handlerid"`
|
|
Status int16 `gorm:"default:0" json:"status"`
|
|
Createtime time.Time `json:"createtime"`
|
|
Updatetime time.Time `json:"updatetime"`
|
|
}
|
|
|
|
func (TicketInfo) TableName() string {
|
|
return "ticket_info"
|
|
}
|