改了点变量名字

This commit is contained in:
xiangheng
2024-07-03 11:06:53 +08:00
parent c0ad048170
commit dcfbe3c9bf
8 changed files with 53 additions and 52 deletions

View File

@@ -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{}) {