18 lines
365 B
JavaScript
18 lines
365 B
JavaScript
"use strict";
|
|
const utils_http = require("../utils/http.js");
|
|
const getLikesList = () => {
|
|
return utils_http.http({
|
|
url: "/api/likes/selectLikesList",
|
|
method: "POST"
|
|
});
|
|
};
|
|
const addLike = (data) => {
|
|
return utils_http.http({
|
|
url: "/api/likes",
|
|
method: "POST",
|
|
data
|
|
});
|
|
};
|
|
exports.addLike = addLike;
|
|
exports.getLikesList = getLikesList;
|