1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-16 02:32:27 +08:00

feat: optimized-error-handling

This commit is contained in:
markwang
2024-03-15 16:23:48 +08:00
parent 6053598a03
commit ea684369a9
7 changed files with 93 additions and 0 deletions

View File

@@ -114,9 +114,29 @@ func (security *Security) ImageCheckV1(filename string) (err error) {
// CheckSuggest 检查建议
type CheckSuggest string
const (
// CheckSuggestRisky 违规风险建议
CheckSuggestRisky CheckSuggest = "risky"
// CheckSuggestPass 安全
CheckSuggestPass CheckSuggest = "pass"
// CheckSuggestReview 需要审查
CheckSuggestReview CheckSuggest = "review"
)
// MsgScene 文本场景
type MsgScene uint8
const (
// MsgSceneMaterial 资料文件检查场景
MsgSceneMaterial MsgScene = iota + 1
// MsgSceneComment 评论
MsgSceneComment
// MsgSceneForum 论坛
MsgSceneForum
// MsgSceneSocialLog 社交日志
MsgSceneSocialLog
)
// CheckLabel 检查命中标签
type CheckLabel int