mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-24 02:16:16 +08:00
Refactor code
This commit is contained in:
parent
f4ceef485b
commit
e28a8db3b4
@ -167,7 +167,6 @@ func GetGroupAllMemberList(c *gin.Context) {
|
|||||||
|
|
||||||
func GetJoinedGroupList(c *gin.Context) {
|
func GetJoinedGroupList(c *gin.Context) {
|
||||||
params := api.GetJoinedGroupListReq{}
|
params := api.GetJoinedGroupListReq{}
|
||||||
err := c.BindJSON(¶ms)
|
|
||||||
if err := c.BindJSON(¶ms); err != nil {
|
if err := c.BindJSON(¶ms); err != nil {
|
||||||
log.NewError("0", "BindJSON failed ", err.Error())
|
log.NewError("0", "BindJSON failed ", err.Error())
|
||||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": err.Error()})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user