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.
43 lines
1.0 KiB
43 lines
1.0 KiB
2 months ago
|
import { defHttp } from '@/utils/http/axios'
|
||
|
|
||
|
/**
|
||
|
* @description: 系统配置VO
|
||
|
*/
|
||
|
export interface SystemConfigVO {
|
||
|
id?: number
|
||
|
name: string
|
||
|
abbreviation?: string
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @description: 系统配置分页查询参数
|
||
|
*/
|
||
|
export interface SystemConfigPageReqVO {
|
||
|
name?: string
|
||
|
}
|
||
|
|
||
|
// 查询系统配置分页列表
|
||
|
export function getSystemConfigPage(params: SystemConfigPageReqV) {
|
||
|
return defHttp.get({ url: '/system/system-config/page', params })
|
||
|
}
|
||
|
|
||
|
// 获取系统配置详情
|
||
|
export function getSystemConfig(id: number) {
|
||
|
return defHttp.get({ url: `/system/system-config/get?id=${id}` })
|
||
|
}
|
||
|
|
||
|
// 新增系统配置
|
||
|
export function createSystemConfig(data: SystemConfigVO) {
|
||
|
return defHttp.post({ url: '/system/system-config/create', data })
|
||
|
}
|
||
|
|
||
|
// 修改系统配置
|
||
|
export function updateSystemConfig(data: SystemConfigVO) {
|
||
|
return defHttp.put({ url: '/system/system-config/update', data })
|
||
|
}
|
||
|
|
||
|
// 删除系统配置
|
||
|
export function deleteSystemConfig(id: number) {
|
||
|
return defHttp.delete({ url: `/system/system-config/delete?id=${id}` })
|
||
|
}
|