初步实现门店的逻辑代码

This commit is contained in:
2025-06-05 11:43:25 +08:00
parent 8b63f72f99
commit 9d20953377
14 changed files with 167 additions and 64 deletions

View File

@ -25,11 +25,13 @@ type FeedbacksColumns struct {
Title string // 反馈标题
Content string // 反馈内容
FeedbackType string // 反馈类型1=BUG2=建议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.

View File

@ -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",

View File

@ -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 // 软删除时间戳