35 lines
1012 B
Go
35 lines
1012 B
Go
package dao
|
||
|
||
// 编辑日志对象类型
|
||
const (
|
||
EditLogTypeProduct uint8 = 1 // 产品
|
||
EditLogTypeStore uint8 = 2 // 门店
|
||
EditLogTypeAddress uint8 = 3 // 地址
|
||
EditLogTypeSales uint8 = 4 // 销售
|
||
)
|
||
|
||
// 编辑申请状态(Redis / action_apply_log)
|
||
const (
|
||
ApplyStatusDone uint8 = 1 // 通过,可编辑
|
||
ApplyStatusNotPass uint8 = 2 // 驳回
|
||
ApplyStatusWaitPass uint8 = 9 // 待审核
|
||
)
|
||
|
||
type EditLogCreate struct {
|
||
Id int `gorm:"column:id;primaryKey;autoIncrement"`
|
||
ObjId int `gorm:"column:obj_id"`
|
||
ObjType uint8 `gorm:"column:obj_type"`
|
||
Content string `gorm:"column:content"`
|
||
AdminId int `gorm:"column:admin_id"`
|
||
AdminName string `gorm:"column:admin_name"`
|
||
}
|
||
|
||
type ActionApplyLogCreate struct {
|
||
Id int `gorm:"column:id;primaryKey;autoIncrement"`
|
||
AdminId int `gorm:"column:admin_id"`
|
||
ObjId int `gorm:"column:obj_id"`
|
||
Type uint8 `gorm:"column:type"`
|
||
Reason string `gorm:"column:reason"`
|
||
Status uint8 `gorm:"column:status"`
|
||
}
|