初步实现门店的逻辑代码
This commit is contained in:
@ -25,11 +25,13 @@ type FeedbacksColumns struct {
|
||||
Title string // 反馈标题
|
||||
Content string // 反馈内容
|
||||
FeedbackType string // 反馈类型:1=BUG,2=建议,3=投诉,4=其他
|
||||
Status string // 处理状态:0=待处理,1=处理中,2=已处理,3=已驳回
|
||||
Status string // 处理状态:1=待处理,2=处理中,3=已处理,4=已驳回
|
||||
Reply string // 管理员回复内容
|
||||
CreatedAt string // 反馈提交时间
|
||||
UpdatedAt string // 反馈更新时间
|
||||
DeletedAt string // 软删除时间戳
|
||||
StoreId string // 门店唯一 id
|
||||
MerchatId string // 商户唯一 id
|
||||
}
|
||||
|
||||
// feedbacksColumns holds the columns for the table feedbacks.
|
||||
@ -44,6 +46,8 @@ var feedbacksColumns = FeedbacksColumns{
|
||||
CreatedAt: "created_at",
|
||||
UpdatedAt: "updated_at",
|
||||
DeletedAt: "deleted_at",
|
||||
StoreId: "store_id",
|
||||
MerchatId: "merchat_id",
|
||||
}
|
||||
|
||||
// NewFeedbacksDao creates and returns a new DAO object for table data access.
|
||||
|
||||
@ -27,7 +27,7 @@ type StoreAdminsColumns struct {
|
||||
RealName string // 真实姓名
|
||||
Phone string // 手机号
|
||||
Email string // 邮箱
|
||||
Role string // 角色:1=店长,2=收银员,3=网管
|
||||
IsPrimary string // 是否为主账号(1=是,0=否)
|
||||
Status string // 状态:1=正常,2=禁用
|
||||
LastLoginAt string // 最后登录时间
|
||||
CreatedAt string // 创建时间
|
||||
@ -45,7 +45,7 @@ var storeAdminsColumns = StoreAdminsColumns{
|
||||
RealName: "real_name",
|
||||
Phone: "phone",
|
||||
Email: "email",
|
||||
Role: "role",
|
||||
IsPrimary: "is_primary",
|
||||
Status: "status",
|
||||
LastLoginAt: "last_login_at",
|
||||
CreatedAt: "created_at",
|
||||
|
||||
@ -27,7 +27,7 @@ type StoresColumns struct {
|
||||
Address string // 门店地址
|
||||
ContactName string // 联系人姓名
|
||||
ContactPhone string // 联系人电话
|
||||
Status string // 状态:1=正常营业,2=暂停营业,3=已关闭
|
||||
Status string // 状态:1=正常营业,2=暂停营业
|
||||
CreatedAt string // 创建时间
|
||||
UpdatedAt string // 更新时间
|
||||
DeletedAt string // 软删除时间戳
|
||||
|
||||
Reference in New Issue
Block a user