18 lines
422 B
JavaScript
18 lines
422 B
JavaScript
"use strict";
|
|
const utils_http = require("../utils/http.js");
|
|
const addCollections = (data) => {
|
|
return utils_http.http({
|
|
url: "/api/collections",
|
|
method: "POST",
|
|
data
|
|
});
|
|
};
|
|
const getCollectionsList = () => {
|
|
return utils_http.http({
|
|
url: "/api/collections/selectCollectionsList",
|
|
method: "POST"
|
|
});
|
|
};
|
|
exports.addCollections = addCollections;
|
|
exports.getCollectionsList = getCollectionsList;
|