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

21 lines
496 B
JavaScript

"use strict";
const utils_http = require("../utils/http.js");
const getCommentsByRelatedPostId = (relatedPostId) => {
return utils_http.http({
url: "/api/comments/getCommentsByContentId2",
method: "GET",
data: {
relatedPostId
}
});
};
const addComments = (data) => {
return utils_http.http({
url: "/api/comments/addComments",
method: "POST",
data
});
};
exports.addComments = addComments;
exports.getCommentsByRelatedPostId = getCommentsByRelatedPostId;