新增门店 ip配置
This commit is contained in:
20
internal/controller/store/store_v1_delete_ip.go
Normal file
20
internal/controller/store/store_v1_delete_ip.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user