67 lines
1.8 KiB
Go
67 lines
1.8 KiB
Go
package model
|
||
|
||
type StoreAdminInfoIn struct {
|
||
StoreAdminId int64
|
||
}
|
||
|
||
type StoreAdminInfoOut struct {
|
||
Username string
|
||
}
|
||
|
||
type StoreAdminLoginIn struct {
|
||
Username string
|
||
Password string
|
||
}
|
||
|
||
type StoreAdminLoginOut struct {
|
||
Token string
|
||
StoreId int64
|
||
StoreName string
|
||
NetbarAccount 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
|
||
}
|