mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-12 21:16:00 +08:00
add swagger demo
This commit is contained in:
@@ -195,6 +195,14 @@ func GetUsersInfo(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, resp)
|
||||
}
|
||||
|
||||
// @Summary 更新用户信息
|
||||
// @Description 向你说Hello
|
||||
// @Tags 测试
|
||||
// @Accept json
|
||||
// @Param who query string true "人名"
|
||||
// @Success 200 {string} string "{"msg": "hello Razeen"}"
|
||||
// @Failure 400 {string} string "{"msg": "who are you"}"
|
||||
// @Router /update_user_info [post]
|
||||
func UpdateUserInfo(c *gin.Context) {
|
||||
params := api.UpdateSelfUserInfoReq{}
|
||||
if err := c.BindJSON(¶ms); err != nil {
|
||||
@@ -233,6 +241,7 @@ func UpdateUserInfo(c *gin.Context) {
|
||||
log.NewInfo(req.OperationID, "UpdateUserInfo api return ", resp)
|
||||
c.JSON(http.StatusOK, resp)
|
||||
}
|
||||
|
||||
func SetGlobalRecvMessageOpt(c *gin.Context) {
|
||||
params := api.SetGlobalRecvMessageOptReq{}
|
||||
if err := c.BindJSON(¶ms); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user