实现了门店员工、员工角色的接口开发
This commit is contained in:
44
internal/model/storeRole.go
Normal file
44
internal/model/storeRole.go
Normal file
@ -0,0 +1,44 @@
|
||||
package model
|
||||
|
||||
type StoreRoleCreateIn struct {
|
||||
StoreId int64
|
||||
Name string
|
||||
}
|
||||
|
||||
type StoreRoleCreateOut struct {
|
||||
Id int64 `json:"id"`
|
||||
}
|
||||
|
||||
type StoreRoleUpdateIn struct {
|
||||
Id int64
|
||||
StoreID int64
|
||||
Name string
|
||||
}
|
||||
|
||||
type StoreRoleUpdateOut struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
|
||||
type StoreRoleDeleteIn struct {
|
||||
Id int64
|
||||
}
|
||||
|
||||
type StoreRoleDeleteOut struct {
|
||||
Success bool `json:"success"`
|
||||
}
|
||||
type StoreRoleListIn struct {
|
||||
StoreId int64
|
||||
Page int
|
||||
Size int
|
||||
}
|
||||
|
||||
type StoreRoleListItem struct {
|
||||
Id int64 `json:"id"`
|
||||
StoreID int64 `json:"storeId"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type StoreRoleListOut struct {
|
||||
Total int `json:"total"`
|
||||
List []StoreRoleListItem `json:"list"`
|
||||
}
|
||||
Reference in New Issue
Block a user