ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 列表 ~~~[api] get:/admin/goods/brands/index *number:storesId#门店ID string:search#搜索关键词 number:cateId#分类ID number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-06-14 13:13:45", "data": [ { "id": 1, "dealer_id": 1, "stores_id": 1, "cate_id": 1, "name": "品牌一", "description": "品牌一", "logo": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2016-01-01 00:00:00", "category": { "id": 1, "dealer_id": 1, "stores_id": 1, "parent_id": 0, "parent_id_path": "0_1", "level": 1, "name": "分类一", "thumb": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "is_show": 0, "is_hot": 0, "status": 1, "created_at": "2018-09-11 17:08:23", "updated_at": "2018-09-11 17:08:23", "status_text": "正常" }, "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/goods/brands/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-14 13:10:29", "data": { "id": 1, "dealer_id": 1, "stores_id": 1, "cate_id": 1, "name": "品牌1", "description": "", "logo": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "status": 1, "created_at": "2018-06-14 12:27:15", "updated_at": "2018-06-14 13:07:11", "status_text": "正常", "cate_parent_id_path": "0_1" } } ~~~ #### 创建 ~~~[api] post:/admin/goods/brands/create *number:dealer_id#商家ID *number:stores_id#门店ID *number:cate_id#分类ID *string:name#名称 string:description#描述 string:logo=http://oss.dgyouduo.com/static/img/no-image.png#商标 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:37:29", "data": [] } <<< example { "dealer_id": 1, "stores_id": 1, "cate_id": 1, "name": "品牌一", "description": "这是一条描述" } ~~~ #### 更新 ~~~[api] post:/admin/goods/brands/update/id/:id string:name#名称 string:description#描述 string:logo=http://oss.dgyouduo.com/static/img/no-image.png#商标 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:40:40", "data": [] } ~~~ #### 删除 ~~~[api] post:/admin/goods/brands/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:41:03", "data": [] } ~~~