Files
arenax-server/internal/model/storeAdmin.go

67 lines
1.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
}