fonchain-artistinfo/cmd/model/model.go

19 lines
760 B
Go
Raw Normal View History

2023-02-15 01:10:11 +00:00
package model
import (
2023-02-17 03:33:56 +00:00
"gorm.io/plugin/soft_delete"
2023-02-15 01:10:11 +00:00
"time"
)
type Model struct {
ID int64 `gorm:"primarykey;" json:"id" form:"id"`
2023-02-23 07:55:06 +00:00
CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at" json:"updatedAt"`
2023-02-22 03:03:20 +00:00
DeletedAt soft_delete.DeletedAt `gorm:"column:deleted_at;type:bigint" json:"deletedAt"`
2023-02-15 01:10:11 +00:00
}
2023-02-28 15:27:00 +00:00
type AuditModel struct {
AuditStatus int64 `json:"auditStatus" gorm:"column:audit_status;default:1;comment:审核状态 1:待审核/暂存 2审核通过 3审核不通过"`
AuditMark string `json:"auditMark" gorm:"column:audit_mark;comment:审核备注"`
AuditMark2 string `json:"auditMark2" gorm:"column:audit_mark2;comment:审核备注2"`
}