优化异常实例化

This commit is contained in:
2022-07-03 13:08:24 +08:00
parent b301bd1849
commit 0679ce5092
3 changed files with 11 additions and 8 deletions

View File

@ -20,7 +20,7 @@ type IException interface {
// GetMessage *获取错误信息
GetMessage() string
// GetData 获取异常时的返回数据
GetData() map[string]interface{}
GetData() interface{}
// GetHttpCode *获取当前异常要返回的http状态码, 不设置则 默认 200
GetHttpCode() int
}