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

21 lines
496 B
JavaScript
Raw Permalink Normal View History

2024-06-22 07:20:39 +00:00
"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;