Jelajahi Sumber

变更自动打标时清空缓存

boweniac 3 bulan lalu
induk
melakukan
ade715f611

+ 1 - 1
internal/logic/label_tagging/create_label_tagging_logic.go

@@ -36,6 +36,6 @@ func (l *CreateLabelTaggingLogic) CreateLabelTagging(req *types.LabelTaggingInfo
 	if err != nil {
 		return nil, dberrorhandler.DefaultEntError(l.Logger, err, req)
 	}
-
+	l.svcCtx.Rds.Del(l.ctx, "label_tagging_info")
 	return &types.BaseMsgResp{Msg: errormsg.CreateSuccess}, nil
 }

+ 1 - 1
internal/logic/label_tagging/delete_label_tagging_logic.go

@@ -32,6 +32,6 @@ func (l *DeleteLabelTaggingLogic) DeleteLabelTagging(req *types.IDReq) (resp *ty
 	if err != nil {
 		return nil, dberrorhandler.DefaultEntError(l.Logger, err, req)
 	}
-
+	l.svcCtx.Rds.Del(l.ctx, "label_tagging_info")
 	return &types.BaseMsgResp{Msg: errormsg.DeleteSuccess}, nil
 }

+ 1 - 1
internal/logic/label_tagging/update_label_tagging_logic.go

@@ -36,6 +36,6 @@ func (l *UpdateLabelTaggingLogic) UpdateLabelTagging(req *types.LabelTaggingInfo
 	if err != nil {
 		return nil, dberrorhandler.DefaultEntError(l.Logger, err, req)
 	}
-
+	l.svcCtx.Rds.Del(l.ctx, "label_tagging_info")
 	return &types.BaseMsgResp{Msg: errormsg.UpdateSuccess}, nil
 }