1234567891011121314151617181920212223 |
- package models
- type BaseResponse struct {
- Ret int
- Msg string
- ErrMsg string
- ErrCode string
- Data interface{}
- Success bool `description:"true 执行成功,false 执行失败"`
- IsSendEmail bool `json:"-" description:"true 发送邮件,false 不发送邮件"`
- IsAddLog bool `json:"-" description:"true 新增操作日志,false 不新增操作日志" `
- }
- func (r *BaseResponse) Init() *BaseResponse {
- return &BaseResponse{Ret: 403, IsSendEmail: true}
- }
- type BaseRequest struct {
- }
- func (br *BaseRequest) Init() *BaseRequest {
- return &BaseRequest{}
- }
|