QueryUsers::getRequestPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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\Users;
14
15
16
use MuCTS\Sobot\Contracts\Sobot;
17
18
/**
19
 * Class QueryUsers
20
 * 查询客户列表
21
 *
22
 * 接口说明:
23
 * 查询客户列表
24
 *
25
 * @method QueryUsers whereUserNick(string $value) 客户昵称
26
 * @method QueryUsers whereUserTels(string $value) 手机号码 ,此参数只允许单一值
27
 * @method QueryUsers whereUserEmails(string $value) 邮箱 ,此参数只允许单一值
28
 * @method QueryUsers whereUserStatus(int $value) 客户状态 ,0 普通,1 永久拉黑,默认0
29
 * @method QueryUsers whereEnterpriseid(string $value) 企业ID ,可根据企业列表接口中获取企业ID
30
 * @method QueryUsers whereStartDatetime(string $value) 开始时间(创建),2018-07-10 00:00:00
31
 * @method QueryUsers whereEndDatetime(string $value) 结束时间(创建),2018-07-10 23:59:59
32
 * @method QueryUsers pageNo(int $value) 起始页码 ,1
33
 * @method QueryUsers pageSize(int $value) 每页条数 ,默认每页15条
34
 * @package MuCTS\Sobot\Users
35
 */
36
class QueryUsers extends Sobot
37
{
38
39
    public function getRequestMethod(): string
40
    {
41
        return self::METHOD_GET;
42
    }
43
44
    public function getRequestPath(): string
45
    {
46
        return '/api/crm/5/user/query_users';
47
    }
48
}