|
@@ -25,9 +25,9 @@ func NewDeleteLabelTaggingLogic(ctx context.Context, svcCtx *svc.ServiceContext)
|
|
|
svcCtx: svcCtx}
|
|
|
}
|
|
|
|
|
|
-func (l *DeleteLabelTaggingLogic) DeleteLabelTagging(req *types.IDReq) (resp *types.BaseMsgResp, err error) {
|
|
|
+func (l *DeleteLabelTaggingLogic) DeleteLabelTagging(req *types.IDsReq) (resp *types.BaseMsgResp, err error) {
|
|
|
organizationId := l.ctx.Value("organizationId").(uint64)
|
|
|
- _, err = l.svcCtx.DB.LabelTagging.Delete().Where(labeltagging.ID(req.Id), labeltagging.OrganizationID(organizationId)).Exec(l.ctx)
|
|
|
+ _, err = l.svcCtx.DB.LabelTagging.Delete().Where(labeltagging.IDIn(req.Ids...), labeltagging.OrganizationID(organizationId)).Exec(l.ctx)
|
|
|
|
|
|
if err != nil {
|
|
|
return nil, dberrorhandler.DefaultEntError(l.Logger, err, req)
|