123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- 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"
|