💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] ## 品牌信息 ~~~[api] post:/goodsbrand/info *int:id=默认值1#品牌id <<< success { "code": 0, "info": "成功", "data":{ "id": 1, "title": "test", "state": 1, } } <<< error ~~~ ## 品牌列表 ~~~[api] post:/goodsbrand/getlist *int:page=1#页码 *int:limit=10#每页显示个数 string:key=id#排序字段名 string:order=normal#排序方式 <<< success { "code": 0, "info": "成功", "data":[ { "id": 2, "title": "test", "state": 1 }, { "id": 1, "title": "test", "state": 1 } ] } <<< error ~~~ ## 添加品牌 ~~~[api] post:/goodsbrand/add *string:title=test#品牌名称 *int:is_tag=1#是否生成标签,0不生成,1生成 <<< success { "code": 0, "info": "成功", "data":{ "title": "test", "id": "1" } } <<< error ~~~ ## 编辑品牌 ~~~[api] post:/goodsbrand/edit *int:id=1000#品牌Id *string:title=张三#品牌名称 *int:state=1#状态 0-停业,1-营业 *int:is_tag=1#是否生成标签,0不生成,1生成 <<< success { "code": 0, "info": "成功", "data":{ "title": "测试名称", "id": "1", "state": "0", } } <<< error ~~~ ## 删除品牌 ~~~[api] post:/goodsbrand/del *int:id=1000#品牌Id <<< success { "code": 0, "info": "成功", "data": 1 } <<< error { "code": 13002, "info": "该品牌下有商品,不能删除", "data": null } ~~~