gree_leran/unpackage/dist/dev/mp-weixin/apis/cast.js

25 lines
510 B
JavaScript

"use strict";
const utils_http = require("../utils/http.js");
const getCaseList = () => {
return utils_http.http({
url: "/api/case/list",
method: "GET"
});
};
const getCastInfo = (id) => {
return utils_http.http({
url: "/api/case/" + id,
method: "GET"
});
};
const saveCaseInfo = (data) => {
return utils_http.http({
url: "/api/case",
data,
method: "POST"
});
};
exports.getCaseList = getCaseList;
exports.getCastInfo = getCastInfo;
exports.saveCaseInfo = saveCaseInfo;