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.
yanzong_qianduan/api/squareDynamic/index.js

30 lines
644 B

7 months ago
import request from '@/utils/request'
// api地址
const api = {
publishDynamic: 'square/add',
getDynamic: 'square/list',
6 months ago
dynamicLike: 'square/dynamicLike',
dynamicDelete: 'square/delete'
7 months ago
}
// 发布动态
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 })
6 months ago
}
// 动态删除
export function deleteDynamic(param) {
return request.post(api.dynamicDelete, { ...param })
7 months ago
}