Commit 973f3c7c authored by 武广's avatar 武广

feat: 添加草稿接口

parent 3af19a6d
...@@ -19,6 +19,7 @@ import { ...@@ -19,6 +19,7 @@ import {
merchantProductAdd, merchantProductAdd,
merchantProductEdit, merchantProductEdit,
getByProductType, getByProductType,
apiCreateDraft,
} from './service'; } from './service';
import { isUrl, filterSendData, clearCurrent, onAutoSaveValue, localAutoSaveKey } from './utils'; import { isUrl, filterSendData, clearCurrent, onAutoSaveValue, localAutoSaveKey } from './utils';
import { ServiceContext } from './context'; import { ServiceContext } from './context';
......
...@@ -103,3 +103,10 @@ export const apiGetAttribute = categoryId => ...@@ -103,3 +103,10 @@ export const apiGetAttribute = categoryId =>
request.get(`/api/kdsp/category/template/ref/attribute/detail?categoryId=${categoryId}`, { request.get(`/api/kdsp/category/template/ref/attribute/detail?categoryId=${categoryId}`, {
prefix: goodsApi, prefix: goodsApi,
}); });
// 新建草稿
export const apiCreateDraft = data =>
request.post('/product/draft/add', {
prefix: goodsApi,
data,
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment