oceanus.js 344 Bytes
Newer Older
陈浩玮's avatar
设备  
陈浩玮 committed
1 2 3 4 5 6 7 8 9 10 11 12 13
import { delReq, getReq, postReq, putReq } from '@/utils';

function getOceanusTreeApi(data) {
    return getReq('/oceanus/api/v1/categories', data);
}
function addOceanusTreeApi(data) {
    return postReq('/oceanus/api/v1/categories', data);
}

export default {
    getOceanusTree: getOceanusTreeApi,
    addOceanusTree: addOceanusTreeApi,
};