feat: completed development wecom message
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user