ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
#### 列表 ~~~[api] get:/admin/goods/parameter/index *number:storesId#门店ID string:search#搜索关键词 number:cateId#分类ID number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-06-14 17:08:13", "data": [ { "id": 1, "dealer_id": 1, "stores_id": 1, "cate_id": 1, "name": "参数1", "type": 2, "default_values": false, "sort": 0, "status": 1, "created_at": "2018-06-14 16:38:23", "updated_at": "2018-06-14 16:56:22", "type_text": "多行文本", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/goods/parameter/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-06-14 17:00:22", "data": { "id": 1, "dealer_id": 1, "stores_id": 1, "cate_id": 1, "name": "参数1", "type": 2, "default_values": false, "sort": 0, "status": 1, "created_at": "2018-06-14 16:38:23", "updated_at": "2018-06-14 16:56:22", "type_text": "多行文本", "status_text": "正常", "cate_parent_id_path": "0_1" } } ~~~ #### 创建 ~~~[api] post:/admin/goods/parameter/create *number:dealer_id#商家ID *number:stores_id#门店ID *number:cate_id#分类ID *string:name#名称 *number:type#属性值类型(录入方式),1=>单行文本,2=>多行文本,3=>单选,4=>多选 array:default_values#默认值(单选和多选需要填入) number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2017-12-28 13:05:15", "data": [] } <<< example { "dealer_id": 1, "stores_id": 1, "cate_id": 1, "name": "网络制式", "type": "3", "default_values": ["全网通4G", "电信4G", "联通4G"] } ~~~ #### 更新 ~~~[api] post:/admin/goods/parameter/update/id/:id string:name#名称 number:type#属性值类型(录入方式),1=>单行文本,2=>多行文本,3=>单选,4=>多选 array:default_values#默认值(单选和多选需要填入) number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-01-03 21:58:03", "data": [] } ~~~ #### 删除 ~~~[api] post:/admin/goods/parameter/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2017-12-28 13:05:15", "data": [] } ~~~