通知板块 及 功能调整

This commit is contained in:
浅念
2025-08-22 18:27:26 +08:00
parent b319944007
commit 329acaf68d
22 changed files with 1771 additions and 218 deletions
+7
View File
@@ -198,4 +198,11 @@ export class manageService {
// showErrorMessage: false // 不显示错误消息
})
}
//回收站 恢复
static customerRestore(params: any) {
return request.get<any>({
url: '/admin/crm/customer/restore',
params
})
}
}
+38
View File
@@ -0,0 +1,38 @@
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'
})
}
}
+8
View File
@@ -191,4 +191,12 @@ export class CrmService {
// showErrorMessage: false // 不显示错误消息
})
}
//客户删除
static crmCustomerDelete(params: any) {
return request.get<Api.Common.AddResponse>({
url: '/crm/customer/delete',
params
// showErrorMessage: false // 不显示错误消息
})
}
}
+28
View File
@@ -217,4 +217,32 @@ export class systemService {
params
})
}
//通知列表
static getNoticeList(params: Api.Common.PaginatingParams) {
return request.get<Api.Common.CommonListData>({
url: '/admin/notice/list',
params
})
}
//通知详情
static getNoticeDetail(params: any) {
return request.get<Api.Common.CommonListData>({
url: '/admin/notice/show',
params
})
}
//通知删除
static delNotice(params: any) {
return request.post<Api.Common.AddResponse>({
url: '/admin/notice/destroy',
params
})
}
//通知推送
static sendNotice(params: any) {
return request.post<Api.Common.AddResponse>({
url: '/admin/notice/push',
params
})
}
}
+8
View File
@@ -92,4 +92,12 @@ export class UserService {
params
})
}
//客户删除
static crmCustomerDelete(params: any) {
return request.get<Api.Common.AddResponse>({
url: '/admin/crm/customer/delete',
params
// showErrorMessage: false // 不显示错误消息
})
}
}