feat: wecom message init

This commit is contained in:
zzw
2026-09-17 10:18:43 +08:00
parent 5a56eb2fe4
commit dd460f6be2
46 changed files with 2735 additions and 109 deletions
@@ -63,7 +63,7 @@ func (l *EditApplyLogic) EditApply(in *product.EditApplyReq) (*product.Response,
return outResponse(utils.Fail, "已经申请过"), nil
}
if err = apply.Set(l.ctx, adminId, int(req.Id), req.Reason); err != nil {
if err = apply.Set(l.ctx, l.svcCtx.ChoreSvcName, adminId, int(req.Id), req.Reason); err != nil {
l.Errorf("edit apply set: %v", err)
return failResponse(utils.Fail), nil
}
@@ -96,7 +96,7 @@ func (l *EditApplyLogic) EditApplyPass(in *product.EditApplyPassReq) (*product.R
}
adminId := int(adminInfo.ID)
if err = apply.Pass(l.ctx, adminId, int(req.Id)); err != nil {
if err = apply.Pass(l.ctx, l.svcCtx.ChoreSvcName, adminId, int(req.Id)); err != nil {
if apply.IsAlreadyHandled(err) {
return outResponse(utils.Fail, err.Error()), nil
}