Opt: create and login resp add roomId

pull/21/head
zijiren233 2 years ago
parent a026f82300
commit 0265f872d8

@ -55,6 +55,7 @@ func CreateRoom(ctx *gin.Context) {
}
ctx.JSON(http.StatusCreated, model.NewApiDataResp(gin.H{
"roomId": room.ID,
"token": token,
}))
}
@ -178,6 +179,7 @@ func LoginRoom(ctx *gin.Context) {
}
ctx.JSON(http.StatusOK, model.NewApiDataResp(gin.H{
"roomId": room.ID,
"token": token,
}))
}
@ -222,6 +224,7 @@ func SetRoomPassword(ctx *gin.Context) {
}
ctx.JSON(http.StatusOK, model.NewApiDataResp(gin.H{
"roomId": room.ID,
"token": token,
}))
}

Loading…
Cancel
Save