39 lines
877 B
TypeScript
39 lines
877 B
TypeScript
|
|
import request from '@/utils/http'
|
||
|
|
|
||
|
|
export class commonService {
|
||
|
|
//通知列表
|
||
|
|
static getNoticeList(params: Api.Common.PaginatingParams) {
|
||
|
|
return request.get<Api.Common.CommonListData>({
|
||
|
|
url: '/common/notice/list',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通知详情
|
||
|
|
static getNoticeDetail(params: any) {
|
||
|
|
return request.get<Api.Common.CommonListData>({
|
||
|
|
url: '/common/notice/show',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通知已读
|
||
|
|
static readNotice(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/common/notice/read',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通知删除
|
||
|
|
static delNotice(params: any) {
|
||
|
|
return request.post<Api.Common.AddResponse>({
|
||
|
|
url: '/common/notice/destroy',
|
||
|
|
params
|
||
|
|
})
|
||
|
|
}
|
||
|
|
//通知未读列表
|
||
|
|
static getUnReadNoticeList() {
|
||
|
|
return request.get<any>({
|
||
|
|
url: '/common/notice/unread'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
}
|