260616
This commit is contained in:
@@ -130,3 +130,19 @@ export async function importShopGoods(file: File) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入商品图片
|
||||
*/
|
||||
export async function importShopGoodsImages(file: File) {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
const res = await request.post<ApiResult<unknown>>(
|
||||
MODULES_API_URL + '/shop/shop-goods/import/images',
|
||||
formData
|
||||
);
|
||||
if (res.data.code === 0) {
|
||||
return res.data.message;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ export interface ShopGoodsCategory {
|
||||
type?: number;
|
||||
// 分类图片
|
||||
image?: string;
|
||||
// 广告图
|
||||
adImage?: string;
|
||||
// 上级分类ID
|
||||
parentId?: number;
|
||||
// 路由/链接地址
|
||||
|
||||
@@ -20,6 +20,10 @@ export interface Payment {
|
||||
appId?: string;
|
||||
// 商户号
|
||||
mchId?: string;
|
||||
// 子商户应用ID
|
||||
subAppId?: string;
|
||||
// 子商户号
|
||||
subMchId?: string;
|
||||
// 设置APIv3密钥
|
||||
apiKey?: string;
|
||||
// 证书文件 (CERT)
|
||||
|
||||
Reference in New Issue
Block a user