升级异常接口约束

This commit is contained in:
zhangdeman001
2023-06-09 18:12:14 +08:00
parent 62d3723566
commit 16920b714d
3 changed files with 62 additions and 1 deletions

View File

@ -36,6 +36,14 @@ func (e *Exception) GetMessage() string {
return e.message
}
func (e *Exception) GetRealReason() string {
return getReason(e.GetCode())
}
func (e *Exception) GetSolution() map[string]interface{} {
return getSolution(e.GetCode())
}
func (e *Exception) GetData() interface{} {
return e.data
}