@@ 31-38 (lines=8) @@ | ||
28 | * |
|
29 | * @return \EntWeChat\Support\Collection |
|
30 | */ |
|
31 | public function lists($type = null) |
|
32 | { |
|
33 | $params = [ |
|
34 | 'type' => $type, |
|
35 | ]; |
|
36 | ||
37 | return $this->parseJSON('get', [self::API_LISTS, $params]); |
|
38 | } |
|
39 | ||
40 | /** |
|
41 | * Get message builder. |
@@ 44-51 (lines=8) @@ | ||
41 | * |
|
42 | * @return array |
|
43 | */ |
|
44 | public function lists($partyId = null) |
|
45 | { |
|
46 | $params = [ |
|
47 | 'id' => $partyId, |
|
48 | ]; |
|
49 | ||
50 | return $this->parseJSON('get', [self::API_GET, $params]); |
|
51 | } |
|
52 | ||
53 | /** |
|
54 | * Update a Department. |
|
@@ 75-82 (lines=8) @@ | ||
72 | * |
|
73 | * @return bool |
|
74 | */ |
|
75 | public function delete($partyId) |
|
76 | { |
|
77 | $params = [ |
|
78 | 'id' => $partyId, |
|
79 | ]; |
|
80 | ||
81 | return $this->parseJSON('json', [self::API_DELETE, $params]); |
|
82 | } |
|
83 | } |
|
84 |
@@ 80-87 (lines=8) @@ | ||
77 | * |
|
78 | * @return \EntWeChat\Support\Collection |
|
79 | */ |
|
80 | public function detail($user_ticket) |
|
81 | { |
|
82 | $params = [ |
|
83 | 'user_ticket' => $user_ticket, |
|
84 | ]; |
|
85 | ||
86 | return $this->parseJSON('post', [self::API_GET_USER_DETAIL, $params]); |
|
87 | } |
|
88 | } |
|
89 |