gree_leran/apis/discussion.js

20 lines
300 B
JavaScript

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,
})
}