实现了门店员工、员工角色的接口开发

This commit is contained in:
2025-06-12 17:13:25 +08:00
parent fac2bd41b3
commit 80b1aa9b91
46 changed files with 1196 additions and 25 deletions

View File

@ -16,3 +16,48 @@ type StoreAdminLoginIn struct {
type StoreAdminLoginOut struct {
Token string
}
type StoreAdminListIn struct {
Page int
Size int
StoreId int64
}
type StoreAdmin struct {
Id int64 `json:"id" orm:"id" dc:"门店管理员ID"`
StoreId int64 `json:"storeId" orm:"store_id" dc:"所属门店ID"`
Username string `json:"username" orm:"username" dc:"用户名"`
RealName string `json:"realName" orm:"real_name" dc:"真实姓名"`
Phone string `json:"phone" orm:"phone" dc:"手机号"`
Email string `json:"email" orm:"email" dc:"邮箱"`
IsPrimary bool `json:"isPrimary" orm:"is_primary" dc:"是否为主账号true=是false=否)"`
Status int `json:"status" orm:"status" dc:"状态1=正常2=禁用"`
StoreRoleId int64 `json:"storeRoleId" orm:"store_role_id" dc:"门店角色ID"`
StoreRoleName string `json:"storeRoleName" orm:"store_role_name" dc:"门店角色名称"`
}
type StoreAdminListOut struct {
List []StoreAdmin
Total int
}
type StoreAdminCreateIn struct {
StoreId int64
Username string
Password string
Phone string
StoreRoleId int
RealName string
}
type StoreAdminUpdateIn struct {
StoreAdminId int64
Phone string
StoreRoleId int
RealName string
}
type StoreAdminEditPasswordIn struct {
StoreAdminId int64
Password string
Password2 string
}
type StoreAdminDeleteIn struct {
StoreAdminId int64
}