Files
lone-services/services/product/internal/wecom/notify.go
T
2026-08-21 17:38:39 +08:00

27 lines
820 B
Go

package wecom
import "github.com/zeromicro/go-zero/core/logx"
const (
ProductApplyReview uint8 = 1 // 编辑申请按钮卡片
ProductNeedReview uint8 = 2 // 编辑申请结果通知申请人
ProductSubmitReview uint8 = 3 // 提交敏感字段变更 → 通知一审
ProductFirstReview uint8 = 4 // 一审结果通知
ProductSecondReview uint8 = 5 // 二审结果通知
ProductOrdinaryReview uint8 = 6 // 基础信息变更 diff 通知
)
type NotifyJob struct {
ObjId int
ObjType uint8
Type uint8
Action uint8 // 1: 通过, 2: 驳回
Reason string
Key string // 编辑申请 Redis MD5 key,企微回调用
}
func NotifyProduct(job NotifyJob) {
logx.Infof("wecom stub skip: type=%d objId=%d action=%d reason=%s key=%s",
job.Type, job.ObjId, job.Action, job.Reason, job.Key)
}