2025-08-13 19:27:49 +08:00
|
|
|
import request from '@/utils/http'
|
|
|
|
|
|
|
|
|
|
export class systemService {
|
|
|
|
|
//系统列表
|
|
|
|
|
static getSystemList(params: Api.Common.PaginatingParams) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/systems/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//系统添加
|
|
|
|
|
static systemAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/systems/store',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//系统详情
|
|
|
|
|
static systemDetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/systems/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//系统编辑
|
|
|
|
|
static systemEdit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/systems/update',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//系统删除
|
|
|
|
|
static systemDelete(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/systems/destroy',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//飞书应用列表
|
|
|
|
|
static getFeishuAppList(params: Api.Common.PaginatingParams) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/corp/feishu/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//飞书应用添加
|
|
|
|
|
static feishuAppAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/corp/feishu/store',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//飞书应用详情
|
|
|
|
|
static feishuAppDetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/corp/feishu/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//飞书应用编辑
|
|
|
|
|
static feishuAppEdit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/corp/feishu/update',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//飞书应用删除
|
|
|
|
|
static feishuAppDelete(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/corp/feishu/destroy',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//公司列表
|
|
|
|
|
static getCompanyList(params: Api.Common.PaginatingParams) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/corp/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//公司添加
|
|
|
|
|
static companyAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/corp/store',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//公司详情
|
|
|
|
|
static companyDetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/corp/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//公司编辑
|
|
|
|
|
static companyEdit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/corp/update',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//公司删除
|
|
|
|
|
static companyDelete(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/corp/destroy',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//角色列表
|
|
|
|
|
static getRoleList(params: Api.Common.PaginatingParams) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/role/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//角色添加
|
|
|
|
|
static roleAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/role/store',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//角色详情
|
|
|
|
|
static roleDetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/role/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//角色编辑
|
|
|
|
|
static roleEdit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/role/update',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//角色删除
|
|
|
|
|
static roleDelete(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/role/destroy',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//角色权限设置
|
|
|
|
|
static roleAuth(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/role/menu/resource',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//角色下拉框
|
|
|
|
|
static getRoleSelectList() {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/common/preset/roles'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//菜单列表
|
2025-08-15 16:31:55 +08:00
|
|
|
static getMenutreeList(params: any) {
|
2025-08-13 19:27:49 +08:00
|
|
|
return request.get<any>({
|
2025-08-15 16:31:55 +08:00
|
|
|
url: '/admin/resources/list/tree',
|
|
|
|
|
params
|
2025-08-13 19:27:49 +08:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
static getMenuList() {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/resources/list/menu'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//菜单添加
|
|
|
|
|
static menuAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/resources/store',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//菜单详情
|
|
|
|
|
static menuDetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/resources/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//菜单编辑
|
|
|
|
|
static menuEdit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/resources/update',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//菜单删除
|
|
|
|
|
static menuDelete(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/resources/destroy',
|
|
|
|
|
params
|
|
|
|
|
// showErrorMessage: false // 不显示错误消息
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//权限菜单
|
|
|
|
|
static getPermissionMenuList(params: any) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/resources/list/menu/tree',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-08-22 18:27:26 +08:00
|
|
|
//通知列表
|
|
|
|
|
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
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-09-18 09:55:10 +08:00
|
|
|
// 字典类型列表
|
|
|
|
|
static getDictTypeList(params: Api.Common.PaginatingParams & any) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/dict/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 字典类型新增/详情/编辑/删除
|
|
|
|
|
static dictTypeAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dict/store',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
static dictTypeDetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/dict/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
static dictTypeEdit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dict/update',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
static dictTypeDelete(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dict/destroy',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 字典项列表
|
|
|
|
|
static getDictItemList(params: Api.Common.PaginatingParams & any) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/dict/item/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 字典项新增/详情/编辑/删除
|
|
|
|
|
static dictItemAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dict/item/store',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
static dictItemDetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/dict/item/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
static dictItemEdit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dict/item/update',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
static dictItemDelete(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dict/item/destroy',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-12-08 11:53:02 +08:00
|
|
|
//仪表盘设置列表
|
|
|
|
|
static getDashboardList(params: any) {
|
|
|
|
|
return request.get<Api.Common.CommonListData>({
|
|
|
|
|
url: '/admin/dashboard/rule/list',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//仪表盘设置新增
|
|
|
|
|
static dashboardAdd(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dashboard/rule/store',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//仪表盘设置详情
|
|
|
|
|
static dashboardDetail(params: any) {
|
|
|
|
|
return request.get<any>({
|
|
|
|
|
url: '/admin/dashboard/rule/show',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//仪表盘设置编辑
|
|
|
|
|
static dashboardEdit(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dashboard/rule/update',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
//仪表盘设置删除
|
|
|
|
|
static dashboardDelete(params: any) {
|
|
|
|
|
return request.post<Api.Common.AddResponse>({
|
|
|
|
|
url: '/admin/dashboard/rule/destroy',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
2025-08-13 19:27:49 +08:00
|
|
|
}
|