Files
lone-services/services/product/internal/wecom/notify.go
T
gjs be8f89f449
CI / changes (push) Successful in 5s
CI / docker-bff (push) Failing after 7s
CI / docker-product (push) Failing after 5s
CI / docker-admin (push) Failing after 4s
CI / docker-user (push) Failing after 6s
change layout
2026-08-20 15:41:44 +08:00

27 lines
802 B
Go

package wecom
import "lone-services/pkg/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)
}