mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
optimize: 优化代码质量
This commit is contained in:
@ -1,36 +1,36 @@
|
||||
import { request } from '@/service/request';
|
||||
|
||||
/** 获取客户端列表 */
|
||||
export function fetchGetClientList (params?: Api.System.ClientSearchParams) {
|
||||
return request<Api.System.ClientList>({
|
||||
url: '/system/client/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
export function fetchGetClientList(params?: Api.System.ClientSearchParams) {
|
||||
return request<Api.System.ClientList>({
|
||||
url: '/system/client/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
/** 新增客户端 */
|
||||
export function fetchCreateClient (data: Api.System.ClientOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/client',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
export function fetchCreateClient(data: Api.System.ClientOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/client',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 修改客户端 */
|
||||
export function fetchUpdateClient (data: Api.System.ClientOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/client',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
export function fetchUpdateClient(data: Api.System.ClientOperateParams) {
|
||||
return request<boolean>({
|
||||
url: '/system/client',
|
||||
method: 'put',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
/** 批量删除客户端 */
|
||||
export function fetchBatchDeleteClient (ids: CommonType.IdType[]) {
|
||||
return request<boolean>({
|
||||
url: `/system/client/${ids.join(',')}`,
|
||||
method: 'delete'
|
||||
});
|
||||
export function fetchBatchDeleteClient(ids: CommonType.IdType[]) {
|
||||
return request<boolean>({
|
||||
url: `/system/client/${ids.join(',')}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user