|
import {http} from "../utils/http.js"
|
|
/**
|
|
* 讨论列表
|
|
*/
|
|
export const getDiscussionList= () => {
|
|
return http({
|
|
url:"/api/discussion/list",
|
|
method:"GET"
|
|
})
|
|
}
|
|
/**
|
|
* 添加讨论
|
|
*/
|
|
export const addDiscussion=(data)=>{
|
|
return http({
|
|
url:"/api/discussion",
|
|
method:"POST",
|
|
data,
|
|
})
|
|
} |