|
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\OnlineService\QuerySummary\Response; |
|
14
|
|
|
|
|
15
|
|
|
|
|
16
|
|
|
use MuCTS\Sobot\Contracts\Response; |
|
17
|
|
|
use MuCTS\Sobot\OnlineService\QuerySummary\Response\Item\Fields; |
|
18
|
|
|
|
|
19
|
|
|
/** |
|
20
|
|
|
* Class Item |
|
21
|
|
|
* @property-read int $summary_flag 总结状态,1-已总结,0-未总结 |
|
22
|
|
|
* @property-read string $summary_flag_cn 总结状态 |
|
23
|
|
|
* @property-read string $update_time 总结时间 |
|
24
|
|
|
* @property-read string $operation_name 业务单元 |
|
25
|
|
|
* @property-read string $req_type_name 业务类型 |
|
26
|
|
|
* @property-read int $question_status 解决状态,1-已解决,0-未解决 |
|
27
|
|
|
* @property-read string $question_status_cn 解决状态 |
|
28
|
|
|
* @property-read string $question_description 备注说明 |
|
29
|
|
|
* @property-read int $invalid_session 无效会话,1-无效,0-有效 |
|
30
|
|
|
* @property-read string $invalid_session_cn 无效会话 |
|
31
|
|
|
* @property-read Fields[] $fields 自定义字段列表 |
|
32
|
|
|
* @property-read string $summary_staff_name 总结客服 |
|
33
|
|
|
* @property-read string $cid 会话id |
|
34
|
|
|
* @package MuCTS\Sobot\OnlineService\QuerySummary\Response |
|
35
|
|
|
*/ |
|
36
|
|
|
class Item extends Response |
|
37
|
|
|
{ |
|
38
|
|
|
/** |
|
39
|
|
|
* 总结状态 |
|
40
|
|
|
* @return string |
|
41
|
|
|
*/ |
|
42
|
|
|
public function getSummaryFlagCn() |
|
43
|
|
|
{ |
|
44
|
|
|
$summaryFlag = intval($this->summary_flag); |
|
45
|
|
|
return $summaryFlag == 1 ? '已总结' : '未总结'; |
|
46
|
|
|
} |
|
47
|
|
|
|
|
48
|
|
|
/** |
|
49
|
|
|
* 解决状态 |
|
50
|
|
|
* @return string |
|
51
|
|
|
*/ |
|
52
|
|
|
public function getQuestionStatusCn() |
|
53
|
|
|
{ |
|
54
|
|
|
$questionStatus = intval($this->question_status); |
|
55
|
|
|
return $questionStatus == 1 ? '已解决' : '未解决'; |
|
56
|
|
|
} |
|
57
|
|
|
|
|
58
|
|
|
/** |
|
59
|
|
|
* 无效会话 |
|
60
|
|
|
* @return string |
|
61
|
|
|
*/ |
|
62
|
|
|
public function getInvalidSessionCn() |
|
63
|
|
|
{ |
|
64
|
|
|
$invalidSession = intval($this->invalid_session); |
|
65
|
|
|
return $invalidSession == 1 ? '无效' : '有效'; |
|
66
|
|
|
} |
|
67
|
|
|
} |