definitions: models.CreateChatroomReq: properties: bCreatorId: type: string creatorId: type: string userCount: type: integer type: object models.JoinChatroomParam: properties: roomId: type: string userId: type: string type: object models.JoinChatroomReq: properties: bCreatorId: type: string creatorId: type: string userCount: type: integer type: object models.LeaveChatroomParam: properties: roomId: type: string userId: type: string type: object models.MessageParam: properties: message: type: string messageType: type: string roomId: type: string userId: type: string type: object models.NoticeReadReq: properties: app_id: type: string notice_id: type: string user_id: type: string type: object info: contact: {} paths: /api/chatroom/create: post: consumes: - application/json description: 创建聊天室 parameters: - description: 创建聊天室请求body in: body name: body required: true schema: $ref: '#/definitions/models.CreateChatroomReq' produces: - application/json responses: "200": description: '{"code":200, "message":"success"}' schema: type: string summary: 创建聊天室 tags: - 房间管理 /api/chatroom/delete: get: consumes: - application/json description: 删除聊天室 parameters: - description: 用户ID in: query name: userId required: true type: string - description: 房间ID in: query name: roomId required: true type: string produces: - application/json responses: "200": description: '{"code":200, "message":"success"}' schema: type: string summary: 删除聊天室 tags: - 房间管理 /api/chatroom/detail: get: consumes: - application/json description: 获取房间详情 parameters: - description: 房间id in: query name: room_id required: true type: string produces: - application/json responses: "200": description: '{"code":200, "message":"success"}' schema: type: string summary: 获取房间详情 tags: - 房间操作 /api/chatroom/join: post: consumes: - application/json description: 加入房间 parameters: - description: 加入房间请求body in: body name: body required: true schema: $ref: '#/definitions/models.JoinChatroomParam' produces: - application/json responses: "200": description: '{"code":200, "message":"success"}' schema: type: string summary: 加入房间 tags: - 房间管理 /api/chatroom/joinCreate: post: consumes: - application/json description: 创建并加入房间 parameters: - description: 创建并加入房间请求body in: body name: body required: true schema: $ref: '#/definitions/models.JoinChatroomReq' produces: - application/json responses: "200": description: '{"code":200, "message":"success"}' schema: type: string summary: 创建并加入房间 tags: - 房间管理 /api/chatroom/leave: post: consumes: - application/json description: 离开房间 parameters: - description: 离开房间请求body in: body name: body required: true schema: $ref: '#/definitions/models.LeaveChatroomParam' produces: - application/json responses: "200": description: '{"code":200, "message":"success"}' schema: type: string summary: 离开房间 tags: - 房间管理 /api/chatroom/list: get: consumes: - application/json description: 获取聊天室列表 parameters: - description: 用户ID in: query name: userId required: true type: string produces: - application/json responses: "200": description: '{"code":200, "message":"success"}' schema: type: string summary: 获取聊天室列表 tags: - 房间管理 /api/message/deleteInteract: get: description: 互动删除 parameters: - description: id in: query name: id required: true type: string - description: 互动类型 in: query name: int_type required: true type: string produces: - application/json responses: "200": description: '{"code":200, "message":"success", "data":{}}' schema: type: string summary: 互动删除 tags: - 消息管理 /api/message/interact: get: description: 获取互动 parameters: - description: 用户id in: query name: userId required: true type: string produces: - application/json responses: "200": description: '{"code":200, "message":"success", "data":{}}' schema: type: string summary: 获取互动 tags: - 消息管理 /api/message/notice: get: description: 获取公告 parameters: - description: 用户id in: query name: userId type: string produces: - application/json responses: "200": description: '{"code":200, "message":"success", "data":{}}' schema: type: string summary: 获取公告 tags: - 消息管理 /api/message/notice/read: post: description: 公告阅读 parameters: - description: 阅读公告 in: body name: body required: true schema: $ref: '#/definitions/models.NoticeReadReq' produces: - application/json responses: "200": description: '{"code":200,"message":"success","data":{}}' schema: type: string summary: 公告阅读 tags: - 消息管理 /api/message/send: post: consumes: - application/json description: 发送消息 parameters: - description: 发送请求body in: body name: body required: true schema: $ref: '#/definitions/models.MessageParam' produces: - application/json responses: "200": description: '{"code":200, "message":"success"}' schema: type: string summary: 发送消息 tags: - 消息管理 /api/message/timeline: get: description: 获取历史消息记录 parameters: - description: 用户id in: query name: userId type: string - description: 房间id in: query name: roomId required: true type: string - description: 当前页 in: query name: pageIndex required: true type: integer - description: 每页数量 in: query name: pageSize required: true type: integer produces: - application/json responses: "200": description: '{"code":200, "message":"success", "data":{}}' schema: type: string summary: 获取历史消息记录 tags: - 消息管理 swagger: "2.0"