|
@@ -288,4 +288,32 @@ class Topic extends Api |
|
@@ -288,4 +288,32 @@ class Topic extends Api |
288
|
{
|
288
|
{
|
289
|
$topic_id = $this->request->param('topic_id');
|
289
|
$topic_id = $this->request->param('topic_id');
|
290
|
}
|
290
|
}
|
|
|
291
|
+
|
|
|
292
|
+ /**
|
|
|
293
|
+ * @ApiTitle (评论-列表)
|
|
|
294
|
+ * @ApiSummary (评论-列表)
|
|
|
295
|
+ * @ApiMethod (POST)
|
|
|
296
|
+ *
|
|
|
297
|
+ * @ApiParams (name="topic_id", type="int", required=true, description="话题ID")
|
|
|
298
|
+ *
|
|
|
299
|
+ * @ApiReturn({
|
|
|
300
|
+ "code": 1,
|
|
|
301
|
+ "msg": "成功",
|
|
|
302
|
+ "time": "1599046220",
|
|
|
303
|
+ "data": {
|
|
|
304
|
+ "id": 1, //试卷ID
|
|
|
305
|
+ "title": "测试试卷", //试卷标题
|
|
|
306
|
+ "year": 2015, //年费(单位:年)
|
|
|
307
|
+ "time": 100, //答题时间(单位:分)
|
|
|
308
|
+ "pass_score": 80, //合格分数
|
|
|
309
|
+ "description": "这个还行", //试卷描述
|
|
|
310
|
+ "do_num": 10, //回答人数
|
|
|
311
|
+ "full_score": 100 //试卷分数(单位:分)
|
|
|
312
|
+ }
|
|
|
313
|
+ })
|
|
|
314
|
+ */
|
|
|
315
|
+ public function appraiseList()
|
|
|
316
|
+ {
|
|
|
317
|
+ $topic_id = $this->request->param('topic_id');
|
|
|
318
|
+ }
|
291
|
} |
319
|
} |