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

feat: 添加草稿接口

parent 3af19a6d
......@@ -19,6 +19,7 @@ import {
merchantProductAdd,
merchantProductEdit,
getByProductType,
apiCreateDraft,
} from './service';
import { isUrl, filterSendData, clearCurrent, onAutoSaveValue, localAutoSaveKey } from './utils';
import { ServiceContext } from './context';
......
......@@ -103,3 +103,10 @@ export const apiGetAttribute = categoryId =>
request.get(`/api/kdsp/category/template/ref/attribute/detail?categoryId=${categoryId}`, {
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