2024-06-15 13:02:35 +08:00
|
|
|
|
/* tslint:disable */
|
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
|
/**
|
|
|
|
|
|
* Admin.NET 通用权限开发平台
|
|
|
|
|
|
* 让 .NET 开发更简单、更通用、更流行。整合最新技术,模块插件式开发,前后端分离,开箱即用。<br/><u><b><font color='FF0000'> 👮不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!</font></b></u>
|
|
|
|
|
|
*
|
|
|
|
|
|
* OpenAPI spec version: 1.0.0
|
|
|
|
|
|
*
|
|
|
|
|
|
*
|
|
|
|
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
|
|
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
|
|
|
|
* Do not edit the class manually.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
|
|
|
import { Configuration } from '../configuration';
|
|
|
|
|
|
// Some imports not used depending on template conditions
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
|
|
|
|
import { AddRegionInput } from '../models';
|
2024-08-15 02:25:00 +08:00
|
|
|
|
import { AdminResultInt32 } from '../models';
|
2024-06-15 13:02:35 +08:00
|
|
|
|
import { AdminResultInt64 } from '../models';
|
|
|
|
|
|
import { AdminResultListSysRegion } from '../models';
|
|
|
|
|
|
import { AdminResultSqlSugarPagedListSysRegion } from '../models';
|
|
|
|
|
|
import { DeleteRegionInput } from '../models';
|
2024-08-15 13:56:57 +08:00
|
|
|
|
import { GenOrgInput } from '../models';
|
2024-06-15 13:02:35 +08:00
|
|
|
|
import { PageRegionInput } from '../models';
|
2024-10-21 00:08:46 +08:00
|
|
|
|
import { QueryRegionInput } from '../models';
|
2024-09-10 14:25:03 +08:00
|
|
|
|
import { TiandituInput } from '../models';
|
2024-06-15 13:02:35 +08:00
|
|
|
|
import { UpdateRegionInput } from '../models';
|
|
|
|
|
|
/**
|
|
|
|
|
|
* SysRegionApi - axios parameter creator
|
|
|
|
|
|
* @export
|
|
|
|
|
|
*/
|
|
|
|
|
|
export const SysRegionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
|
|
|
|
return {
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 增加行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {AddRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
apiSysRegionAddPost: async (body?: AddRegionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/add`;
|
|
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
|
|
|
|
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 删除行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {DeleteRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
apiSysRegionDeletePost: async (body?: DeleteRegionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/delete`;
|
|
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
|
|
|
|
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-08-15 02:25:00 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-09-10 14:25:03 +08:00
|
|
|
|
* @summary 生成组织架构 🔖
|
2024-08-15 13:56:57 +08:00
|
|
|
|
* @param {GenOrgInput} [body]
|
2024-08-15 02:25:00 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-08-15 13:56:57 +08:00
|
|
|
|
apiSysRegionGenOrgPost: async (body?: GenOrgInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/genOrg`;
|
2024-08-15 02:25:00 +08:00
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-08-15 13:56:57 +08:00
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
2024-08-15 02:25:00 +08:00
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
2024-08-15 13:56:57 +08:00
|
|
|
|
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
|
|
|
|
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
2024-08-15 02:25:00 +08:00
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 获取行政区划列表 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {number} id 主键Id
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
apiSysRegionListGet: async (id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
// verify required parameter 'id' is not null or undefined
|
|
|
|
|
|
if (id === null || id === undefined) {
|
|
|
|
|
|
throw new RequiredError('id','Required parameter id was null or undefined when calling apiSysRegionListGet.');
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/list`;
|
|
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (id !== undefined) {
|
|
|
|
|
|
localVarQueryParameter['Id'] = id;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 获取行政区划分页列表 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {PageRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
apiSysRegionPagePost: async (body?: PageRegionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/page`;
|
|
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
|
|
|
|
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-10-20 22:57:25 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 查询行政区划列表 🔖 post参数方便参数扩展,调用api不用大浮动修复,参数如果是对象不建议用[FromQuery]方式传参
|
2024-10-20 22:57:25 +08:00
|
|
|
|
* @param {QueryRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
apiSysRegionQueryPost: async (body?: QueryRegionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/query`;
|
|
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
|
|
|
|
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 同步行政区划(高德) 🔖
|
|
|
|
|
|
* @param {string} key
|
2024-08-15 02:25:00 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-11-25 02:31:13 +08:00
|
|
|
|
apiSysRegionSyncRegionGDKeyPost: async (key: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
// verify required parameter 'key' is not null or undefined
|
|
|
|
|
|
if (key === null || key === undefined) {
|
|
|
|
|
|
throw new RequiredError('key','Required parameter key was null or undefined when calling apiSysRegionSyncRegionGDKeyPost.');
|
2024-08-15 02:25:00 +08:00
|
|
|
|
}
|
2024-11-25 02:31:13 +08:00
|
|
|
|
const localVarPath = `/api/sysRegion/syncRegionGD/{key}`
|
|
|
|
|
|
.replace(`{${"key"}}`, encodeURIComponent(String(key)));
|
2024-08-15 02:25:00 +08:00
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 同步行政区划数据(国家地名信息库,最多支持2级深度) 🔖
|
|
|
|
|
|
* @param {number} code
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-11-25 02:31:13 +08:00
|
|
|
|
apiSysRegionSyncRegionMcaCodePost: async (code: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
// verify required parameter 'code' is not null or undefined
|
|
|
|
|
|
if (code === null || code === undefined) {
|
|
|
|
|
|
throw new RequiredError('code','Required parameter code was null or undefined when calling apiSysRegionSyncRegionMcaCodePost.');
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/syncRegionMca/{code}`
|
|
|
|
|
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
2024-06-15 13:02:35 +08:00
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-09-10 14:25:03 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
|
|
|
|
|
* @summary 同步行政区划数据(天地图行政区划) 🔖
|
|
|
|
|
|
* @param {TiandituInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
apiSysRegionSyncRegionTiandituPost: async (body?: TiandituInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/syncRegionTianditu`;
|
|
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
|
|
|
|
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 更新行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {UpdateRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
apiSysRegionUpdatePost: async (body?: UpdateRegionInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
|
|
|
|
const localVarPath = `/api/sysRegion/update`;
|
|
|
|
|
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
|
|
|
|
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
|
|
|
|
let baseOptions;
|
|
|
|
|
|
if (configuration) {
|
|
|
|
|
|
baseOptions = configuration.baseOptions;
|
|
|
|
|
|
}
|
|
|
|
|
|
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
|
|
|
|
const localVarHeaderParameter = {} as any;
|
|
|
|
|
|
const localVarQueryParameter = {} as any;
|
|
|
|
|
|
|
|
|
|
|
|
// authentication Bearer required
|
|
|
|
|
|
// http bearer authentication required
|
|
|
|
|
|
if (configuration && configuration.accessToken) {
|
|
|
|
|
|
const accessToken = typeof configuration.accessToken === 'function'
|
|
|
|
|
|
? await configuration.accessToken()
|
|
|
|
|
|
: await configuration.accessToken;
|
|
|
|
|
|
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
|
|
|
|
|
|
|
|
|
|
|
|
const query = new URLSearchParams(localVarUrlObj.search);
|
|
|
|
|
|
for (const key in localVarQueryParameter) {
|
|
|
|
|
|
query.set(key, localVarQueryParameter[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
for (const key in options.params) {
|
|
|
|
|
|
query.set(key, options.params[key]);
|
|
|
|
|
|
}
|
|
|
|
|
|
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
|
|
|
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
|
|
|
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
|
|
|
|
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
|
|
|
|
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
|
|
|
|
options: localVarRequestOptions,
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* SysRegionApi - functional programming interface
|
|
|
|
|
|
* @export
|
|
|
|
|
|
*/
|
|
|
|
|
|
export const SysRegionApiFp = function(configuration?: Configuration) {
|
|
|
|
|
|
return {
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 增加行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {AddRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionAddPost(body?: AddRegionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultInt64>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionAddPost(body, options);
|
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 删除行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {DeleteRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionDeletePost(body?: DeleteRegionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionDeletePost(body, options);
|
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-08-15 02:25:00 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-09-10 14:25:03 +08:00
|
|
|
|
* @summary 生成组织架构 🔖
|
2024-08-15 13:56:57 +08:00
|
|
|
|
* @param {GenOrgInput} [body]
|
2024-08-15 02:25:00 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-08-15 13:56:57 +08:00
|
|
|
|
async apiSysRegionGenOrgPost(body?: GenOrgInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionGenOrgPost(body, options);
|
2024-08-15 02:25:00 +08:00
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 获取行政区划列表 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {number} id 主键Id
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionListGet(id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysRegion>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionListGet(id, options);
|
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 获取行政区划分页列表 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {PageRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionPagePost(body?: PageRegionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysRegion>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionPagePost(body, options);
|
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-10-20 22:57:25 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 查询行政区划列表 🔖 post参数方便参数扩展,调用api不用大浮动修复,参数如果是对象不建议用[FromQuery]方式传参
|
2024-10-20 22:57:25 +08:00
|
|
|
|
* @param {QueryRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionQueryPost(body?: QueryRegionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListSysRegion>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionQueryPost(body, options);
|
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 同步行政区划(高德) 🔖
|
|
|
|
|
|
* @param {string} key
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-11-25 02:31:13 +08:00
|
|
|
|
async apiSysRegionSyncRegionGDKeyPost(key: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionSyncRegionGDKeyPost(key, options);
|
2024-08-15 02:25:00 +08:00
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 同步行政区划数据(国家地名信息库,最多支持2级深度) 🔖
|
|
|
|
|
|
* @param {number} code
|
2024-08-15 02:25:00 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-11-25 02:31:13 +08:00
|
|
|
|
async apiSysRegionSyncRegionMcaCodePost(code: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultInt32>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionSyncRegionMcaCodePost(code, options);
|
2024-06-15 13:02:35 +08:00
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-09-10 14:25:03 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
|
|
|
|
|
* @summary 同步行政区划数据(天地图行政区划) 🔖
|
|
|
|
|
|
* @param {TiandituInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionSyncRegionTiandituPost(body?: TiandituInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultInt32>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionSyncRegionTiandituPost(body, options);
|
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 更新行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {UpdateRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionUpdatePost(body?: UpdateRegionInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
|
|
|
|
|
|
const localVarAxiosArgs = await SysRegionApiAxiosParamCreator(configuration).apiSysRegionUpdatePost(body, options);
|
|
|
|
|
|
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
|
|
|
|
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
|
|
|
|
return axios.request(axiosRequestArgs);
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* SysRegionApi - factory interface
|
|
|
|
|
|
* @export
|
|
|
|
|
|
*/
|
|
|
|
|
|
export const SysRegionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
|
|
|
|
return {
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 增加行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {AddRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionAddPost(body?: AddRegionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt64>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionAddPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 删除行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {DeleteRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionDeletePost(body?: DeleteRegionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionDeletePost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
|
},
|
2024-08-15 02:25:00 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-09-10 14:25:03 +08:00
|
|
|
|
* @summary 生成组织架构 🔖
|
2024-08-15 13:56:57 +08:00
|
|
|
|
* @param {GenOrgInput} [body]
|
2024-08-15 02:25:00 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-08-15 13:56:57 +08:00
|
|
|
|
async apiSysRegionGenOrgPost(body?: GenOrgInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionGenOrgPost(body, options).then((request) => request(axios, basePath));
|
2024-08-15 02:25:00 +08:00
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 获取行政区划列表 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {number} id 主键Id
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionListGet(id: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysRegion>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionListGet(id, options).then((request) => request(axios, basePath));
|
|
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 获取行政区划分页列表 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {PageRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionPagePost(body?: PageRegionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysRegion>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionPagePost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
|
},
|
2024-10-20 22:57:25 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 查询行政区划列表 🔖 post参数方便参数扩展,调用api不用大浮动修复,参数如果是对象不建议用[FromQuery]方式传参
|
2024-10-20 22:57:25 +08:00
|
|
|
|
* @param {QueryRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionQueryPost(body?: QueryRegionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListSysRegion>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionQueryPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 同步行政区划(高德) 🔖
|
|
|
|
|
|
* @param {string} key
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-11-25 02:31:13 +08:00
|
|
|
|
async apiSysRegionSyncRegionGDKeyPost(key: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionSyncRegionGDKeyPost(key, options).then((request) => request(axios, basePath));
|
2024-08-15 02:25:00 +08:00
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 同步行政区划数据(国家地名信息库,最多支持2级深度) 🔖
|
|
|
|
|
|
* @param {number} code
|
2024-08-15 02:25:00 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
2024-11-25 02:31:13 +08:00
|
|
|
|
async apiSysRegionSyncRegionMcaCodePost(code: number, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt32>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionSyncRegionMcaCodePost(code, options).then((request) => request(axios, basePath));
|
2024-06-15 13:02:35 +08:00
|
|
|
|
},
|
2024-09-10 14:25:03 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
|
|
|
|
|
* @summary 同步行政区划数据(天地图行政区划) 🔖
|
|
|
|
|
|
* @param {TiandituInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionSyncRegionTiandituPost(body?: TiandituInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultInt32>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionSyncRegionTiandituPost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
|
},
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 更新行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {UpdateRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
*/
|
|
|
|
|
|
async apiSysRegionUpdatePost(body?: UpdateRegionInput, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
|
|
|
|
|
|
return SysRegionApiFp(configuration).apiSysRegionUpdatePost(body, options).then((request) => request(axios, basePath));
|
|
|
|
|
|
},
|
|
|
|
|
|
};
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* SysRegionApi - object-oriented interface
|
|
|
|
|
|
* @export
|
|
|
|
|
|
* @class SysRegionApi
|
|
|
|
|
|
* @extends {BaseAPI}
|
|
|
|
|
|
*/
|
|
|
|
|
|
export class SysRegionApi extends BaseAPI {
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 增加行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {AddRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
|
|
|
|
|
public async apiSysRegionAddPost(body?: AddRegionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt64>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionAddPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 删除行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {DeleteRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
|
|
|
|
|
public async apiSysRegionDeletePost(body?: DeleteRegionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionDeletePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
}
|
2024-08-15 02:25:00 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-09-10 14:25:03 +08:00
|
|
|
|
* @summary 生成组织架构 🔖
|
2024-08-15 13:56:57 +08:00
|
|
|
|
* @param {GenOrgInput} [body]
|
2024-08-15 02:25:00 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
2024-08-15 13:56:57 +08:00
|
|
|
|
public async apiSysRegionGenOrgPost(body?: GenOrgInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionGenOrgPost(body, options).then((request) => request(this.axios, this.basePath));
|
2024-08-15 02:25:00 +08:00
|
|
|
|
}
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 获取行政区划列表 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {number} id 主键Id
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
|
|
|
|
|
public async apiSysRegionListGet(id: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysRegion>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionListGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 获取行政区划分页列表 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {PageRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
|
|
|
|
|
public async apiSysRegionPagePost(body?: PageRegionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysRegion>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionPagePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
}
|
2024-10-20 22:57:25 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 查询行政区划列表 🔖 post参数方便参数扩展,调用api不用大浮动修复,参数如果是对象不建议用[FromQuery]方式传参
|
2024-10-20 22:57:25 +08:00
|
|
|
|
* @param {QueryRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
|
|
|
|
|
public async apiSysRegionQueryPost(body?: QueryRegionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListSysRegion>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionQueryPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
}
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 同步行政区划(高德) 🔖
|
|
|
|
|
|
* @param {string} key
|
2024-08-15 02:25:00 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
2024-11-25 02:31:13 +08:00
|
|
|
|
public async apiSysRegionSyncRegionGDKeyPost(key: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionSyncRegionGDKeyPost(key, options).then((request) => request(this.axios, this.basePath));
|
2024-08-15 02:25:00 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 同步行政区划数据(国家地名信息库,最多支持2级深度) 🔖
|
|
|
|
|
|
* @param {number} code
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
2024-11-25 02:31:13 +08:00
|
|
|
|
public async apiSysRegionSyncRegionMcaCodePost(code: number, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt32>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionSyncRegionMcaCodePost(code, options).then((request) => request(this.axios, this.basePath));
|
2024-06-15 13:02:35 +08:00
|
|
|
|
}
|
2024-09-10 14:25:03 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
|
|
|
|
|
* @summary 同步行政区划数据(天地图行政区划) 🔖
|
|
|
|
|
|
* @param {TiandituInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
|
|
|
|
|
public async apiSysRegionSyncRegionTiandituPost(body?: TiandituInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultInt32>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionSyncRegionTiandituPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
}
|
2024-06-15 13:02:35 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*
|
2024-11-25 02:31:13 +08:00
|
|
|
|
* @summary 更新行政区划 🔖
|
2024-06-15 13:02:35 +08:00
|
|
|
|
* @param {UpdateRegionInput} [body]
|
|
|
|
|
|
* @param {*} [options] Override http request option.
|
|
|
|
|
|
* @throws {RequiredError}
|
|
|
|
|
|
* @memberof SysRegionApi
|
|
|
|
|
|
*/
|
|
|
|
|
|
public async apiSysRegionUpdatePost(body?: UpdateRegionInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
|
|
|
|
|
|
return SysRegionApiFp(this.configuration).apiSysRegionUpdatePost(body, options).then((request) => request(this.axios, this.basePath));
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|