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

18 lines
396 B
JavaScript
Raw Normal View History

2024-06-22 07:20:39 +00:00
"use strict";
const utils_http = require("../utils/http.js");
const getDiscussionList = () => {
return utils_http.http({
url: "/api/discussion/list",
method: "GET"
});
};
const addDiscussion = (data) => {
return utils_http.http({
url: "/api/discussion",
method: "POST",
data
});
};
exports.addDiscussion = addDiscussion;
exports.getDiscussionList = getDiscussionList;