实现商户注册、管理员审核商户申请接口

This commit is contained in:
2025-06-04 15:10:56 +08:00
parent 00b889cfcc
commit caf3d42fe5
63 changed files with 1195 additions and 294 deletions

View File

@ -20,34 +20,32 @@ type StoresDao struct {
// StoresColumns defines and stores column names for the table stores.
type StoresColumns struct {
Id string // 门店ID
MerchantId string // 所属商户ID
Name string // 门店名称
StoreCode string // 门店编号
Address string // 门店地址
ContactName string // 联系人姓名
ContactPhone string // 联系人电话
BusinessHours string // 营业时间
Status string // 状态1=正常营业2=暂停营业3=已关闭
CreatedAt string // 创建时间
UpdatedAt string // 更新时间
DeletedAt string // 软删除时间戳
Id string // 门店ID
MerchantId string // 所属商户ID
Name string // 门店名称
StoreCode string // 门店编号
Address string // 门店地址
ContactName string // 联系人姓名
ContactPhone string // 联系人电话
Status string // 状态1=正常营业2=暂停营业3=已关闭
CreatedAt string // 创建时间
UpdatedAt string // 更新时间
DeletedAt string // 软删除时间
}
// storesColumns holds the columns for the table stores.
var storesColumns = StoresColumns{
Id: "id",
MerchantId: "merchant_id",
Name: "name",
StoreCode: "store_code",
Address: "address",
ContactName: "contact_name",
ContactPhone: "contact_phone",
BusinessHours: "business_hours",
Status: "status",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
DeletedAt: "deleted_at",
Id: "id",
MerchantId: "merchant_id",
Name: "name",
StoreCode: "store_code",
Address: "address",
ContactName: "contact_name",
ContactPhone: "contact_phone",
Status: "status",
CreatedAt: "created_at",
UpdatedAt: "updated_at",
DeletedAt: "deleted_at",
}
// NewStoresDao creates and returns a new DAO object for table data access.