File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -287,6 +287,62 @@ const docTemplate = `{
287287 }
288288 }
289289 },
290+ "/v1/chat/message/rollback": {
291+ "post": {
292+ "security": [
293+ {
294+ "APIKeyQuery": []
295+ }
296+ ],
297+ "consumes": [
298+ "application/json"
299+ ],
300+ "produces": [
301+ "application/json"
302+ ],
303+ "tags": [
304+ "聊天"
305+ ],
306+ "summary": "撤回聊天消息处理方法",
307+ "parameters": [
308+ {
309+ "description": "请求JSON数据体",
310+ "name": "jsonRaw",
311+ "in": "body",
312+ "required": true,
313+ "schema": {
314+ "$ref": "#/definitions/handler.RollbackChatMessageRequest"
315+ }
316+ }
317+ ],
318+ "responses": {
319+ "200": {
320+ "description": "OK",
321+ "schema": {
322+ "$ref": "#/definitions/handler.Response"
323+ }
324+ },
325+ "400": {
326+ "description": "Bad Request",
327+ "schema": {
328+ "$ref": "#/definitions/handler.Response"
329+ }
330+ },
331+ "404": {
332+ "description": "Not Found",
333+ "schema": {
334+ "$ref": "#/definitions/handler.Response"
335+ }
336+ },
337+ "500": {
338+ "description": "Internal Server Error",
339+ "schema": {
340+ "$ref": "#/definitions/handler.Response"
341+ }
342+ }
343+ }
344+ }
345+ },
290346 "/v1/chat/message/send": {
291347 "post": {
292348 "security": [
@@ -1512,6 +1568,23 @@ const docTemplate = `{
15121568 }
15131569 }
15141570 },
1571+ "handler.RollbackChatMessageRequest": {
1572+ "type": "object",
1573+ "properties": {
1574+ "message_id": {
1575+ "description": "MessageID 消息ID",
1576+ "type": "integer"
1577+ },
1578+ "session_type": {
1579+ "description": "SessionType 会话类型; 1-私人会话;2-群聊会话;99-世界频道会话",
1580+ "type": "integer"
1581+ },
1582+ "target_id": {
1583+ "description": "TargetID 目标ID; 朋友ID/群ID/世界频道ID",
1584+ "type": "integer"
1585+ }
1586+ }
1587+ },
15151588 "handler.SendChatMessageRequest": {
15161589 "description": "聊天发送消息请求参数",
15171590 "type": "object",
Original file line number Diff line number Diff line change 281281 }
282282 }
283283 },
284+ "/v1/chat/message/rollback" : {
285+ "post" : {
286+ "security" : [
287+ {
288+ "APIKeyQuery" : []
289+ }
290+ ],
291+ "consumes" : [
292+ " application/json"
293+ ],
294+ "produces" : [
295+ " application/json"
296+ ],
297+ "tags" : [
298+ " 聊天"
299+ ],
300+ "summary" : " 撤回聊天消息处理方法" ,
301+ "parameters" : [
302+ {
303+ "description" : " 请求JSON数据体" ,
304+ "name" : " jsonRaw" ,
305+ "in" : " body" ,
306+ "required" : true ,
307+ "schema" : {
308+ "$ref" : " #/definitions/handler.RollbackChatMessageRequest"
309+ }
310+ }
311+ ],
312+ "responses" : {
313+ "200" : {
314+ "description" : " OK" ,
315+ "schema" : {
316+ "$ref" : " #/definitions/handler.Response"
317+ }
318+ },
319+ "400" : {
320+ "description" : " Bad Request" ,
321+ "schema" : {
322+ "$ref" : " #/definitions/handler.Response"
323+ }
324+ },
325+ "404" : {
326+ "description" : " Not Found" ,
327+ "schema" : {
328+ "$ref" : " #/definitions/handler.Response"
329+ }
330+ },
331+ "500" : {
332+ "description" : " Internal Server Error" ,
333+ "schema" : {
334+ "$ref" : " #/definitions/handler.Response"
335+ }
336+ }
337+ }
338+ }
339+ },
284340 "/v1/chat/message/send" : {
285341 "post" : {
286342 "security" : [
15061562 }
15071563 }
15081564 },
1565+ "handler.RollbackChatMessageRequest" : {
1566+ "type" : " object" ,
1567+ "properties" : {
1568+ "message_id" : {
1569+ "description" : " MessageID 消息ID" ,
1570+ "type" : " integer"
1571+ },
1572+ "session_type" : {
1573+ "description" : " SessionType 会话类型; 1-私人会话;2-群聊会话;99-世界频道会话" ,
1574+ "type" : " integer"
1575+ },
1576+ "target_id" : {
1577+ "description" : " TargetID 目标ID; 朋友ID/群ID/世界频道ID" ,
1578+ "type" : " integer"
1579+ }
1580+ }
1581+ },
15091582 "handler.SendChatMessageRequest" : {
15101583 "description" : " 聊天发送消息请求参数" ,
15111584 "type" : " object" ,
Original file line number Diff line number Diff line change @@ -360,6 +360,18 @@ definitions:
360360 - request_id
361361 - status
362362 type : object
363+ handler.RollbackChatMessageRequest :
364+ properties :
365+ message_id :
366+ description : MessageID 消息ID
367+ type : integer
368+ session_type :
369+ description : SessionType 会话类型; 1-私人会话;2-群聊会话;99-世界频道会话
370+ type : integer
371+ target_id :
372+ description : TargetID 目标ID; 朋友ID/群ID/世界频道ID
373+ type : integer
374+ type : object
363375 handler.SendChatMessageRequest :
364376 description : 聊天发送消息请求参数
365377 properties :
@@ -689,6 +701,41 @@ paths:
689701 summary : 获取最近的聊天消息
690702 tags :
691703 - 聊天
704+ /v1/chat/message/rollback :
705+ post :
706+ consumes :
707+ - application/json
708+ parameters :
709+ - description : 请求JSON数据体
710+ in : body
711+ name : jsonRaw
712+ required : true
713+ schema :
714+ $ref : ' #/definitions/handler.RollbackChatMessageRequest'
715+ produces :
716+ - application/json
717+ responses :
718+ " 200 " :
719+ description : OK
720+ schema :
721+ $ref : ' #/definitions/handler.Response'
722+ " 400 " :
723+ description : Bad Request
724+ schema :
725+ $ref : ' #/definitions/handler.Response'
726+ " 404 " :
727+ description : Not Found
728+ schema :
729+ $ref : ' #/definitions/handler.Response'
730+ " 500 " :
731+ description : Internal Server Error
732+ schema :
733+ $ref : ' #/definitions/handler.Response'
734+ security :
735+ - APIKeyQuery : []
736+ summary : 撤回聊天消息处理方法
737+ tags :
738+ - 聊天
692739 /v1/chat/message/send :
693740 post :
694741 consumes :
You can’t perform that action at this time.
0 commit comments