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

24 lines
498 B

import request from '@/utils/request'
// api地址
const api = {
publishDynamic: 'square/add',
getDynamic: 'square/list',
dynamicLike: 'square/dynamicLike'
}
// 发布动态
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 })
}