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

25 lines
510 B
JavaScript
Raw Normal View History

2024-06-20 15:36:19 +00:00
"use strict";
const utils_http = require("../utils/http.js");
const getCaseList = () => {
return utils_http.http({
url: "/api/case/list",
method: "GET"
});
};
2024-06-22 07:20:39 +00:00
const getCastInfo = (id) => {
return utils_http.http({
url: "/api/case/" + id,
method: "GET"
});
};
2024-06-20 15:36:19 +00:00
const saveCaseInfo = (data) => {
return utils_http.http({
url: "/api/case",
data,
method: "POST"
});
};
exports.getCaseList = getCaseList;
2024-06-22 07:20:39 +00:00
exports.getCastInfo = getCastInfo;
2024-06-20 15:36:19 +00:00
exports.saveCaseInfo = saveCaseInfo;