2026-07-27 00:18:42 +08:00
|
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
|
|
import "git.apinb.com/bsm-sdk/core/database"
|
|
|
|
|
|
|
|
|
|
|
|
// CsTicket 对应 cs_ticket,保存客服工单。
|
|
|
|
|
|
type CsTicket struct {
|
2026-07-27 12:02:08 +08:00
|
|
|
|
Entity // 公共实体字段
|
2026-07-29 14:25:38 +08:00
|
|
|
|
TicketStatus int `gorm:"column:ticket_status;not null;default:32;index" json:"ticket_status"` // 工单业务状态
|
2026-07-27 12:02:08 +08:00
|
|
|
|
TicketNo string `gorm:"column:ticket_no;type:varchar(64);not null;uniqueIndex" json:"ticket_no"` // ticket_no 业务字段
|
|
|
|
|
|
UserAccountID uint64 `gorm:"column:user_account_id;not null;index" json:"user_account_id"` // user_account_id 业务字段
|
|
|
|
|
|
Category string `gorm:"column:category;type:varchar(64);not null" json:"category"` // category 业务字段
|
|
|
|
|
|
Priority string `gorm:"column:priority;type:varchar(16);not null;default:'normal'" json:"priority"` // priority 业务字段
|
2026-07-27 00:18:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func init() { database.AppendMigrate(&CsTicket{}) }
|
|
|
|
|
|
func (table *CsTicket) TableName() string { return "cs_ticket" }
|