mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-20 00:16:37 +08:00
22 lines
452 B
JavaScript
22 lines
452 B
JavaScript
import myaxios from '@/utils/request'
|
|
export function getListByDiscussId(discussId,data){
|
|
return myaxios({
|
|
url: `/comment/discuss-id/${discussId}`,
|
|
method: 'get',
|
|
params:data
|
|
})
|
|
};
|
|
export function add(data){
|
|
return myaxios({
|
|
url: `/comment`,
|
|
method: 'post',
|
|
data:data
|
|
})
|
|
};
|
|
|
|
export function del(ids){
|
|
return myaxios({
|
|
url: `/comment/${ids}`,
|
|
method: 'delete'
|
|
})
|
|
}; |