|
@@ -1,12 +1,14 @@
|
|
|
package models
|
|
|
|
|
|
+const BaseRespIgnoreTipsRet = 4003 // 忽略提示的状态码
|
|
|
+
|
|
|
type BaseResponse struct {
|
|
|
- Ret int
|
|
|
- Msg string
|
|
|
- ErrMsg string
|
|
|
- ErrCode string
|
|
|
- Data interface{}
|
|
|
- Success bool `description:"true 执行成功,false 执行失败"`
|
|
|
+ Ret int
|
|
|
+ Msg string
|
|
|
+ ErrMsg string
|
|
|
+ ErrCode string
|
|
|
+ Data interface{}
|
|
|
+ Success bool `description:"true 执行成功,false 执行失败"`
|
|
|
IsSendEmail bool `json:"-"`
|
|
|
}
|
|
|
|
|
@@ -19,7 +21,7 @@ type BaseResponseRef struct {
|
|
|
}
|
|
|
|
|
|
type BaseResponseResult struct {
|
|
|
- Ret int `description:"状态:200 成功,408 重新登录,403:为失败"`
|
|
|
+ Ret int `description:"状态:200 成功,408 重新登录,403:为失败,4003为忽略提示的失败"`
|
|
|
Msg string `description:"提示信息,对用户展示"`
|
|
|
ErrMsg string `description:"错误信息,供开发定位问题"`
|
|
|
ErrCode string `description:"错误编码,预留"`
|
|
@@ -27,7 +29,7 @@ type BaseResponseResult struct {
|
|
|
}
|
|
|
|
|
|
func (r *BaseResponse) Init() *BaseResponse {
|
|
|
- return &BaseResponse{Ret: 403,IsSendEmail: true}
|
|
|
+ return &BaseResponse{Ret: 403, IsSendEmail: true}
|
|
|
}
|
|
|
|
|
|
type RunLogReq struct {
|