feat:完善项目
This commit is contained in:
34
app/common/model/work_repair_detail.go
Normal file
34
app/common/model/work_repair_detail.go
Normal file
@ -0,0 +1,34 @@
|
||||
package model
|
||||
|
||||
// WorkRepairDetail 维修工单详细数据模型
|
||||
type WorkRepairDetail struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
RepairID uint64 `gorm:"column:repair_id;type:int(11);default:0;comment:维修工单ID" json:"-"`
|
||||
Tage WorkRepairDetailTags `gorm:"column:tage;type:varchar(255);default:null;comment:标签" json:"tage"`
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:null;comment:备注信息" json:"remark"`
|
||||
Other string `gorm:"column:other;type:varchar(255);default:null;comment:其他信息" json:"other"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
type (
|
||||
WorkRepairDetailForFinish struct {
|
||||
Image string `json:"image"`
|
||||
}
|
||||
)
|
||||
|
||||
type WorkRepairDetailTags string
|
||||
|
||||
const (
|
||||
WorkRepairDetailTagsForBegin WorkRepairDetailTags = "开始维修"
|
||||
WorkRepairDetailTagsForFinish WorkRepairDetailTags = "完成维修"
|
||||
)
|
||||
|
||||
func (m *WorkRepairDetail) TableName() string {
|
||||
return "work_repair_detail"
|
||||
}
|
||||
|
||||
func NewWorkRepairDetail() *WorkRepairDetail {
|
||||
return &WorkRepairDetail{}
|
||||
}
|
Reference in New Issue
Block a user