You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pifa/api/squareDynamic/index.js

30 lines
644 B

5 months ago
import request from '@/utils/request'
// api地址
const api = {
publishDynamic: 'square/add',
getDynamic: 'square/list',
dynamicLike: 'square/dynamicLike',
dynamicDelete: 'square/delete'
}
// 发布动态
export function publishDynamic(param) {
return request.post(api.publishDynamic, { ...param })
}
// 获取动态列表
export function getDynamic(param) {
return request.get(api.getDynamic, { ...param })
}
// 动态点赞
export function dynamicLike(param) {
return request.post(api.dynamicLike, { ...param })
}
// 动态删除
export function deleteDynamic(param) {
return request.post(api.dynamicDelete, { ...param })
}