This commit is contained in:
ideaa
2025-04-19 16:24:32 +08:00
parent a9b9fca2a1
commit 4cca2a6d6d

View File

@@ -29,6 +29,11 @@ func (r *Response) WithError(e Error, err error) *Response {
return r
}
func (r *Response) WithMsg(msg string) *Response {
r.Ctx.Msg = msg
return r
}
func (r *Response) Send() {
r.g.JSON(r.httpCode, r.Ctx)
}