package messages // 错误消息(补偿) type Error struct { MessageId string 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" ) type ErrorState string const ( ErrorCreate ErrorState = "CREATED" ErrorSuccess ErrorState = "SUCCESS" ErrorFailed ErrorState = "FAILED" ErrorReSuccess ErrorState = "RE_SUCCESS" )