gree_leran/apis/likes.js

25 lines
364 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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,
})
}