gree_leran/apis/discussion.js

20 lines
300 B
JavaScript
Raw Normal View History

2024-06-20 15:36:19 +00:00
import {http} from "../utils/http.js"
/**
* 讨论列表
*/
export const getDiscussionList= () => {
return http({
url:"/api/discussion/list",
method:"GET"
})
}
/**
* 添加讨论
*/
2024-06-22 07:20:39 +00:00
export const addDiscussion=(data)=>{
2024-06-20 15:36:19 +00:00
return http({
url:"/api/discussion",
method:"POST",
data,
})
}