Files
lone-services/services/chore/internal/dao/answer.go
T
gjs 38e040af07
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 29s
CI / admin (push) Successful in 17s
CI / bff (push) Successful in 13s
CI / chore (push) Successful in 15s
CI / equipment (push) Successful in 14s
CI / express (push) Successful in 14s
CI / product (push) Successful in 13s
CI / record (push) Successful in 13s
CI / sale (push) Successful in 13s
CI / task (push) Successful in 13s
CI / user (push) Successful in 14s
CI / wecom (push) Successful in 13s
订单下载。jd下单。。
2026-09-09 17:52:07 +08:00

29 lines
1.8 KiB
Go

package dao
type AnswerCreate struct {
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:ID" json:"id"`
Question string `gorm:"column:question;type:text;comment:问题;NOT NULL" json:"question"`
Explain string `gorm:"column:explain;type:text;comment:说明;NOT NULL" json:"explain"`
Right string `gorm:"column:right;type:varchar(10);comment:正确答案;NOT NULL" json:"right"`
Answers string `gorm:"column:answers;type:text;comment:选择答案;NOT NULL" json:"answers"`
AdminId int64 `gorm:"column:admin_id;type:int(11)" json:"admin_id"`
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
}
type AnswerInfo struct {
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:ID" json:"id"`
Question string `gorm:"column:question;type:text;comment:问题;NOT NULL" json:"question"`
Explain string `gorm:"column:explain;type:text;comment:说明;NOT NULL" json:"explain"`
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态,1为正常,2为禁用;NOT NULL" json:"status"`
Right string `gorm:"column:right;type:varchar(10);comment:正确答案;NOT NULL" json:"right"`
Answers string `gorm:"column:answers;type:text;comment:选择答案;NOT NULL" json:"answers"`
}
type AnswerStatus struct {
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT;comment:ID" json:"id"`
Reason string `gorm:"column:reason;type:varchar(255);comment:禁用原因" json:"reason"`
Status int32 `gorm:"column:status;type:tinyint(1);default:1;comment:状态,1为正常,2为禁用;NOT NULL" json:"status"`
AdminId int64 `gorm:"column:admin_id;type:int(11)" json:"admin_id"`
AdminName string `gorm:"column:admin_name;type:varchar(255)" json:"admin_name"`
}