feat:完善信息

This commit is contained in:
henry
2021-10-12 11:40:02 +08:00
parent 7830ab0c86
commit 37fd5abdac
5 changed files with 278 additions and 7 deletions

View File

@ -66,6 +66,20 @@ const (
AccountStatusForDisable
)
// ShelfStatus 上下架状态
type ShelfStatus struct {
ShelfStatus ShelfStatusKind `gorm:"column:shelf_status;type:tinyint(1);default:0;comment:上下架状态1上架2下架" json:"shelf_status"`
}
type ShelfStatusKind int
const (
// ShelfStatusForUp 上架
ShelfStatusForUp ShelfStatusKind = iota
// ShelfStatusForDown 下架
ShelfStatusForDown
)
// ExamineStatus 审核状态
type ExamineStatus struct {
Status ExamineStatusKind `gorm:"column:status;type:tinyint(1);default:0;comment:审核状态0审核中1审核通过2审核拒绝" json:"status"`