18 lines
396 B
JavaScript
18 lines
396 B
JavaScript
|
"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;
|