Refactor code

This commit is contained in:
wenxu12345 2022-01-18 19:46:17 +08:00
parent f4ceef485b
commit e28a8db3b4

View File

@ -167,7 +167,6 @@ func GetGroupAllMemberList(c *gin.Context) {
func GetJoinedGroupList(c *gin.Context) {
params := api.GetJoinedGroupListReq{}
err := c.BindJSON(&params)
if err := c.BindJSON(&params); err != nil {
log.NewError("0", "BindJSON failed ", err.Error())
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})