File tree 3 files changed +193
-0
lines changed
3 files changed +193
-0
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,62 @@ const docTemplate = `{
287
287
}
288
288
}
289
289
},
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
+ },
290
346
"/v1/chat/message/send": {
291
347
"post": {
292
348
"security": [
@@ -1512,6 +1568,23 @@ const docTemplate = `{
1512
1568
}
1513
1569
}
1514
1570
},
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
+ },
1515
1588
"handler.SendChatMessageRequest": {
1516
1589
"description": "聊天发送消息请求参数",
1517
1590
"type": "object",
Original file line number Diff line number Diff line change 281
281
}
282
282
}
283
283
},
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
+ },
284
340
"/v1/chat/message/send" : {
285
341
"post" : {
286
342
"security" : [
1506
1562
}
1507
1563
}
1508
1564
},
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
+ },
1509
1582
"handler.SendChatMessageRequest" : {
1510
1583
"description" : " 聊天发送消息请求参数" ,
1511
1584
"type" : " object" ,
Original file line number Diff line number Diff line change @@ -360,6 +360,18 @@ definitions:
360
360
- request_id
361
361
- status
362
362
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
363
375
handler.SendChatMessageRequest :
364
376
description : 聊天发送消息请求参数
365
377
properties :
@@ -689,6 +701,41 @@ paths:
689
701
summary : 获取最近的聊天消息
690
702
tags :
691
703
- 聊天
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
+ - 聊天
692
739
/v1/chat/message/send :
693
740
post :
694
741
consumes :
You can’t perform that action at this time.
0 commit comments