Files
lone-services/services/product/internal/dao/edit.go
T
gjs be8f89f449
CI / changes (push) Successful in 5s
CI / docker-bff (push) Failing after 7s
CI / docker-product (push) Failing after 5s
CI / docker-admin (push) Failing after 4s
CI / docker-user (push) Failing after 6s
change layout
2026-08-20 15:41:44 +08:00

35 lines
1012 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"`
}