知识库详情
GET /app/knowledge/detail| 字段 | 名称 | 类型 | 是否必须 |
| id | 知识库id | int | 是 |
| 字段 | 名称 | 类型 |
| id | 知识库id | int |
| name | 知识库名称 | string |
| desc | 知识库描述 | string |
| cover | 知识库封面 | string |
| articles | 知识库文章 | array |
articles
| 字段 | 名称 | 类型 |
| id | 文章id | int |
| pid | 上级文档id | int |
| title | 文章名称 | string |
| hidden | 是否隐藏1是0否 | int |
| desc | 文章描述 | string |
| cover | 封面 | string |
| products | 文章商品 字段可看商品详情API | array |
{ "code": 0, "data": { "recollection": { "id": 1, "created_at": 1661840007, "updated_at": 1661840011, "name": "测试", "sort": 0, "desc": "描述", "cover": "https://img.yunzhonghe.com/image/1636353090079gFnobvIICq.jpg", "status": 1, "articles": [ { "id": 1, "created_at": 1661846896, "updated_at": 1661846901, "pid": 0, "user_id": 201, "sort": 0, "knowledge_base_id": 1, "hidden": 0, "title": "文章标题1", "desc": "czzz</u></strong></p><p><br /></p><p><br /></p><h2><strong><u>ewqeqw</u></strong></h2>", "cover": "文章标题1", "num": 1, "status": 1, "products": [ { "id": 809, "updated_at": 1660582802, "created_at": 1646467097, "title": "Calbee/卡乐比进口原味水果麦片500g即食燕麦片代餐早餐饱腹食品 红色 Calbee 水果麦片500g 红色", "origin_price": 5800, "guide_price": 5800, "price": 5460, "cost_price": 5353, "activity_price": 5800, "min_buy_qty": 0, "stock": 491, "sales": 0, "feedback_rate": 0, "sn": "", "code": "", "is_new": 0, "is_recommend": 0, "is_hot": 0, "is_promotion": 0, "is_display": 1, "status_lock": 0, "single_option": 1, "desc": "", "image_url": "https://img.yunzhonghe.com/image/1604300861578XMZRfrQaqP.jpg", "video_url": "", "unit": "袋", "barcode": "", "long": 0, "wide": 0, "high": 0, "volume": 0, "freight": 0, "freight_type": 2, "maxPrice": 5460, "minPrice": 5460, "gallery": [ { "type": 1, "src": "https://img.yunzhonghe.com/image/1604300879973HoydarvBaK.jpg" }, { "type": 1, "src": "https://img.yunzhonghe.com/image/1604300874351vgaHNcrMxj.jpg" }, { "type": 1, "src": "https://img.yunzhonghe.com/image/1604300868971zvOutQPiqa.jpg" } ], "qualifications": null, "detail_images": "<figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1604301170716iieDkLHLis.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1604301170757OVkVxxpaYP.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1604301170748HKSYlCqxeU.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1604301170760AXRPOFFyGa.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1604301170794vKQpYbIMDp.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1604301170956eqKpEzzbik.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1604301170818GJQTYGjEku.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1604301170973RASbKjubNK.jpg\"></figure>", "attrs": null, "supplier": { "id": 0, "name": "" }, "gather_supply": { "id": 0, "name": "", "key": "", "category_id": 0 }, "ali_product": { "id": 0, "created_at": null, "updated_at": null, "product_id": 0, "sku_id": 0, "ali_sku_id": "", "ali_product_id": 0, "shop_id": "" }, "brand_id": 3005, "brand": { "id": 0, "created_at": null, "updated_at": null, "name": "" }, "supplier_id": 0, "gather_supply_id": 11, "category1_id": 1507, "category2_id": 1508, "category3_id": 1509, "freight_template_id": 0, "source": 108, "sort": 0, "source_goods_id": 1125899906965684, "freeze": 0, "shop_level": 0, "des_level": 0, "express_level": 0, "level": 0, "child_title": "", "bill_position": 1, "md5": "", "tax_code": "", "tax_short_name": "", "tax_option": "", "tax_unit": "", "favorable_policy": "", "is_favorable_policy": 0, "free_of_tax": 0, "short_code": "", "tax_measure_price": 0, "tax_rate": 13, "is_tax_logo": 0, "product_verify": { "id": 0, "created_at": null, "updated_at": null, "product_id": 0, "supplier_id": 0, "status": 0, "is_display": 0 } } ], "children": [ { "id": 2, "created_at": 1661846898, "updated_at": 1661846903, "pid": 1, "user_id": 200, "sort": 0, "knowledge_base_id": 1, "hidden": 0, "title": "文章标题1", "desc": "czzz</u></strong></p><p><br /></p><p><br /></p><h2><strong><u>ewqeqw</u></strong></h2>", "cover": "文章标题1", "num": 1, "status": 1, "products": [ { "id": 811, "updated_at": 1660582802, "created_at": 1646467097, "title": "沃隆每日坚果750g混合装A款(25g*30包)孕妇零食成人款 卡其色 卡其色 ", "origin_price": 15900, "guide_price": 15900, "price": 13053, "cost_price": 12798, "activity_price": 15900, "min_buy_qty": 0, "stock": 9260, "sales": 3, "feedback_rate": 0, "sn": "", "code": "", "is_new": 0, "is_recommend": 0, "is_hot": 0, "is_promotion": 0, "is_display": 1, "status_lock": 0, "single_option": 1, "desc": "", "image_url": "https://img.yunzhonghe.com/image/1636353090079gFnobvIICq.jpg", "video_url": "", "unit": "盒", "barcode": "", "long": 0, "wide": 0, "high": 0, "volume": 0, "freight": 0, "freight_type": 2, "maxPrice": 13053, "minPrice": 13053, "gallery": [ { "type": 1, "src": "https://img.yunzhonghe.com/image/1636353089213fZePUqifat.jpg" }, { "type": 1, "src": "https://img.yunzhonghe.com/image/1636353089381palpEdsjXT.jpg" }, { "type": 1, "src": "https://img.yunzhonghe.com/image/1636353089385dfjcMRZzpI.jpg" }, { "type": 1, "src": "https://img.yunzhonghe.com/image/1636353089457WgklGJmlZh.jpg" } ], "qualifications": null, "detail_images": "<figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353122298aGJirGjGTq.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353122394ZuCTCnykzw.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353123066PzlcjUtfuB.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353123212NUrOQsufZp.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353122755rNaKfwNlLl.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353122914hdRivijkik.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353123272aXwtxSUGXY.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353123296uHXZWwrLFr.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353139006nWClrvAlQN.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353123768BgqpKPCYMj.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353123824QnaMynDkks.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353123938JEhIFuNeSX.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353124039SHyAkfDbVe.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353124189mzFCQYuhzc.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353124342YgVrZLiSHk.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353124723jsAiUJHNVF.jpg\"></figure><figure class=\"image\"><img src=\"https://img.yunzhonghe.com/image/1636353124553TdVsXdTVrP.jpg\"></figure>", "attrs": null, "supplier": { "id": 0, "name": "" }, "gather_supply": { "id": 0, "name": "", "key": "", "category_id": 0 }, "ali_product": { "id": 0, "created_at": null, "updated_at": null, "product_id": 0, "sku_id": 0, "ali_sku_id": "", "ali_product_id": 0, "shop_id": "" }, "brand_id": 3007, "brand": { "id": 0, "created_at": null, "updated_at": null, "name": "" }, "supplier_id": 0, "gather_supply_id": 11, "category1_id": 1507, "category2_id": 1511, "category3_id": 1512, "freight_template_id": 0, "source": 108, "sort": 0, "source_goods_id": 1125899906965689, "freeze": 0, "shop_level": 0, "des_level": 0, "express_level": 0, "level": 0, "child_title": "", "bill_position": 1, "md5": "", "tax_code": "", "tax_short_name": "", "tax_option": "", "tax_unit": "", "favorable_policy": "", "is_favorable_policy": 0, "free_of_tax": 0, "short_code": "", "tax_measure_price": 0, "tax_rate": 13, "is_tax_logo": 0, "product_verify": { "id": 0, "created_at": null, "updated_at": null, "product_id": 0, "supplier_id": 0, "status": 0, "is_display": 0 } } ], "children": null, "knowledge_base": { "id": 0, "created_at": null, "updated_at": null, "name": "", "sort": 0, "desc": "", "cover": "", "status": 0, "articles": null, "num": 0 }, "user": { "id": 200, "created_at": 1661219252, "updated_at": 1661219252, "mobile": "", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "username": "13428164709", "nickname": "张冰榆", "status": 0, "uuid": "86e805c8-673d-4258-917c-e68f17a82a33", "level_id": 0, "parent_id": 0, "temporary_parent_id": 0, "qr_code": "", "invite_code": "KWQMZTWN", "wx_username": "", "user_level": { "id": 0, "created_at": null, "updated_at": null, "discount": 0, "name": "" }, "wx_openid": "", "wx_mini_openid": "", "wx_unionid": "" } }, { "id": 5, "created_at": 1661846898, "updated_at": 1661846903, "pid": 1, "user_id": 200, "sort": 0, "knowledge_base_id": 1, "hidden": 0, "title": "文章标题1", "desc": "czzz</u></strong></p><p><br /></p><p><br /></p><h2><strong><u>ewqeqw</u></strong></h2>", "cover": "文章标题1", "num": 1, "status": 1, "products": [], "children": null, "knowledge_base": { "id": 0, "created_at": null, "updated_at": null, "name": "", "sort": 0, "desc": "", "cover": "", "status": 0, "articles": null, "num": 0 }, "user": { "id": 200, "created_at": 1661219252, "updated_at": 1661219252, "mobile": "", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "username": "13428164709", "nickname": "张冰榆", "status": 0, "uuid": "86e805c8-673d-4258-917c-e68f17a82a33", "level_id": 0, "parent_id": 0, "temporary_parent_id": 0, "qr_code": "", "invite_code": "KWQMZTWN", "wx_username": "", "user_level": { "id": 0, "created_at": null, "updated_at": null, "discount": 0, "name": "" }, "wx_openid": "", "wx_mini_openid": "", "wx_unionid": "" } }, { "id": 6, "created_at": 1661846898, "updated_at": 1661846903, "pid": 1, "user_id": 200, "sort": 0, "knowledge_base_id": 1, "hidden": 0, "title": "1564564564564", "desc": "czzz</u></strong></p><p><br /></p><p><br /></p><h2><strong><u>ewqeqw</u></strong></h2>", "cover": "文章标题1", "num": 1, "status": 1, "products": [], "children": null, "knowledge_base": { "id": 0, "created_at": null, "updated_at": null, "name": "", "sort": 0, "desc": "", "cover": "", "status": 0, "articles": null, "num": 0 }, "user": { "id": 200, "created_at": 1661219252, "updated_at": 1661219252, "mobile": "", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "username": "13428164709", "nickname": "张冰榆", "status": 0, "uuid": "86e805c8-673d-4258-917c-e68f17a82a33", "level_id": 0, "parent_id": 0, "temporary_parent_id": 0, "qr_code": "", "invite_code": "KWQMZTWN", "wx_username": "", "user_level": { "id": 0, "created_at": null, "updated_at": null, "discount": 0, "name": "" }, "wx_openid": "", "wx_mini_openid": "", "wx_unionid": "" } } ], "knowledge_base": { "id": 0, "created_at": null, "updated_at": null, "name": "", "sort": 0, "desc": "", "cover": "", "status": 0, "articles": null, "num": 0 }, "user": { "id": 201, "created_at": 1661219252, "updated_at": 1661219252, "mobile": "", "avatar": "https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png", "username": "18879830217", "nickname": "梁彩坤", "status": 0, "uuid": "334c8dcc-1ddb-4a25-a06f-d4ec2bf85cfe", "level_id": 0, "parent_id": 0, "temporary_parent_id": 0, "qr_code": "", "invite_code": "ZY5V8AB3", "wx_username": "", "user_level": { "id": 0, "created_at": null, "updated_at": null, "discount": 0, "name": "" }, "wx_openid": "", "wx_mini_openid": "", "wx_unionid": "" } } ], "num": 0 } }, "msg": "操作成功"}