新增门店 ip配置

This commit is contained in:
chy
2025-06-24 10:36:39 +08:00
parent 3166edc3dd
commit ea574905f9
14 changed files with 446 additions and 2 deletions

View File

@ -42,3 +42,47 @@ type DeleteReq struct {
type DeleteRes struct {
Success bool `json:"success" dc:"是否成功"`
}
type AddIpReq struct {
g.Meta `path:"/store/addIp" method:"post" tags:"Store" summary:"(系统、商户门店后台)添加门店IP"`
StoreId int64 `json:"storeId" v:"required" dc:"门店ID"`
Ip string `json:"ip" v:"required" dc:"IP"`
Remark string `json:"remark" dc:"备注"`
}
type AddIpRes struct {
Success bool `json:"success" dc:"是否成功"`
}
type DeleteIpReq struct {
g.Meta `path:"/store/del/{id}" method:"delete" tags:"Store" summary:"(系统、商户门店后台)删除门店IP"`
Id int64 `json:"id" v:"required" dc:"id"`
}
type DeleteIpRes struct {
Success bool `json:"success" dc:"是否成功"`
}
type UpdateIpReq struct {
g.Meta `path:"/store/updateIp" method:"put" tags:"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"`
Remark string `json:"remark" dc:"备注"`
}
type UpdateIpRes struct {
Success bool `json:"success" dc:"是否成功"`
}
type GetIpListReq struct {
g.Meta `path:"/store/getIpList" method:"get" tags:"Store" summary:"(系统、商户门店后台)获取门店IP列表"`
StoreId int64 `json:"storeId" dc:"门店ID"`
Page int `json:"page" v:"required" dc:"页数"`
Size int `json:"size" v:"required" dc:"每页数量"`
}
type GetIpListRes struct {
List interface{} `json:"list" dc:"IP列表"`
Total int64 `json:"total" dc:"总数"`
}