|
|
|
@ -4,7 +4,8 @@ import request from '@/utils/request' |
|
|
|
|
const api = { |
|
|
|
|
publishDynamic: 'square/add', |
|
|
|
|
getDynamic: 'square/list', |
|
|
|
|
dynamicLike: 'square/dynamicLike' |
|
|
|
|
dynamicLike: 'square/dynamicLike', |
|
|
|
|
dynamicDelete: 'square/delete' |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 发布动态
|
|
|
|
@ -22,3 +23,8 @@ export function getDynamic(param) { |
|
|
|
|
export function dynamicLike(param) { |
|
|
|
|
return request.post(api.dynamicLike, { ...param }) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 动态删除
|
|
|
|
|
export function deleteDynamic(param) { |
|
|
|
|
return request.post(api.dynamicDelete, { ...param }) |
|
|
|
|
} |