😎更新前端接口请求文件

This commit is contained in:
zuohuaijun 2024-11-10 02:15:02 +08:00
parent bf1e57bccd
commit 54b2b6a032
7 changed files with 142 additions and 21 deletions

View File

@ -20,7 +20,7 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
import { AccountTypeEnum } from '../models'; import { AccountTypeEnum } from '../models';
import { AdminResultIActionResult } from '../models'; import { AdminResultIActionResult } from '../models';
import { AdminResultListSysFile } from '../models'; import { AdminResultListSysFile } from '../models';
import { AdminResultObject } from '../models'; import { AdminResultListTreeNode } from '../models';
import { AdminResultSqlSugarPagedListSysFile } from '../models'; import { AdminResultSqlSugarPagedListSysFile } from '../models';
import { AdminResultString } from '../models'; import { AdminResultString } from '../models';
import { AdminResultSysFile } from '../models'; import { AdminResultSysFile } from '../models';
@ -1959,7 +1959,7 @@ export const SysFileApiFp = function(configuration?: Configuration) {
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
*/ */
async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultObject>>> { async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultListTreeNode>>> {
const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFolderGet(options); const localVarAxiosArgs = await SysFileApiAxiosParamCreator(configuration).apiSysFileFolderGet(options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
@ -2379,7 +2379,7 @@ export const SysFileApiFactory = function (configuration?: Configuration, basePa
* @param {*} [options] Override http request option. * @param {*} [options] Override http request option.
* @throws {RequiredError} * @throws {RequiredError}
*/ */
async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultObject>> { async apiSysFileFolderGet(options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultListTreeNode>> {
return SysFileApiFp(configuration).apiSysFileFolderGet(options).then((request) => request(axios, basePath)); return SysFileApiFp(configuration).apiSysFileFolderGet(options).then((request) => request(axios, basePath));
}, },
/** /**
@ -2765,7 +2765,7 @@ export class SysFileApi extends BaseAPI {
* @throws {RequiredError} * @throws {RequiredError}
* @memberof SysFileApi * @memberof SysFileApi
*/ */
public async apiSysFileFolderGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultObject>> { public async apiSysFileFolderGet(options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultListTreeNode>> {
return SysFileApiFp(this.configuration).apiSysFileFolderGet(options).then((request) => request(this.axios, this.basePath)); return SysFileApiFp(this.configuration).apiSysFileFolderGet(options).then((request) => request(this.axios, this.basePath));
} }
/** /**

View File

@ -0,0 +1,71 @@
/* 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 { TreeNode } from './tree-node';
/**
*
*
* @export
* @interface AdminResultListTreeNode
*/
export interface AdminResultListTreeNode {
/**
*
*
* @type {number}
* @memberof AdminResultListTreeNode
*/
code?: number;
/**
* successwarningerror
*
* @type {string}
* @memberof AdminResultListTreeNode
*/
type?: string | null;
/**
*
*
* @type {string}
* @memberof AdminResultListTreeNode
*/
message?: string | null;
/**
*
*
* @type {Array<TreeNode>}
* @memberof AdminResultListTreeNode
*/
result?: Array<TreeNode> | null;
/**
*
*
* @type {any}
* @memberof AdminResultListTreeNode
*/
extras?: any | null;
/**
*
*
* @type {Date}
* @memberof AdminResultListTreeNode
*/
time?: Date;
}

View File

@ -68,6 +68,7 @@ export * from './admin-result-list-sys-user';
export * from './admin-result-list-sys-user-ext-org'; export * from './admin-result-list-sys-user-ext-org';
export * from './admin-result-list-sys-wechat-refund'; export * from './admin-result-list-sys-wechat-refund';
export * from './admin-result-list-table-output'; export * from './admin-result-list-table-output';
export * from './admin-result-list-tree-node';
export * from './admin-result-login-output'; export * from './admin-result-login-output';
export * from './admin-result-login-user-output'; export * from './admin-result-login-user-output';
export * from './admin-result-object'; export * from './admin-result-object';
@ -389,6 +390,7 @@ export * from './tenant-type-enum';
export * from './tenant-user-input'; export * from './tenant-user-input';
export * from './text-info'; export * from './text-info';
export * from './tianditu-input'; export * from './tianditu-input';
export * from './tree-node';
export * from './trigger-status'; export * from './trigger-status';
export * from './type'; export * from './type';
export * from './type-attributes'; export * from './type-attributes';

View File

@ -29,14 +29,6 @@ export interface SysRegion {
*/ */
id?: number; id?: number;
/**
*
*
* @type {string}
* @memberof SysRegion
*/
name: string;
/** /**
* Id * Id
* *
@ -45,6 +37,14 @@ export interface SysRegion {
*/ */
pid?: number; pid?: number;
/**
*
*
* @type {string}
* @memberof SysRegion
*/
name: string;
/** /**
* *
* *

View File

@ -93,14 +93,6 @@ export interface SysSchedule {
*/ */
tenantId?: number | null; tenantId?: number | null;
/**
*
*
* @type {string}
* @memberof SysSchedule
*/
content: string;
/** /**
* Id * Id
* *
@ -133,6 +125,14 @@ export interface SysSchedule {
*/ */
endTime?: string | null; endTime?: string | null;
/**
*
*
* @type {string}
* @memberof SysSchedule
*/
content: string;
/** /**
* @type {FinishStatusEnum} * @type {FinishStatusEnum}
* @memberof SysSchedule * @memberof SysSchedule

View File

@ -0,0 +1,47 @@
/* 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 { TreeNode } from './tree-node';
/**
*
*
* @export
* @interface TreeNode
*/
export interface TreeNode {
/**
* @type {number}
* @memberof TreeNode
*/
id?: number;
/**
* @type {number}
* @memberof TreeNode
*/
pid?: number;
/**
* @type {string}
* @memberof TreeNode
*/
name?: string | null;
/**
* @type {Array<TreeNode>}
* @memberof TreeNode
*/
children?: Array<TreeNode> | null;
}

View File

@ -60,6 +60,7 @@ import { Search, MoreFilled } from '@element-plus/icons-vue';
import { getAPI } from '/@/utils/axios-utils'; import { getAPI } from '/@/utils/axios-utils';
import { SysFileApi } from '/@/api-services/api'; import { SysFileApi } from '/@/api-services/api';
import { TreeNode } from '/@/api-services/models';
import { TreeKey } from 'element-plus/es/components/tree/src/tree.type'; import { TreeKey } from 'element-plus/es/components/tree/src/tree.type';
const props = defineProps({ const props = defineProps({
@ -70,7 +71,7 @@ const filterText = ref('');
const treeRef = ref<InstanceType<typeof ElTree>>(); const treeRef = ref<InstanceType<typeof ElTree>>();
const state = reactive({ const state = reactive({
loading: false, loading: false,
folderData: [] as any, folderData: [] as Array<TreeNode>,
isShowCheckbox: false, isShowCheckbox: false,
strictly: false, strictly: false,
}); });