升级异常接口约束

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

@ -19,6 +19,10 @@ type IException interface {
GetCode() interface{}
// GetMessage *获取错误信息
GetMessage() string
// GetRealReason 获取真实失败原因
GetRealReason() string
// GetSolution 获取解决方案
GetSolution() map[string]interface{}
// GetData 获取异常时的返回数据
GetData() interface{}
// GetHttpCode *获取当前异常要返回的http状态码, 不设置则 默认 200