45 lines
714 B
Go
45 lines
714 B
Go
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"`
|
|
}
|