feat: test product
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package wecom
|
||||
|
||||
import "pkg.local/log"
|
||||
|
||||
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) {
|
||||
log.Infof("wecom stub skip: type=%d objId=%d action=%d reason=%s key=%s",
|
||||
job.Type, job.ObjId, job.Action, job.Reason, job.Key)
|
||||
}
|
||||
Reference in New Issue
Block a user