@@ 111-120 (lines=10) @@ | ||
108 | * |
|
109 | * @return \EasyWeChat\Support\Collection |
|
110 | */ |
|
111 | public function markElect($dataId, $index, $commentId) |
|
112 | { |
|
113 | $params = [ |
|
114 | 'msg_data_id' => $dataId, |
|
115 | 'index' => $index, |
|
116 | 'user_comment_id' => $commentId, |
|
117 | ]; |
|
118 | ||
119 | return $this->parseJSON('post', [self::API_MARK_ELECT, $params]); |
|
120 | } |
|
121 | ||
122 | /** |
|
123 | * Unmark elect comment. |
|
@@ 131-140 (lines=10) @@ | ||
128 | * |
|
129 | * @return \EasyWeChat\Support\Collection |
|
130 | */ |
|
131 | public function unmarkElect($dataId, $index, $commentId) |
|
132 | { |
|
133 | $params = [ |
|
134 | 'msg_data_id' => $dataId, |
|
135 | 'index' => $index, |
|
136 | 'user_comment_id' => $commentId, |
|
137 | ]; |
|
138 | ||
139 | return $this->parseJSON('post', [self::API_UNMARK_ELECT, $params]); |
|
140 | } |
|
141 | ||
142 | /** |
|
143 | * Delete comment. |
|
@@ 151-160 (lines=10) @@ | ||
148 | * |
|
149 | * @return \EasyWeChat\Support\Collection |
|
150 | */ |
|
151 | public function delete($dataId, $index, $commentId) |
|
152 | { |
|
153 | $params = [ |
|
154 | 'msg_data_id' => $dataId, |
|
155 | 'index' => $index, |
|
156 | 'user_comment_id' => $commentId, |
|
157 | ]; |
|
158 | ||
159 | return $this->parseJSON('post', [self::API_DELETE_COMMENT, $params]); |
|
160 | } |
|
161 | ||
162 | /** |
|
163 | * Reply to a comment. |
|
@@ 172-182 (lines=11) @@ | ||
169 | * |
|
170 | * @return \EasyWeChat\Support\Collection |
|
171 | */ |
|
172 | public function reply($dataId, $index, $commentId, $content) |
|
173 | { |
|
174 | $params = [ |
|
175 | 'msg_data_id' => $dataId, |
|
176 | 'index' => $index, |
|
177 | 'user_comment_id' => $commentId, |
|
178 | 'content' => $content, |
|
179 | ]; |
|
180 | ||
181 | return $this->parseJSON('post', [self::API_REPLY_COMMENT, $params]); |
|
182 | } |
|
183 | ||
184 | /** |
|
185 | * Delete a reply. |
|
@@ 193-202 (lines=10) @@ | ||
190 | * |
|
191 | * @return \EasyWeChat\Support\Collection |
|
192 | */ |
|
193 | public function deleteReply($dataId, $index, $commentId) |
|
194 | { |
|
195 | $params = [ |
|
196 | 'msg_data_id' => $dataId, |
|
197 | 'index' => $index, |
|
198 | 'user_comment_id' => $commentId, |
|
199 | ]; |
|
200 | ||
201 | return $this->parseJSON('post', [self::API_DELETE_REPLY, $params]); |
|
202 | } |
|
203 | } |
|
204 |