Files
servicebase/pkg/partner/mq/message/message_error.go
2025-11-18 17:48:20 +08:00

35 lines
789 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package message
// 错误消息(补偿)
type ErrorMessage struct {
Message
Code string // 错误代码
Content string // 错误内容(json)
Tag ErrorTag // 消息标签auto=自动处理 manual=手动处理 auto_to_manual=自动转手动
}
type ErrorTag string
const (
Auto ErrorTag = "AUTO"
Manual ErrorTag = "MANUAL"
AutoToManual ErrorTag = "AUTO_TO_MANUAL"
)
// CMQ异常消息code
const (
// 注册云信失败 需要自动补偿注册
CMQ_ERROR_CODE_SIGNUP_TO_YUNXIN_FAIL = "CMQ_E001"
// 抽奖更新总奖池失败
CMQ_ERROR_CODE_OPEN_BOX_UPDATE_DATA_FAIL = "CMQ_E002"
// 系统警告
CMQ_ERROR_CODE_SYSTEM_WARN = "CMQ_E003"
)
// 系统警告
type SystemWarnBody struct {
ServiceName string
ApiName string
ErrMsg string
}