21 lines
496 B
JavaScript
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;
|