新增门店 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

@ -0,0 +1,22 @@
package store
import (
"context"
"server/internal/model"
"server/internal/service"
"server/api/store/v1"
)
func (c *ControllerV1) UpdateIp(ctx context.Context, req *v1.UpdateIpReq) (res *v1.UpdateIpRes, err error) {
out, err := service.Store().UpdateIP(ctx, &model.IPUpdateIn{
Id: req.Id,
Ip: req.Ip,
Remark: req.Remark,
//StoreId: int(req.StoreId),
})
if err != nil {
return nil, err
}
return &v1.UpdateIpRes{Success: out.Success}, nil
}