Showing
1 changed file
with
369 additions
and
0 deletions
@@ -394,6 +394,375 @@ | @@ -394,6 +394,375 @@ | ||
394 | } | 394 | } |
395 | ``` | 395 | ``` |
396 | 396 | ||
397 | +## 新增热搜索词 | ||
398 | + | ||
399 | +> 接口名:`searchWords/addSearchWords` | ||
400 | + | ||
401 | +### 入参 | ||
402 | + | ||
403 | +------------------------- | ||
404 | +|属性名称|类型|例子|说明| | ||
405 | +|--------|----|----|----| | ||
406 | +|type|int|3|搜索词类型:3 热搜索词 | | ||
407 | +|content|String|内容实得分|内容| | ||
408 | +|sort|int|3|排序 | | ||
409 | +|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用| | ||
410 | +|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接| | ||
411 | +|creatorUid|int|2323|添加人id| | ||
412 | +|creatorUsrname|String|zhangsan|添加人名称| | ||
413 | +--------------------- | ||
414 | + | ||
415 | +### 返回 | ||
416 | + | ||
417 | +``` json | ||
418 | +请求样例: | ||
419 | +{ | ||
420 | + "channelIds": "2,3", | ||
421 | + "content": "2342", | ||
422 | + "creatorUid": 3, | ||
423 | + "creatorUsrname": "zhangsan", | ||
424 | + "modifyUid": 3, | ||
425 | + "modifyUsrname": "zhangsan", | ||
426 | + "type": 3, | ||
427 | + "url": "https://pandao.github.io/editor.md/examples/simple.html" | ||
428 | +} | ||
429 | +正常返回: | ||
430 | +{ | ||
431 | + "code": 200, | ||
432 | + "data": [], | ||
433 | + "md5": "d751713988987e9331980363e24189ce", | ||
434 | + "message": "添加成功" | ||
435 | +} | ||
436 | +异常返回: | ||
437 | +{ | ||
438 | + "code": 405, | ||
439 | + "data": [], | ||
440 | + "md5": "d751713988987e9331980363e24189ce", | ||
441 | + "message": "频道不能为空" | ||
442 | +} | ||
443 | + | ||
444 | +``` | ||
445 | +## 修改热搜索词 | ||
446 | + | ||
447 | +> 接口名:`searchWords/updateSearchWords` | ||
448 | + | ||
449 | +### 入参 | ||
450 | + | ||
451 | +------------------------- | ||
452 | +|属性名称|类型|例子|说明| | ||
453 | +|--------|----|----|----| | ||
454 | +|id|int|1|主键 | | ||
455 | +|type|int|3|搜索词类型:3 热搜索词 | | ||
456 | +|sort|int|3|排序 | | ||
457 | +|content|String|内容实得分|内容| | ||
458 | +|channelIds|String|1,2,3|频道类型 多个用逗号隔开 默认搜索词专用| | ||
459 | +|url|String|https://pandao.github.io/editor.md/examples/simple.html|链接| | ||
460 | +|status|int|1|状态 2 开启 1 禁用| | ||
461 | +|modifyUid|int|2323|修改人id| | ||
462 | +|modifyUsrname|String|zhangsan|修改人名称| | ||
463 | +--------------------- | ||
464 | + | ||
465 | +### 样例 | ||
466 | + | ||
467 | +``` json | ||
468 | +请求样例: | ||
469 | +{ | ||
470 | + "channelIds": "2,3", | ||
471 | + "content": "2342", | ||
472 | + "modifyUid": 3, | ||
473 | + "modifyUsrname": "zhangsan", | ||
474 | + "type": 3, | ||
475 | + "sort":23, | ||
476 | + "status": 1, | ||
477 | + "id": 111, | ||
478 | + "url": "https://pandao.github.io/editor.md/examples/simple.html" | ||
479 | +} | ||
480 | +正常返回: | ||
481 | +{ | ||
482 | + "code": 200, | ||
483 | + "data": [], | ||
484 | + "md5": "d751713988987e9331980363e24189ce", | ||
485 | + "message": "修改成功" | ||
486 | +} | ||
487 | +异常返回: | ||
488 | +{ | ||
489 | + "code": 405, | ||
490 | + "data": [], | ||
491 | + "md5": "d751713988987e9331980363e24189ce", | ||
492 | + "message": "内容不能为空" | ||
493 | +} | ||
494 | + | ||
495 | +``` | ||
496 | + | ||
497 | + | ||
498 | +## 查询热搜索词 | ||
499 | +> 接口名: `/searchWords/querySearchWords` | ||
500 | + | ||
501 | +### 入参 | ||
502 | + | ||
503 | +------------------------- | ||
504 | +|属性名称|类型|例子|说明| | ||
505 | +|--------|----|----|----| | ||
506 | +|page|int|2|第几页| | ||
507 | +|size|int|50|每页条数| | ||
508 | +|type|int|3|搜索词类型:3 搜索词 必填| | ||
509 | +|channelIds|String|3|频道类型| | ||
510 | +|content|String|内容实得分|内容| | ||
511 | +|status|int|1|状态 2 开启 1 禁用| | ||
512 | +--------------------------- | ||
513 | + | ||
514 | +### 返回 | ||
515 | + | ||
516 | +```json | ||
517 | +请求 | ||
518 | +{ | ||
519 | +"page":1, | ||
520 | +"size":3, | ||
521 | +"content":"哈哈", | ||
522 | +"type":3, | ||
523 | +"channelIds":1 | ||
524 | +} | ||
525 | +返回: | ||
526 | +同默认搜索词 | ||
527 | +``` | ||
528 | + | ||
529 | +## 新增同义词 | ||
530 | + | ||
531 | +> 接口名:`searchWords/addSearchWords` | ||
532 | + | ||
533 | +### 入参 | ||
534 | + | ||
535 | +------------------------- | ||
536 | +|属性名称|类型|例子|说明| | ||
537 | +|--------|----|----|----| | ||
538 | +|type|int|4|搜索词类型:4 同义词 | | ||
539 | +|content|String|内容巴拉|内容| | ||
540 | +|creatorUid|int|2323|添加人id| | ||
541 | +|creatorUsrname|String|zhangsan|添加人名称| | ||
542 | +--------------------- | ||
543 | + | ||
544 | +### 返回 | ||
545 | + | ||
546 | +``` json | ||
547 | +请求样例: | ||
548 | +{ | ||
549 | + "content": "2342", | ||
550 | + "creatorUid": 3, | ||
551 | + "creatorUsrname": "zhangsan", | ||
552 | + "type": 3 | ||
553 | + } | ||
554 | +正常返回: | ||
555 | +{ | ||
556 | + "code": 200, | ||
557 | + "data": [], | ||
558 | + "md5": "d751713988987e9331980363e24189ce", | ||
559 | + "message": "添加成功" | ||
560 | +} | ||
561 | +异常返回: | ||
562 | +{ | ||
563 | + "code": 405, | ||
564 | + "data": [], | ||
565 | + "md5": "d751713988987e9331980363e24189ce", | ||
566 | + "message": "频道不能为空" | ||
567 | +} | ||
568 | + | ||
569 | +``` | ||
570 | +## 修改同义词 | ||
571 | + | ||
572 | +> 接口名:`searchWords/updateSearchWords` | ||
573 | + | ||
574 | +### 入参 | ||
575 | + | ||
576 | +------------------------- | ||
577 | +|属性名称|类型|例子|说明| | ||
578 | +|--------|----|----|----| | ||
579 | +|id|int|1|主键 | | ||
580 | +|type|int|4|搜索词类型:4 同义词 | | ||
581 | +|content|String|内容巴拉|内容| | ||
582 | +|status|int|1|状态 2 开启 1 禁用| | ||
583 | +|modifyUid|int|2323|修改人id| | ||
584 | +|modifyUsrname|String|zhangsan|修改人名称| | ||
585 | +--------------------- | ||
586 | + | ||
587 | +### 样例 | ||
588 | + | ||
589 | +``` json | ||
590 | +请求样例: | ||
591 | +{ | ||
592 | + "content": "2342", | ||
593 | + "modifyUid": 3, | ||
594 | + "modifyUsrname": "zhangsan", | ||
595 | + "type": 4, | ||
596 | + "status": 1, | ||
597 | + "id": 111 | ||
598 | + } | ||
599 | +正常返回: | ||
600 | +{ | ||
601 | + "code": 200, | ||
602 | + "data": [], | ||
603 | + "md5": "d751713988987e9331980363e24189ce", | ||
604 | + "message": "修改成功" | ||
605 | +} | ||
606 | +异常返回: | ||
607 | +{ | ||
608 | + "code": 405, | ||
609 | + "data": [], | ||
610 | + "md5": "d751713988987e9331980363e24189ce", | ||
611 | + "message": "内容不能为空" | ||
612 | +} | ||
613 | + | ||
614 | +``` | ||
615 | + | ||
616 | + | ||
617 | +## 查询同义词 | ||
618 | +> 接口名: `/searchWords/querySearchWords` | ||
619 | + | ||
620 | +### 入参 | ||
621 | + | ||
622 | +------------------------- | ||
623 | +|属性名称|类型|例子|说明| | ||
624 | +|--------|----|----|----| | ||
625 | +|page|int|2|第几页| | ||
626 | +|size|int|50|每页条数| | ||
627 | +|type|int|4|搜索词类型:4 同义词 | | ||
628 | +|content|String|内容巴拉|内容| | ||
629 | +|status|int|1|状态 2 开启 1 禁用| | ||
630 | +--------------------------- | ||
631 | + | ||
632 | +### 返回 | ||
633 | + | ||
634 | +```json | ||
635 | +请求 | ||
636 | +{ | ||
637 | +"page":1, | ||
638 | +"size":3, | ||
639 | +"content":"哈哈", | ||
640 | +"type":3 | ||
641 | +} | ||
642 | +返回: | ||
643 | +同默认搜索词 | ||
644 | +``` | ||
645 | + | ||
646 | +## 新增停用词 | ||
647 | + | ||
648 | +> 接口名:`searchWords/addSearchWords` | ||
649 | + | ||
650 | +### 入参 | ||
651 | + | ||
652 | +------------------------- | ||
653 | +|属性名称|类型|例子|说明| | ||
654 | +|--------|----|----|----| | ||
655 | +|type|int|5|搜索词类型:5 停用词 | | ||
656 | +|content|String|内容巴拉|内容| | ||
657 | +|creatorUid|int|2323|添加人id| | ||
658 | +|creatorUsrname|String|zhangsan|添加人名称| | ||
659 | +--------------------- | ||
660 | + | ||
661 | +### 返回 | ||
662 | + | ||
663 | +``` json | ||
664 | +请求样例: | ||
665 | +{ | ||
666 | + "content": "2342", | ||
667 | + "creatorUid": 3, | ||
668 | + "creatorUsrname": "zhangsan", | ||
669 | + "type": 3 | ||
670 | + } | ||
671 | +正常返回: | ||
672 | +{ | ||
673 | + "code": 200, | ||
674 | + "data": [], | ||
675 | + "md5": "d751713988987e9331980363e24189ce", | ||
676 | + "message": "添加成功" | ||
677 | +} | ||
678 | +异常返回: | ||
679 | +{ | ||
680 | + "code": 405, | ||
681 | + "data": [], | ||
682 | + "md5": "d751713988987e9331980363e24189ce", | ||
683 | + "message": "频道不能为空" | ||
684 | +} | ||
685 | + | ||
686 | +``` | ||
687 | +## 修改停用词 | ||
688 | + | ||
689 | +> 接口名:`searchWords/updateSearchWords` | ||
690 | + | ||
691 | +### 入参 | ||
692 | + | ||
693 | +------------------------- | ||
694 | +|属性名称|类型|例子|说明| | ||
695 | +|--------|----|----|----| | ||
696 | +|id|int|1|主键 | | ||
697 | +|type|int|5|搜索词类型:5 停用词 | | ||
698 | +|content|String|内容巴拉|内容| | ||
699 | +|status|int|1|状态 2 开启 1 禁用| | ||
700 | +|modifyUid|int|2323|修改人id| | ||
701 | +|modifyUsrname|String|zhangsan|修改人名称| | ||
702 | +--------------------- | ||
703 | + | ||
704 | +### 样例 | ||
705 | + | ||
706 | +``` json | ||
707 | +请求样例: | ||
708 | +{ | ||
709 | + "content": "2342", | ||
710 | + "modifyUid": 3, | ||
711 | + "modifyUsrname": "zhangsan", | ||
712 | + "type": 4, | ||
713 | + "status": 1, | ||
714 | + "id": 111 | ||
715 | + } | ||
716 | +正常返回: | ||
717 | +{ | ||
718 | + "code": 200, | ||
719 | + "data": [], | ||
720 | + "md5": "d751713988987e9331980363e24189ce", | ||
721 | + "message": "修改成功" | ||
722 | +} | ||
723 | +异常返回: | ||
724 | +{ | ||
725 | + "code": 405, | ||
726 | + "data": [], | ||
727 | + "md5": "d751713988987e9331980363e24189ce", | ||
728 | + "message": "内容不能为空" | ||
729 | +} | ||
730 | + | ||
731 | +``` | ||
732 | + | ||
733 | + | ||
734 | +## 查询停用词 | ||
735 | +> 接口名: `/searchWords/querySearchWords` | ||
736 | + | ||
737 | +### 入参 | ||
738 | + | ||
739 | +------------------------- | ||
740 | +|属性名称|类型|例子|说明| | ||
741 | +|--------|----|----|----| | ||
742 | +|page|int|2|第几页| | ||
743 | +|size|int|50|每页条数| | ||
744 | +|type|int|5|搜索词类型:5 停用词 | | ||
745 | +|content|String|内容巴拉|内容| | ||
746 | +|status|int|1|状态 2 开启 1 禁用| | ||
747 | +--------------------------- | ||
748 | + | ||
749 | +### 返回 | ||
750 | + | ||
751 | +```json | ||
752 | +请求 | ||
753 | +{ | ||
754 | +"page":1, | ||
755 | +"size":3, | ||
756 | +"content":"哈哈", | ||
757 | +"type":3 | ||
758 | +} | ||
759 | +返回: | ||
760 | +同默认搜索词 | ||
761 | +``` | ||
762 | + | ||
763 | + | ||
764 | + | ||
765 | + | ||
397 | 766 | ||
398 | 767 | ||
399 | 768 |
-
Please register or login to post a comment