-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
218 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import request from '@/utils/request'; | ||
|
||
/** | ||
* 反馈 | ||
*/ | ||
export interface FeedbackItem { | ||
id: number; | ||
userId?: number; | ||
title: string; | ||
content: string; | ||
isSolve?: number; | ||
isTop?: number; | ||
like?: number; | ||
userAvatar?: string; | ||
createdAt: string; | ||
nickName: string; | ||
type: number; | ||
images?: string; | ||
issuelUrl?: string; | ||
} | ||
|
||
export interface FeedbackCommentItem { | ||
id: number; | ||
userAvatar?: string; | ||
nickName: string; | ||
content: string; | ||
createdAt: string; | ||
feedbackId: number; | ||
isTop?: number; | ||
} | ||
/** | ||
* 反馈接口 | ||
*/ | ||
export default { | ||
// 发布反馈 | ||
createFeedback(params: { title: string; content: string; type: number; images: string }) { | ||
return request.post('/feedback/create', params); | ||
}, | ||
// 获取反馈列表 | ||
getFeedbackList(params: { pageNum: number; pageSize: number; title: string; type: number }) { | ||
return request.get('/feedback/list', params); | ||
}, | ||
getFeedbackDetail(id: number) { | ||
return request.get('/feedback/detail', { id }); | ||
}, | ||
createFeedbackComment(params: { feedbackId: number; content: string }) { | ||
return request.post('/feedback/createComment', params); | ||
}, | ||
getFeedbackComments(feedbackId: number, pageSize: number, pageNum: number) { | ||
return request.get('/feedback/getComments', { feedbackId, pageSize, pageNum }); | ||
}, | ||
queryFeedbackTotal() { | ||
return request.get('/feedback/queryFeedbackTotal'); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,52 @@ | ||
import request from '@/utils/request'; | ||
import { PageParams } from './types'; | ||
import { PageParams, PageReqParams, CreatePageParams, PublishPageParams, PublishListParams } from './types'; | ||
export default { | ||
getCategoryList(params: PageParams) { | ||
return request.get('/page/category', params); | ||
// 获取页面列表 | ||
getPageList(params: PageParams) { | ||
return request.get('/page/list', params); | ||
}, | ||
|
||
// 获取页面模板列表 | ||
getPageTemplateList(params: Omit<PageParams, 'type'>) { | ||
return request.get('/page/getPageTemplateList', params); | ||
}, | ||
// 获取页面详情 | ||
getPageDetail(id: number) { | ||
return request.get(`/page/detail/${id}`); | ||
}, | ||
|
||
// 复制页面数据 | ||
copyPageData(params: PageReqParams) { | ||
return request.post('/page/copy', params); | ||
}, | ||
|
||
// 删除页面数据 | ||
delPageData(params: { id: number }) { | ||
return request.post('/page/delete', params); | ||
}, | ||
|
||
// 创建页面数据 | ||
createPageData(params: CreatePageParams) { | ||
return request.post('/page/create', params); | ||
}, | ||
|
||
// 保存页面数据 | ||
updatePageData(params: any) { | ||
return request.post('/page/update', params); | ||
}, | ||
|
||
// 发布 | ||
publishPage(params: PublishPageParams) { | ||
return request.post('/publish/create', params); | ||
}, | ||
|
||
// 发布记录 | ||
publishList(params: PublishListParams) { | ||
return request.post('/publish/list', params); | ||
}, | ||
|
||
// 页面回滚 | ||
rollbackPage(params: { pageId: number; env: string; lastPublishId: number }) { | ||
return request.post('/page/rollback', params); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import request from '@/utils/request'; | ||
import { PageParams } from './types'; | ||
export default { | ||
getCategoryList(params: PageParams) { | ||
return request.get('/project/category', params); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.