生成门店 service 层代码

This commit is contained in:
2025-06-05 10:15:00 +08:00
parent 7faad8b3c4
commit a9dabbbe21
5 changed files with 130 additions and 5 deletions

View File

@ -16,11 +16,32 @@ type Store struct {
Status int `json:"status" orm:"status,default:1" dc:"状态1=正常营业2=暂停营业3=已关闭"`
}
type CreateIn struct {
Name string `json:"name" v:"required" dc:"门店名称"`
type StoreCreateIn struct {
Name string
}
type UpdateIn struct {
type StoreUpdateIn struct {
Id int
Name string
}
type StoreListIn struct {
MerchantId int
Page int
Size int
Status int
}
type StoreListOut struct {
List []Store
Total int
}
type StoreInfoIn struct {
Id int
}
type StoreInfoOut struct {
}
type StoreDeleteIn struct {
Id int
}