| Total Complexity | 4 | 
| Total Lines | 51 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 16 | class Client extends BaseClient  | 
            ||
| 17 | { | 
            ||
| 18 | /**  | 
            ||
| 19 | * 获取用户钉钉运动开启状态  | 
            ||
| 20 | *  | 
            ||
| 21 | * @param string $userId  | 
            ||
| 22 | *  | 
            ||
| 23 | * @return mixed  | 
            ||
| 24 | */  | 
            ||
| 25 | public function status($userId)  | 
            ||
| 26 |     { | 
            ||
| 27 |         return $this->client->postJson('topapi/health/stepinfo/getuserstatus', compact('userId')); | 
            ||
| 28 | }  | 
            ||
| 29 | |||
| 30 | /**  | 
            ||
| 31 | * 获取个人钉钉运动数据  | 
            ||
| 32 | *  | 
            ||
| 33 | * @param string $id  | 
            ||
| 34 | * @param string $dates  | 
            ||
| 35 | *  | 
            ||
| 36 | * @return mixed  | 
            ||
| 37 | */  | 
            ||
| 38 | public function user($id, $dates)  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | /**  | 
            ||
| 44 | * 获取部门钉钉运动数据  | 
            ||
| 45 | *  | 
            ||
| 46 | * @param string $id  | 
            ||
| 47 | * @param string $dates  | 
            ||
| 48 | *  | 
            ||
| 49 | * @return mixed  | 
            ||
| 50 | */  | 
            ||
| 51 | public function department($id, $dates)  | 
            ||
| 52 |     { | 
            ||
| 53 |         return $this->client->postJson('topapi/health/stepinfo/list', ['object_id' => $id, 'stat_dates' => $dates]); | 
            ||
| 54 | }  | 
            ||
| 55 | |||
| 56 | /**  | 
            ||
| 57 | * 批量获取钉钉运动数据  | 
            ||
| 58 | *  | 
            ||
| 59 | * @param array $userIds  | 
            ||
| 60 | * @param string $date  | 
            ||
| 61 | *  | 
            ||
| 62 | * @return mixed  | 
            ||
| 63 | */  | 
            ||
| 64 | public function list($userIds, $date)  | 
            ||
| 67 | }  | 
            ||
| 68 | }  | 
            ||
| 69 |