莳松crm管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ss-crm-manage-web/src/api/system/notify/message/index.ts

51 lines
1.5 KiB

1 year ago
import request from '@/config/axios'
import qs from 'qs'
export interface NotifyMessageVO {
id: number
userId: number
userType: number
templateId: number
templateCode: string
templateNickname: string
templateContent: string
templateType: number
templateParams: string
readStatus: boolean
readTime: Date
}
// 查询站内信消息列表
export const getNotifyMessagePage = async (params: PageParam) => {
11 months ago
return await request.get({ url: '/admin-api/system/notify-message/page', params })
1 year ago
}
// 获得我的站内信分页
export const getMyNotifyMessagePage = async (params: PageParam) => {
11 months ago
return await request.get({ url: '/admin-api/system/notify-message/my-page', params })
1 year ago
}
// 批量标记已读
export const updateNotifyMessageRead = async (ids) => {
return await request.put({
11 months ago
url:
'/admin-api/system/notify-message/update-read?' +
qs.stringify({ ids: ids }, { indices: false })
1 year ago
})
}
// 标记所有站内信为已读
export const updateAllNotifyMessageRead = async () => {
11 months ago
return await request.put({ url: '/admin-api/system/notify-message/update-all-read' })
1 year ago
}
// 获取当前用户的最新站内信列表
export const getUnreadNotifyMessageList = async () => {
11 months ago
return await request.get({ url: '/admin-api/system/notify-message/get-unread-list' })
1 year ago
}
// 获得当前用户的未读站内信数量
export const getUnreadNotifyMessageCount = async () => {
11 months ago
return await request.get({ url: '/admin-api/system/notify-message/get-unread-count' })
1 year ago
}