gree_leran/apis/likes.js

25 lines
364 B
JavaScript
Raw Normal View History

2024-06-20 15:36:19 +00:00
import {http} from "../utils/http.js"
/**
* 喜欢列表
*/
export const getLikesList= () => {
return http({
url:"/api/likes/selectLikesList",
method:"POST"
})
}
/**
* 添加喜欢
* data{
"contentType":0,
"contentId":0,
"extField1":1
}
*/
export const addLike=(data)=>{
return http({
url:"/api/likes",
method:"POST",
data,
})
}