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"` }