新增门店 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,20 @@
package store
import (
"context"
"server/internal/model"
"server/internal/service"
"server/api/store/v1"
)
func (c *ControllerV1) DeleteIp(ctx context.Context, req *v1.DeleteIpReq) (res *v1.DeleteIpRes, err error) {
out, err := service.Store().DeleteIP(ctx, &model.IPDeleteIn{
Id: req.Id,
})
if err != nil {
return nil, err
}
return &v1.DeleteIpRes{Success: out.Success}, nil
}