调整接口分组
This commit is contained in:
@ -5,7 +5,7 @@ import (
|
||||
)
|
||||
|
||||
type ListReq struct {
|
||||
g.Meta `path:"/store" method:"get" tags:"Store" summary:"(系统、商户门店后台)获取门店列表"`
|
||||
g.Meta `path:"/store" method:"get" tags:"Backend/Store" summary:"(系统、商户门店后台)获取门店列表"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"每页数量"`
|
||||
MerchantId int `json:"merchantId" dc:"商户ID"`
|
||||
@ -15,7 +15,7 @@ type ListRes struct {
|
||||
Total int `json:"total" dc:"总数"`
|
||||
}
|
||||
type CreateReq struct {
|
||||
g.Meta `path:"/store" method:"post" tags:"Store" summary:"(商户门店后台)创建门店"`
|
||||
g.Meta `path:"/store" method:"post" tags:"Backend/Store" summary:"(商户门店后台)创建门店"`
|
||||
Name string `json:"name" v:"required" dc:"门店名称"`
|
||||
ContactName string `json:"contactName" v:"required" dc:"联系人"`
|
||||
ContactPhone string `json:"contactPhone" v:"required" dc:"联系人电话"`
|
||||
@ -24,7 +24,7 @@ type CreateRes struct {
|
||||
Id int64 `json:"id" dc:"门店ID"`
|
||||
}
|
||||
type UpdateReq struct {
|
||||
g.Meta `path:"/store" method:"put" tags:"Store" summary:"(系统、商户门店后台)更新门店"`
|
||||
g.Meta `path:"/store" method:"put" tags:"Backend/Store" summary:"(系统、商户门店后台)更新门店"`
|
||||
Id int64 `json:"id" v:"required" dc:"门店ID"`
|
||||
Name string `json:"name" v:"required" dc:"门店名称"`
|
||||
Address string `json:"address" v:"required" dc:"门店地址"`
|
||||
@ -36,7 +36,7 @@ type UpdateRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
type DeleteReq struct {
|
||||
g.Meta `path:"/store" method:"delete" tags:"Store" summary:"(系统、商户门店后台)删除门店"`
|
||||
g.Meta `path:"/store" method:"delete" tags:"Backend/Store" summary:"(系统、商户门店后台)删除门店"`
|
||||
Id int64 `json:"id" v:"required" dc:"门店ID"`
|
||||
}
|
||||
type DeleteRes struct {
|
||||
@ -44,7 +44,7 @@ type DeleteRes struct {
|
||||
}
|
||||
|
||||
type AddIpReq struct {
|
||||
g.Meta `path:"/store/addIp" method:"post" tags:"Store" summary:"(系统、商户门店后台)添加门店IP"`
|
||||
g.Meta `path:"/store/addIp" method:"post" tags:"Backend/Store" summary:"(系统、商户门店后台)添加门店IP"`
|
||||
StoreId int64 `json:"storeId" v:"required" dc:"门店ID"`
|
||||
Ip string `json:"ip" v:"required" dc:"IP"`
|
||||
Remark string `json:"remark" dc:"备注"`
|
||||
@ -55,7 +55,7 @@ type AddIpRes struct {
|
||||
}
|
||||
|
||||
type DeleteIpReq struct {
|
||||
g.Meta `path:"/store/del/{id}" method:"delete" tags:"Store" summary:"(系统、商户门店后台)删除门店IP"`
|
||||
g.Meta `path:"/store/del/{id}" method:"delete" tags:"Backend/Store" summary:"(系统、商户门店后台)删除门店IP"`
|
||||
Id int64 `json:"id" v:"required" dc:"id"`
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ type DeleteIpRes struct {
|
||||
}
|
||||
|
||||
type UpdateIpReq struct {
|
||||
g.Meta `path:"/store/updateIp" method:"put" tags:"Store" summary:"(系统、商户门店后台)更新门店IP"`
|
||||
g.Meta `path:"/store/updateIp" method:"put" tags:"Backend/Store" summary:"(系统、商户门店后台)更新门店IP"`
|
||||
Id int64 `json:"id" v:"required" dc:"id"`
|
||||
//StoreId int64 `json:"storeId" v:"required" dc:"storeId"`
|
||||
Ip string `json:"ip" v:"required" dc:"IP"`
|
||||
@ -76,7 +76,7 @@ type UpdateIpRes struct {
|
||||
}
|
||||
|
||||
type GetIpListReq struct {
|
||||
g.Meta `path:"/store/getIpList" method:"get" tags:"Store" summary:"(系统、商户门店后台)获取门店IP列表"`
|
||||
g.Meta `path:"/store/getIpList" method:"get" tags:"Backend/Store" summary:"(系统、商户门店后台)获取门店IP列表"`
|
||||
StoreId int64 `json:"storeId" dc:"门店ID"`
|
||||
Page int `json:"page" v:"required" dc:"页数"`
|
||||
Size int `json:"size" v:"required" dc:"每页数量"`
|
||||
@ -87,7 +87,7 @@ type GetIpListRes struct {
|
||||
Total int64 `json:"total" dc:"总数"`
|
||||
}
|
||||
type DetailReq struct {
|
||||
g.Meta `path:"/store/detail" method:"get" tags:"Store" summary:"(系统、商户门店后台)门店详情"`
|
||||
g.Meta `path:"/store/detail" method:"get" tags:"Backend/Store" summary:"(系统、商户门店后台)门店详情"`
|
||||
NetbarAccount string `json:"netbarAccount" v:"required" dc:"门店账号"`
|
||||
}
|
||||
type DetailRes struct {
|
||||
|
||||
Reference in New Issue
Block a user