diff --git a/src/api/wjnft/brand.js b/src/api/wjnft/brand.js new file mode 100644 index 0000000..47a350a --- /dev/null +++ b/src/api/wjnft/brand.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询入驻品牌列表 +export function listBrand(query) { + return request({ + url: '/wjnft/brand/list', + method: 'get', + params: query + }) +} + +// 查询入驻品牌详细 +export function getBrand(id) { + return request({ + url: '/wjnft/brand/' + id, + method: 'get' + }) +} + +// 新增入驻品牌 +export function addBrand(data) { + return request({ + url: '/wjnft/brand', + method: 'post', + data: data + }) +} + +// 修改入驻品牌 +export function updateBrand(data) { + return request({ + url: '/wjnft/brand', + method: 'put', + data: data + }) +} + +// 删除入驻品牌 +export function delBrand(id) { + return request({ + url: '/wjnft/brand/' + id, + method: 'delete' + }) +} diff --git a/src/components/ImageUpload/index.vue b/src/components/ImageUpload/index.vue index cf97c39..b0ee40b 100644 --- a/src/components/ImageUpload/index.vue +++ b/src/components/ImageUpload/index.vue @@ -1,7 +1,7 @@