🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 列表 ~~~[api] get:/dealer/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": "品牌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": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/dealer/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:/dealer/goods/brands/create *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 { "stores_id": 1, "cate_id": 1, "name": "品牌一", "description": "这是一条描述" } ~~~ #### 更新 ~~~[api] post:/dealer/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:/dealer/goods/brands/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:41:03", "data": [] } ~~~