🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~[api] get:/portal/lists/getCategoryPostLists category_id#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":" fasdfasdf fasdf cdd ", "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 ~~~