@@ 22-29 (lines=8) @@ | ||
19 | * |
|
20 | * @throws Exception |
|
21 | */ |
|
22 | public function show($user) |
|
23 | { |
|
24 | Assert::stringNotEmpty($user); |
|
25 | ||
26 | $response = $this->httpGet('/api/user/info', ['user' => $user]); |
|
27 | ||
28 | return $this->hydrateResponse($response, User::class); |
|
29 | } |
|
30 | ||
31 | /** |
|
32 | * @param string $user |
|
@@ 39-47 (lines=9) @@ | ||
36 | * |
|
37 | * @throws Exception |
|
38 | */ |
|
39 | public function update($user, $param) |
|
40 | { |
|
41 | Assert::stringNotEmpty($user); |
|
42 | $param['user'] = $user; |
|
43 | ||
44 | $response = $this->httpPost('/api/user/update/profile', $param); |
|
45 | ||
46 | return $this->hydrateResponse($response, User::class); |
|
47 | } |
|
48 | } |
|
49 |