mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-12-24 08:12:55 +08:00
改了点变量名字
This commit is contained in:
@@ -99,12 +99,12 @@ func Ok(c *gin.Context) {
|
||||
Result(c, Success, nil)
|
||||
}
|
||||
|
||||
// OkWithMsg 正常响应附带msg
|
||||
func OkWithMsg(c *gin.Context, message string) {
|
||||
resp := Success
|
||||
resp.message = message
|
||||
Result(c, resp, nil)
|
||||
}
|
||||
// // OkWithMsg 正常响应附带msg
|
||||
// func OkWithMsg(c *gin.Context, message string) {
|
||||
// resp := Success
|
||||
// resp.message = message
|
||||
// Result(c, resp, nil)
|
||||
// }
|
||||
|
||||
// OkWithData 正常响应附带data
|
||||
func OkWithData(c *gin.Context, data interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user