feat: test product

This commit is contained in:
zzw
2026-08-11 09:30:38 +08:00
parent a38fff4917
commit bdc582ad5f
22 changed files with 2730 additions and 75 deletions
+34
View File
@@ -0,0 +1,34 @@
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"`
}