新增查询门店会员

This commit is contained in:
chy
2025-07-04 16:47:45 +08:00
parent f0b13086dd
commit 7f23097976
39 changed files with 844 additions and 176 deletions

View File

@ -0,0 +1,27 @@
package model
import "github.com/gogf/gf/v2/os/gtime"
type StoreMemberLevels struct {
Id int64 `json:"id" orm:"id" description:"主键ID"` // 主键ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
LevelId int `json:"levelId" orm:"level_id" description:"会员等级ID如0表示临时卡"` // 会员等级ID如0表示临时卡
LevelName string `json:"levelName" orm:"level_name" description:"等级名称"` // 等级名称
Level int `json:"level" orm:"level" description:"等级顺序,值越大等级越高"` // 等级顺序,值越大等级越高
OlType int `json:"olType" orm:"ol_type" description:"在线类型例如1=线上)"` // 在线类型例如1=线上)
Status int `json:"status" orm:"status" description:"状态1=启用2=禁用"` // 状态1=启用2=禁用
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
}
type StoreMemberLevelsListIn struct {
Page int
Size int
StoreId int64
}
type StoreMemberLevelsListOut struct {
List []StoreMemberLevels
Total int
}

View File

@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// StoreAreas is the golang structure of table store_areas for DAO operations like Where/Data.
type StoreAreas struct {
g.Meta `orm:"table:store_areas, do:true"`
Id interface{} // 区域ID
StoreId interface{} // 所属门店ID
AreaName interface{} // 区域名称
CreatedAt *gtime.Time //
UpdatedAt *gtime.Time //
DeletedAt *gtime.Time //
}

View File

@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// StoreClients is the golang structure of table store_clients for DAO operations like Where/Data.
type StoreClients struct {
g.Meta `orm:"table:store_clients, do:true"`
Id interface{} // 客户机ID
StoreId interface{} // 所属门店ID
ClientName interface{} // 客户机名称
Status interface{} // 状态1=空闲2=禁用3=上机中等
AreaId interface{} // 所属区域ID
CreatedAt *gtime.Time //
UpdatedAt *gtime.Time //
DeletedAt *gtime.Time //
}

View File

@ -0,0 +1,25 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// StoreMemberLevels is the golang structure of table store_member_levels for DAO operations like Where/Data.
type StoreMemberLevels struct {
g.Meta `orm:"table:store_member_levels, do:true"`
Id interface{} // 主键ID
StoreId interface{} // 所属门店ID
LevelId interface{} // 会员等级ID如0表示临时卡
LevelName interface{} // 等级名称
Level interface{} // 等级顺序,值越大等级越高
OlType interface{} // 在线类型例如1=线上)
Status interface{} // 状态1=启用2=禁用
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
}

View File

@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// StoreAreas is the golang structure for table store_areas.
type StoreAreas struct {
Id int64 `json:"id" orm:"id" description:"区域ID"` // 区域ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
AreaName string `json:"areaName" orm:"area_name" description:"区域名称"` // 区域名称
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` //
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` //
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""` //
}

View File

@ -0,0 +1,21 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// StoreClients is the golang structure for table store_clients.
type StoreClients struct {
Id int64 `json:"id" orm:"id" description:"客户机ID"` // 客户机ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
ClientName string `json:"clientName" orm:"client_name" description:"客户机名称"` // 客户机名称
Status int `json:"status" orm:"status" description:"状态1=空闲2=禁用3=上机中等"` // 状态1=空闲2=禁用3=上机中等
AreaId int64 `json:"areaId" orm:"area_id" description:"所属区域ID"` // 所属区域ID
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` //
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` //
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""` //
}

View File

@ -0,0 +1,23 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// StoreMemberLevels is the golang structure for table store_member_levels.
type StoreMemberLevels struct {
Id int64 `json:"id" orm:"id" description:"主键ID"` // 主键ID
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
LevelId int `json:"levelId" orm:"level_id" description:"会员等级ID如0表示临时卡"` // 会员等级ID如0表示临时卡
LevelName string `json:"levelName" orm:"level_name" description:"等级名称"` // 等级名称
Level int `json:"level" orm:"level" description:"等级顺序,值越大等级越高"` // 等级顺序,值越大等级越高
OlType int `json:"olType" orm:"ol_type" description:"在线类型例如1=线上)"` // 在线类型例如1=线上)
Status int `json:"status" orm:"status" description:"状态1=启用2=禁用"` // 状态1=启用2=禁用
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
}