# 分类文章列表 ~~~[api] get:/portal/lists/getCategoryPostLists string:category_id=1#portal应用 分类的ID 默认id为1分类 field#过滤字段 [可选], 如:post.id,post.post_title,post.more limit#限制数量,如:8;分页参数存在时,此参数无效 page#分页查询 [可选]如:2,3 order#排序 + - :字段[可选]如:-post.id relation#关联的内容模型名[可选];如:user <<< success { "code":1, "msg":"ok", "data":{ "list":[ { "id":32, "post_type":1, "user_id":1, "comment_status":1, "is_top":0, "recommended":1, "post_hits":0, "post_like":0, "comment_count":0, "create_time":1501822613, "update_time":1503046987, "published_time":"2017-08-04 13:47:00", "post_title":"新闻演示一", "post_keywords":"test3,古典", "post_excerpt":"", "post_source":"", "post_content":" <p>fasdfasdf</p> <p>fasdf</p> <p>cdd</p> ", "more":{ "thumbnail":"https://demo5.thinkcmf.com/upload/portal/20170818/860edf3e568232d4bff8b3640aa4bcbb.gif", "template":"" }, "user":{ "id":1, "user_type":1, "sex":0, "birthday":0, "last_login_time":1503046340, "score":0, "coin":0, "create_time":1501809917, "user_status":1, "user_login":"admin", "user_pass":"###1fb8ada50246446534b83bead0dcac90", "user_nickname":"admin", "user_email":"zxxjjforever@163.com", "user_url":"", "avatar":"", "signature":"", "last_login_ip":"116.231.117.184", "user_activation_key":"", "mobile":"" } } ] } } <<< error //分类不存在时 { "code": 0, "msg": "fail", "data": "" } ~~~ ## 说明 传入分类ID , 该分类下的文章均会出现在此列表 排序方式为 按发布时间 DESC排序