支持打印堆栈

This commit is contained in:
2024-09-30 16:13:43 +08:00
parent e8561a060c
commit 1e7f84ed84
4 changed files with 55 additions and 26 deletions

View File

@ -13,7 +13,7 @@ package exception
//
// Date : 15:55 2023/6/9
type Code struct {
Value interface{} `json:"value"` // 状态码的值
Value any `json:"value"` // 状态码的值
Message map[string]string `json:"message"` // 状态码对应的文案(key -> 语言 , value -> 对应语言的描述)
Reason []*CodeReason `json:"reason"` // 产生此错误码的原因描述(key -> 语言 , value -> 对应语言的原因列表)
}