多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] # 获取轮播图 ~~~[api] post:/api/articles/getBanners *intger:type=2#移动端2还是pc端1 <<< success { "code": 1, "msg": "获取成功", "data": [ { "slide_id": 8, "goods_id": 13, "type": 2, "image": "images/osc1/slide/4.jpg", "url": "", "title": "品质好货", "status": 0, "create_time": 0 }, ], "url": "/api/Articles/getbanners", "wait": 3 } <<< error 无 ~~~ # 获取首页推荐文章列表 ~~~[api] post:/api/articles/getTuijianArticles <<< success { "code": 1, "msg": "获取成功", "data": [ { "id": 3, "cid": 2, "create_time": 1479363186, "title": "购物流程", "view": 0, "image": null, "catname": "新手帮助", "catimage": "", "content":"" "created_time_text":'' } ], "url": "/api/Articles/gettuijianarticles", "wait": 3 } <<< error 无 ~~~ # 获取最新文章列表 ~~~[api] post:/api/articles/getLatesArticles <<< success { "code": 1, "msg": "获取成功", "data": [ { "id": 3, "cid": 2, "create_time": 1479363186, "title": "购物流程", "view": 0, "image": null, "catname": "新手帮助", "catimage": "" "content":"" "created_time_text":'' } ], "url": "/api/Articles/gettuijianarticles", "wait": 3 } <<< error 无 ~~~ # 获取某个分类下的文章列表 ~~~[api] post:/api/articles/getArticlesByCatgoryId *integer:id=1#分类ID <<< success { "code": 1, "msg": "获取成功", "data": [ { "id": 3, "cid": 2, "create_time": 1479363186, "title": "购物流程", "view": 0, "image": null, "catname": "新手帮助", "catimage": "" "content":"" "created_time_text":'' } ], "url": "/api/Articles/getarticlesbycatgoryid", "wait": 3 } <<< error 无 ~~~ # 获取文章详情(含接种必读) ~~~[api] post:/api/articles/detail *string:id=1#说明文字 name#说明文字 <<< success { "code": 1, "msg": "获取成功", "data": { "id": 1, "title": "关于双11配送延迟 ", "uid": 0, "author": "admin", "cid": 1, "view": 0, "create_time": 1526953345, "update_time": 0, "status": 1, "top": 0, "sort_order": 0, "image": "", "seo_keywords": "关于双11配送延迟 ", "seo_description": "关于双11配送延迟 ", "content": "<p>尊贵的会员:</p><p>  由于双11当天订单量较多,可能造成配送延迟,给您带来不便,望请谅解。</p><p><br/></p>", "article_id": 1, "catname": "平台公告", "catimg": "", "created_time_text":‘‘’’ }, "url": "/api/Articles/detail", "wait": 3 } <<< error { "code": 0, "msg": "文章不存在!", "data": "", "url": "", "wait": 3 } ~~~