18 lines
363 B
JavaScript
18 lines
363 B
JavaScript
"use strict";
|
|
const utils_http = require("../utils/http.js");
|
|
const getCaseList = () => {
|
|
return utils_http.http({
|
|
url: "/api/case/list",
|
|
method: "GET"
|
|
});
|
|
};
|
|
const saveCaseInfo = (data) => {
|
|
return utils_http.http({
|
|
url: "/api/case",
|
|
data,
|
|
method: "POST"
|
|
});
|
|
};
|
|
exports.getCaseList = getCaseList;
|
|
exports.saveCaseInfo = saveCaseInfo;
|