123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- definitions:
- models.ChatRoomListReq:
- properties:
- category:
- type: string
- name:
- type: string
- page:
- type: integer
- pageSize:
- type: integer
- type: object
- models.JoinChatroomParam:
- properties:
- roomId:
- type: string
- userId:
- type: string
- 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
- info:
- contact: {}
- license: {}
- paths:
- /api/chatroom/classification:
- get:
- consumes:
- - application/json
- description: 房间分类列表
- 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'
- type: object
- 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'
- type: object
- produces:
- - application/json
- responses:
- "200":
- description: '{"code":200, "message":"success"}'
- schema:
- type: string
- summary: 离开房间
- tags:
- - 房间管理
- /api/chatroom/list:
- post:
- consumes:
- - application/json
- description: 房间列表
- parameters:
- - description: 房间请求列表body
- in: body
- name: body
- required: true
- schema:
- $ref: '#/definitions/models.ChatRoomListReq'
- type: object
- produces:
- - application/json
- responses:
- "200":
- description: '{"code":200, "message":"success"}'
- schema:
- type: string
- summary: 房间列表
- tags:
- - 房间操作
- /api/chatroom/view:
- 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/graphic/list:
- 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/message/send:
- post:
- consumes:
- - application/json
- description: 发送消息
- parameters:
- - description: 发送请求body
- in: body
- name: body
- required: true
- schema:
- $ref: '#/definitions/models.MessageParam'
- type: object
- 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:
- - 消息管理
- /api/wx/share:
- get:
- consumes:
- - application/json
- description: 微信自定义分享
- produces:
- - application/json
- responses:
- "200":
- description: '{"code":200, "message":"success"}'
- schema:
- type: string
- summary: 分享
- tags:
- - 用户操作
- /wx/h5/login:
- get:
- consumes:
- - application/json
- description: 登录
- produces:
- - application/json
- responses:
- "200":
- description: '{"code":200, "message":"success"}'
- schema:
- type: string
- summary: 登录
- tags:
- - 用户操作
- swagger: "2.0"
|