1
0
forked from lxh/go-wxhelper
go-wxhelper/common/response/success.go

17 lines
230 B
Go
Raw Normal View History

2024-07-04 14:10:46 +08:00
package response
// Success
// @description: 成功响应
// @receiver r
// @param data
// @return err
func (r *Response) Success() {
if r.msg == "" {
r.msg = "success"
}
if r.code == 0 {
r.code = success
}
r.Result()
}