feat: completed development wecom message

This commit is contained in:
zzw
2026-09-18 17:39:48 +08:00
parent dd460f6be2
commit 1ca44d25df
57 changed files with 1754 additions and 1412 deletions
@@ -6,11 +6,11 @@ import (
"lone-services/pkg/modelbase"
"lone-services/pkg/utils"
"lone-services/pkg/validate"
"lone-services/pkg/wecomrpc"
product "lone-services/rpc/product/pb"
"lone-services/services/product/internal/dao"
"lone-services/services/product/internal/model"
"lone-services/services/product/internal/svc"
"lone-services/services/product/internal/wecom"
"lone-services/services/product/validator"
"strconv"
"time"
@@ -170,14 +170,14 @@ func (l *VerifyStatusLogic) verifyStatus(expectStatus uint8, in *product.VerifyS
return failResponse(utils.Fail), nil
}
notifyType := wecom.ProductFirstReview
notifyType := wecomrpc.ProductFirstReview
if expectStatus == dao.VerifyStatusSecond {
notifyType = wecom.ProductSecondReview
notifyType = wecomrpc.ProductSecondReview
}
objID, _ := strconv.Atoi(info.VerifyId)
wecom.NotifyProduct(wecom.NotifyJob{
ObjId: objID,
ObjType: dao.VerifyTypeProduct,
wecomrpc.SendMessage(l.ctx, l.svcCtx.WecomSvcName, wecomrpc.SendMessageJob{
BizId: objID,
BizType: wecomrpc.BizTypeProduct,
Type: notifyType,
Action: uint8(req.Status),
Reason: reason,