Files
lone-services/services/product/internal/dao/edit.go
T

28 lines
846 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
import "lone-services/pkg/wecomrpc"
// 编辑对象类型(与 wecomrpc.BizType* 一致,供申请日志等非企微场景复用)
const (
EditLogTypeProduct = wecomrpc.BizTypeProduct
EditLogTypeStore = wecomrpc.BizTypeStore
EditLogTypeAddress = wecomrpc.BizTypeAddress
EditLogTypeSales = wecomrpc.BizTypeSales
)
// 编辑申请状态(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"`
}