SearchDocList   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 11
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequestPath() 0 3 1
A getRequestMethod() 0 3 1
1
<?php
2
/**
3
 * This file is part of the mucts.com.
4
 *
5
 * This source file is subject to the MIT license that is bundled
6
 * with this source code in the file LICENSE.
7
 *
8
 * @version 1.0
9
 * @author herry<[email protected]>
10
 * @copyright © 2020  MuCTS.com All Rights Reserved.
11
 */
12
13
namespace MuCTS\Sobot\Robot;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class SearchDocList
20
 * 查询知识库词条列表
21
 *
22
 * 接口说明:
23
 * 接口类型:主动调用接口。
24
 * 接口作用:可通过调用该接口来查询某个知识库所有知识条目的列表。
25
 *
26
 * @method SearchDocList whereKeyFlag(string $value) 1问题,2答案
27
 * @method SearchDocList whereQuestionTypeid(int $value) 词条类型(传-1)
28
 * @method SearchDocList whereRobotFlag(int $value) 知识库所属机器人:0公共知识库,1机器人一
29
 * @method SearchDocList whereQuestionTypeFlag(int $value) 问题类型,1-全部问题,2-标准问题,3-相似问题
30
 * @method SearchDocList pageNo(int $value) 当前页码
31
 * @method SearchDocList whereKeyWords(?string $value) 搜索关键字
32
 * @method SearchDocList whereUsedFlag(?int $value) 词条状态,0启用,1手动停用,2系统停用,3过期停用
33
 * @method SearchDocList whereLinkFlag(?int $value)  是否有关联问题,0是,1否
34
 * @method SearchDocList whereAnswerFlag(?int $value)  答案类型:1文本,2图片,3图文,4视频
35
 * @method SearchDocList whereCreateid(?string $value)  词条创建人ID
36
 * @method SearchDocList whereCreateStartTime(?string $value) 创建开始时间
37
 * @method SearchDocList whereCreateEndTime(?string $value) 创建结束时间
38
 * @method SearchDocList whereUpdateid(?string $value) 词条最后更新人ID
39
 * @method SearchDocList whereUpdateStartDate(?string $value) 更新开始时间
40
 * @method SearchDocList whereUpdateEndDate(?string $value) 更新结束时间
41
 * @method SearchDocList whereEffectStartDate(?string $value) 生效开始时间
42
 * @method SearchDocList whereEffectEndDate(?string $value) 生效结束时间
43
 * @method SearchDocList whereInvalidStartDate(?string $value) 失效开始时间
44
 * @method SearchDocList whereInvalidEndDate(?string $value) 失效结束时间
45
 * @package MuCTS\Sobot\Robot
46
 */
47
class SearchDocList extends Sobot
48
{
49
50
    public function getRequestMethod(): string
51
    {
52
        return self::METHOD_POST;
53
    }
54
55
    public function getRequestPath(): string
56
    {
57
        return '/api/robot/5/search_doc_list';
58
    }
59
}