-
Notifications
You must be signed in to change notification settings - Fork 473
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
64 changed files
with
3,126 additions
and
1,891 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,24 @@ | ||
import api from './api' | ||
import { limit } from './index' | ||
|
||
// 获取系统通知 | ||
export function getNotificationStatistics () { | ||
return api.get(`/user/notification-statistics`) | ||
} | ||
|
||
// 获取未读审核通知数量 | ||
export function getUnreadCounts () { | ||
return api.get('/user/counts') | ||
} | ||
|
||
/** | ||
* 获取通知列表 | ||
* @author mutoe <mutoe@foxmail.com> | ||
* @export | ||
* @param {Object} params | ||
* @param {string} params.type | ||
* @param {number} [params.page=1] | ||
* @returns | ||
*/ | ||
export function getNotification (params) { | ||
return api.get('/user/notifications', { params }) | ||
export function getNotifications (offset = 0) { | ||
return api.get(`/user/notifications`, { | ||
params: { | ||
offset, | ||
limit, | ||
}, | ||
}) | ||
} | ||
|
||
/** | ||
* 标记通知已读 | ||
* @author mutoe <mutoe@foxmail.com> | ||
* @export | ||
* @param {string} type | ||
* @returns | ||
* 清除未读提示 | ||
* @Author Wayne | ||
* @DateTime 2018-05-05 | ||
* @Email qiaobin@zhiyicx.com | ||
* @param {String} type [清除的消息类型] | ||
* @return {[type]} [description] | ||
*/ | ||
export function resetNotificationCount (type) { | ||
return api.patch('/user/notifications', {}, { params: { type } }) | ||
export function resetUserCount (type = '') { | ||
api.patch('/user/counts', { type }) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,7 +96,6 @@ const defaultPoster = { | |
} | ||
export default { | ||
name: 'ImagePoster', | ||
props: { | ||
/** | ||
* @type {Poster} | ||
|
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.