Skip to content

Commit

Permalink
comm success
Browse files Browse the repository at this point in the history
  • Loading branch information
li-peifeng committed Jan 5, 2025
1 parent 65761de commit 5394767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ func SuccessResp(c *gin.Context, data ...interface{}) {
if len(data) == 0 {
c.JSON(200, Resp[interface{}]{
Code: 200,
Message: "success",
Message: "完成",
Data: nil,
})
return
}
c.JSON(200, Resp[interface{}]{
Code: 200,
Message: "success",
Message: "完成",
Data: data[0],
})
}
Expand Down

0 comments on commit 5394767

Please sign in to comment.