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\Agents\SaveAgent; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* Class Request |
17
|
|
|
* @property-write string $agent_nick 坐席昵称 |
18
|
|
|
* @property-write string $agent_name 坐席真实名称 |
19
|
|
|
* @property-write string|null $phone_no 手机号码 |
20
|
|
|
* @property-write string|null $password 密码 |
21
|
|
|
* @property-write string $email 坐席邮箱 |
22
|
|
|
* @property-write int $agent_role_type 坐席角色,4444:全功能管理员;9999:呼叫管理员;8888:工单管理员;7777:全功能客服;6669:呼叫客服;1111:在线客服;2222:在线管理员;5555:工单客服 |
23
|
|
|
* @property-write string|null $departid 部门ID |
24
|
|
|
* @property-write string|null $group_ids 技能组ID,坐席所属多技能组,技能组ID之间以逗号分隔 |
25
|
|
|
* @property-write int $max_accept 最大接待上限,0-100的正整数 |
26
|
|
|
* |
27
|
|
|
* @method Request agentNick(string $value) 坐席昵称 |
28
|
|
|
* @method Request agentName(string $value) 坐席真实名称 |
29
|
|
|
* @method Request phoneNo(string $value) 手机号码 |
30
|
|
|
* @method Request password(string $value) 密码 |
31
|
|
|
* @method Request email(string $value) 坐席邮箱 |
32
|
|
|
* @method Request agentRoleType(int $value) 坐席角色,4444:全功能管理员;9999:呼叫管理员;8888:工单管理员;7777:全功能客服;6669:呼叫客服;1111:在线客服;2222:在线管理员;5555:工单客服 |
33
|
|
|
* @method Request departid(string $value) 部门ID |
34
|
|
|
* @method Request maxAccept(string $value) 最大接待上限,0-100的正整数 |
35
|
|
|
* @package MuCTS\Sobot\Agents\SaveAgent |
36
|
|
|
*/ |
37
|
|
|
class Request extends \MuCTS\Sobot\Contracts\Request |
38
|
|
|
{ |
39
|
|
|
/** |
40
|
|
|
* 技能组ID,坐席所属多技能组,技能组ID之间以逗号分隔 |
41
|
|
|
* @param array|string $value |
42
|
|
|
* @return Request |
43
|
|
|
*/ |
44
|
|
|
public function groupIds($value) |
45
|
|
|
{ |
46
|
|
|
$this->param['group_ids'] = is_array($value) ? implode(',', $value) : $value; |
47
|
|
|
return $this; |
48
|
|
|
} |
49
|
|
|
} |