1
0
forked from lxh/go-wxhelper
go-wxhelper/common/response/fail.go
2024-07-04 14:10:46 +08:00

17 lines
226 B
Go

package response
// Fail
// @description: 失败响应
// @receiver r
// @param data
// @return err
func (r *Response) Fail() {
if r.msg == "" {
r.msg = "系统错误"
}
if r.code == 0 {
r.code = fail
}
r.Result()
}