mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-11 03:46:48 +08:00
feat:增加讨论任务-评论列表-发表帖子、帖子详情-帖子展示-图片展示-图片上传-回复评论
This commit is contained in:
@@ -11,6 +11,7 @@ export const USER_INFO = '/admin/CheckUser/userInfo'
|
||||
// export const FILE_UPLOAD = 'http://143.143.139.204:30001/file/upload'
|
||||
export const FILE_UPLOAD = import.meta.env.VITE_BASE_API + '/file/uploadFile'
|
||||
export const FILE_UPLOAD_ANNEX = import.meta.env.VITE_BASE_API + '/file/stuUploadAnnex'
|
||||
export const FILE_UPLOAD_IMG = import.meta.env.VITE_BASE_API + '/file/img'
|
||||
export const COMMON_TOKEN = 'https://upload-z2.qiniup.com'
|
||||
export const ROUTER_CHAPTER_LIST = '/stu/router/chapterList'
|
||||
export const ROUTER_LIST = '/stu/router/list post'
|
||||
@@ -51,7 +52,7 @@ export const VOTE_DETAIL2 = `/voteSubmit/queryVoteTaskDetailById post`
|
||||
// 投票详情接口
|
||||
export const VOTE_DETAIL_SUBMIT = `/voteSubmit/vote/commit post`
|
||||
|
||||
export const COMMENT_ADD = '/comment post'
|
||||
export const COMMENT_ADD = '/comment/add post'
|
||||
export const COMMENT_PRAISE = '/comment/praise post'
|
||||
export const COMMENT_COLLECTION = '/comment/collection post'
|
||||
|
||||
@@ -100,13 +101,21 @@ export const PostAdd = `/statement/add post`
|
||||
// 帖子收藏
|
||||
export const PostCollection = `/statement/collection post`
|
||||
// 帖子删除
|
||||
export const PostDelete = postId => `/statement/delete/?id=${postId} post`
|
||||
// 查询讨论下的帖子
|
||||
export const PostList = `/statement/list`
|
||||
export const PostDelete = postId => `/statement/delete?id=${postId} post`
|
||||
// 贴子点赞
|
||||
export const PostPraise = `/statement/praise post`
|
||||
// 帖子更新
|
||||
export const PostUpdate = `/statement/update post`
|
||||
|
||||
// 帖子详情查询
|
||||
export const PostDetails = `/statement/info`
|
||||
// 查询帖子的评论
|
||||
export const GetComments = `/statement/getComments`
|
||||
// 查询某个评论下更多的回复
|
||||
export const GetMoreComments = `/statement/getMoreComments`
|
||||
// 查询讨论下的帖子
|
||||
export const PostList = `/statement/list`
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user