Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class Client extends BaseClient |
||
17 | { |
||
18 | /** |
||
19 | * 发起待办 |
||
20 | * |
||
21 | * @param array $params |
||
22 | * |
||
23 | * @return mixed |
||
24 | */ |
||
25 | public function create($params) |
||
26 | { |
||
27 | return $this->client->postJson('topapi/workrecord/add', $params); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * 更新待办 |
||
32 | * |
||
33 | * @param string $userId |
||
34 | * @param string $recordId |
||
35 | * |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function update($userId, $recordId) |
||
39 | { |
||
40 | return $this->client->postJson('topapi/workrecord/add', ['userid' => $userId, 'record_id' => $recordId]); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * 获取用户待办事项 |
||
45 | * |
||
46 | * @param string $userId |
||
47 | * @param int $status |
||
48 | * @param int $offset |
||
49 | * @param int $limit |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function listByUserId($userId, $status, $offset, $limit) |
||
56 | } |
||
57 | } |
||
58 |