💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 列表 ~~~[api] get:/admin/template/brands/index string:search#搜索关键词 number:cateId#分类ID number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-08-07 17:11:57", "data": [ { "id": 1, "cate_id": 1, "name": "品牌一", "description": "", "logo": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "status": 1, "created_at": "2018-08-07 17:03:46", "updated_at": "2018-08-07 17:03:46", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/template/brands/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-08-07 17:14:06", "data": { "id": 1, "cate_id": 1, "name": "品牌一", "description": "", "logo": "http://oss.dgyouduo.com/static/img/no-image.png", "sort": 0, "status": 1, "created_at": "2018-08-07 17:03:46", "updated_at": "2018-08-07 17:03:46", "status_text": "正常", "cate_parent_id_path": "0_1" } } ~~~ #### 创建 ~~~[api] post:/admin/template/brands/create *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 { "cate_id": 1, "name": "品牌一", "description": "这是一条描述" } ~~~ #### 更新 ~~~[api] post:/admin/template/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/template/brands/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-03 20:41:03", "data": [] } ~~~