对接帮助管理、电话、系统参数接口
This commit is contained in:
65
src/api/system/platformConfig/index.ts
Normal file
65
src/api/system/platformConfig/index.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import type { PlatformConfigForm, PlatformConfigQuery, PlatformConfigVO } from './types';
|
||||
import type { PageResult } from '@/api/types';
|
||||
import type { AxiosPromise } from '@/utils/api-types';
|
||||
import request from '@/utils/request';
|
||||
|
||||
/**
|
||||
* 查询水电充值平台配置列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listPlatformConfig = (query?: PlatformConfigQuery): AxiosPromise<PageResult<PlatformConfigVO>> => {
|
||||
return request({
|
||||
url: '/rechargeManage/platformConfig/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询水电充值平台配置详细
|
||||
* @param configId
|
||||
*/
|
||||
export const getPlatformConfig = (configId: string | number): AxiosPromise<PlatformConfigVO> => {
|
||||
return request({
|
||||
url: '/rechargeManage/platformConfig/' + configId,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增水电充值平台配置
|
||||
* @param data
|
||||
*/
|
||||
export const addPlatformConfig = (data: PlatformConfigForm) => {
|
||||
return request({
|
||||
url: '/rechargeManage/platformConfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改水电充值平台配置
|
||||
* @param data
|
||||
*/
|
||||
export const updatePlatformConfig = (data: PlatformConfigForm) => {
|
||||
return request({
|
||||
url: '/rechargeManage/platformConfig',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 删除水电充值平台配置
|
||||
* @param configId
|
||||
*/
|
||||
export const delPlatformConfig = (configId: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/rechargeManage/platformConfig/' + configId,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user