😎统一分页接口参数命名格式
This commit is contained in:
parent
9c748aa2ce
commit
b90eba041d
@ -9,7 +9,7 @@ namespace Admin.NET.Core.Service;
|
||||
/// <summary>
|
||||
/// 系统域登录信息配置输入参数
|
||||
/// </summary>
|
||||
public class SysLdapInput : BasePageInput
|
||||
public class PageSysLdapInput : BasePageInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 关键字查询
|
||||
|
||||
@ -27,7 +27,7 @@ public class SysLdapService : IDynamicApiController, ITransient
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[DisplayName("获取系统域登录配置分页列表")]
|
||||
public async Task<SqlSugarPagedList<SysLdap>> Page(SysLdapInput input)
|
||||
public async Task<SqlSugarPagedList<SysLdap>> Page(PageSysLdapInput input)
|
||||
{
|
||||
return await _sysLdapRep.AsQueryable()
|
||||
.WhereIF(!string.IsNullOrWhiteSpace(input.SearchKey), u => u.Host.Contains(input.SearchKey.Trim()))
|
||||
|
||||
@ -1,192 +1,192 @@
|
||||
// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
|
||||
//
|
||||
// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
|
||||
//
|
||||
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
|
||||
|
||||
namespace Admin.NET.Core.Service;
|
||||
|
||||
/// <summary>
|
||||
/// 代码生成参数类
|
||||
/// </summary>
|
||||
public class CodeGenInput : BasePageInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 作者姓名
|
||||
/// </summary>
|
||||
public virtual string AuthorName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类名
|
||||
/// </summary>
|
||||
public virtual string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否移除表前缀
|
||||
/// </summary>
|
||||
public virtual string TablePrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 库定位器名
|
||||
/// </summary>
|
||||
public virtual string ConfigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库名(保留字段)
|
||||
/// </summary>
|
||||
public virtual string DbName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库类型
|
||||
/// </summary>
|
||||
public virtual string DbType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库链接
|
||||
/// </summary>
|
||||
public virtual string ConnectionString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成方式
|
||||
/// </summary>
|
||||
public virtual string GenerateType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库表名
|
||||
/// </summary>
|
||||
public virtual string TableName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 命名空间
|
||||
/// </summary>
|
||||
public virtual string NameSpace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务名(业务代码包名称)
|
||||
/// </summary>
|
||||
public virtual string BusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 功能名(数据库表名称)
|
||||
/// </summary>
|
||||
public virtual string TableComment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单应用分类(应用编码)
|
||||
/// </summary>
|
||||
public virtual string MenuApplication { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否生成菜单
|
||||
/// </summary>
|
||||
public virtual bool GenerateMenu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单父级
|
||||
/// </summary>
|
||||
public virtual long? MenuPid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页面目录
|
||||
/// </summary>
|
||||
public virtual string PagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支持打印类型
|
||||
/// </summary>
|
||||
public virtual string PrintType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打印模版名称
|
||||
/// </summary>
|
||||
public virtual string PrintName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否使用 Api Service
|
||||
/// </summary>
|
||||
public virtual bool IsApiService { get; set; }
|
||||
}
|
||||
|
||||
public class AddCodeGenInput : CodeGenInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库表名
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "数据库表名不能为空")]
|
||||
public override string TableName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务名(业务代码包名称)
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "业务名不能为空")]
|
||||
public override string BusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 命名空间
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "命名空间不能为空")]
|
||||
public override string NameSpace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作者姓名
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "作者姓名不能为空")]
|
||||
public override string AuthorName { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 类名
|
||||
///// </summary>
|
||||
//[Required(ErrorMessage = "类名不能为空")]
|
||||
//public override string ClassName { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 是否移除表前缀
|
||||
///// </summary>
|
||||
//[Required(ErrorMessage = "是否移除表前缀不能为空")]
|
||||
//public override string TablePrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成方式
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "生成方式不能为空")]
|
||||
public override string GenerateType { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 功能名(数据库表名称)
|
||||
///// </summary>
|
||||
//[Required(ErrorMessage = "数据库表名不能为空")]
|
||||
//public override string TableComment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否生成菜单
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "是否生成菜单不能为空")]
|
||||
public override bool GenerateMenu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否使用 Api Service
|
||||
/// </summary>
|
||||
public override bool IsApiService { get; set; }
|
||||
}
|
||||
|
||||
public class DeleteCodeGenInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 代码生成器Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "代码生成器Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
|
||||
public class UpdateCodeGenInput : CodeGenInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 代码生成器Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "代码生成器Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
|
||||
public class QueryCodeGenInput : DeleteCodeGenInput
|
||||
{
|
||||
// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
|
||||
//
|
||||
// 本项目主要遵循 MIT 许可证和 Apache 许可证(版本 2.0)进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
|
||||
//
|
||||
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
|
||||
|
||||
namespace Admin.NET.Core.Service;
|
||||
|
||||
/// <summary>
|
||||
/// 代码生成参数类
|
||||
/// </summary>
|
||||
public class PageCodeGenInput : BasePageInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 作者姓名
|
||||
/// </summary>
|
||||
public virtual string AuthorName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 类名
|
||||
/// </summary>
|
||||
public virtual string ClassName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否移除表前缀
|
||||
/// </summary>
|
||||
public virtual string TablePrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 库定位器名
|
||||
/// </summary>
|
||||
public virtual string ConfigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库名(保留字段)
|
||||
/// </summary>
|
||||
public virtual string DbName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库类型
|
||||
/// </summary>
|
||||
public virtual string DbType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库链接
|
||||
/// </summary>
|
||||
public virtual string ConnectionString { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成方式
|
||||
/// </summary>
|
||||
public virtual string GenerateType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数据库表名
|
||||
/// </summary>
|
||||
public virtual string TableName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 命名空间
|
||||
/// </summary>
|
||||
public virtual string NameSpace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务名(业务代码包名称)
|
||||
/// </summary>
|
||||
public virtual string BusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 功能名(数据库表名称)
|
||||
/// </summary>
|
||||
public virtual string TableComment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单应用分类(应用编码)
|
||||
/// </summary>
|
||||
public virtual string MenuApplication { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否生成菜单
|
||||
/// </summary>
|
||||
public virtual bool GenerateMenu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单父级
|
||||
/// </summary>
|
||||
public virtual long? MenuPid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 页面目录
|
||||
/// </summary>
|
||||
public virtual string PagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 支持打印类型
|
||||
/// </summary>
|
||||
public virtual string PrintType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 打印模版名称
|
||||
/// </summary>
|
||||
public virtual string PrintName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否使用 Api Service
|
||||
/// </summary>
|
||||
public virtual bool IsApiService { get; set; }
|
||||
}
|
||||
|
||||
public class AddCodeGenInput : PageCodeGenInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 数据库表名
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "数据库表名不能为空")]
|
||||
public override string TableName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 业务名(业务代码包名称)
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "业务名不能为空")]
|
||||
public override string BusName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 命名空间
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "命名空间不能为空")]
|
||||
public override string NameSpace { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 作者姓名
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "作者姓名不能为空")]
|
||||
public override string AuthorName { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 类名
|
||||
///// </summary>
|
||||
//[Required(ErrorMessage = "类名不能为空")]
|
||||
//public override string ClassName { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 是否移除表前缀
|
||||
///// </summary>
|
||||
//[Required(ErrorMessage = "是否移除表前缀不能为空")]
|
||||
//public override string TablePrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成方式
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "生成方式不能为空")]
|
||||
public override string GenerateType { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 功能名(数据库表名称)
|
||||
///// </summary>
|
||||
//[Required(ErrorMessage = "数据库表名不能为空")]
|
||||
//public override string TableComment { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否生成菜单
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "是否生成菜单不能为空")]
|
||||
public override bool GenerateMenu { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否使用 Api Service
|
||||
/// </summary>
|
||||
public override bool IsApiService { get; set; }
|
||||
}
|
||||
|
||||
public class DeleteCodeGenInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 代码生成器Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "代码生成器Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
|
||||
public class UpdateCodeGenInput : PageCodeGenInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 代码生成器Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "代码生成器Id不能为空")]
|
||||
public long Id { get; set; }
|
||||
}
|
||||
|
||||
public class QueryCodeGenInput : DeleteCodeGenInput
|
||||
{
|
||||
}
|
||||
@ -37,7 +37,7 @@ public class SysCodeGenService : IDynamicApiController, ITransient
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[DisplayName("获取代码生成分页列表")]
|
||||
public async Task<SqlSugarPagedList<SysCodeGen>> Page(CodeGenInput input)
|
||||
public async Task<SqlSugarPagedList<SysCodeGen>> Page(PageCodeGenInput input)
|
||||
{
|
||||
return await _db.Queryable<SysCodeGen>()
|
||||
.WhereIF(!string.IsNullOrWhiteSpace(input.TableName), u => u.TableName.Contains(input.TableName.Trim()))
|
||||
|
||||
@ -9,7 +9,7 @@ namespace Admin.NET.Core.Service;
|
||||
/// <summary>
|
||||
/// 开放接口身份输入参数
|
||||
/// </summary>
|
||||
public class OpenAccessInput : BasePageInput
|
||||
public class PageOpenAccessInput : BasePageInput
|
||||
{
|
||||
/// <summary>
|
||||
/// 身份标识
|
||||
|
||||
@ -54,7 +54,7 @@ public class SysOpenAccessService : IDynamicApiController, ITransient
|
||||
/// <param name="input"></param>
|
||||
/// <returns></returns>
|
||||
[DisplayName("获取开放接口身份分页列表")]
|
||||
public async Task<SqlSugarPagedList<OpenAccessOutput>> Page(OpenAccessInput input)
|
||||
public async Task<SqlSugarPagedList<OpenAccessOutput>> Page(PageOpenAccessInput input)
|
||||
{
|
||||
return await _sysOpenAccessRep.AsQueryable()
|
||||
.LeftJoin<SysUser>((u, a) => u.BindUserId == a.Id)
|
||||
|
||||
@ -26,8 +26,8 @@ import { AdminResultListTableOutput } from '../models';
|
||||
import { AdminResultObject } from '../models';
|
||||
import { AdminResultSqlSugarPagedListSysCodeGen } from '../models';
|
||||
import { AdminResultSysCodeGen } from '../models';
|
||||
import { CodeGenInput } from '../models';
|
||||
import { DeleteCodeGenInput } from '../models';
|
||||
import { PageCodeGenInput } from '../models';
|
||||
import { SysCodeGen } from '../models';
|
||||
import { UpdateCodeGenInput } from '../models';
|
||||
/**
|
||||
@ -328,11 +328,11 @@ export const SysCodeGenApiAxiosParamCreator = function (configuration?: Configur
|
||||
/**
|
||||
*
|
||||
* @summary 获取代码生成分页列表 🔖
|
||||
* @param {CodeGenInput} [body]
|
||||
* @param {PageCodeGenInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiSysCodeGenPagePost: async (body?: CodeGenInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
apiSysCodeGenPagePost: async (body?: PageCodeGenInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/sysCodeGen/page`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
@ -661,11 +661,11 @@ export const SysCodeGenApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary 获取代码生成分页列表 🔖
|
||||
* @param {CodeGenInput} [body]
|
||||
* @param {PageCodeGenInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiSysCodeGenPagePost(body?: CodeGenInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysCodeGen>>> {
|
||||
async apiSysCodeGenPagePost(body?: PageCodeGenInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysCodeGen>>> {
|
||||
const localVarAxiosArgs = await SysCodeGenApiAxiosParamCreator(configuration).apiSysCodeGenPagePost(body, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
@ -799,11 +799,11 @@ export const SysCodeGenApiFactory = function (configuration?: Configuration, bas
|
||||
/**
|
||||
*
|
||||
* @summary 获取代码生成分页列表 🔖
|
||||
* @param {CodeGenInput} [body]
|
||||
* @param {PageCodeGenInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiSysCodeGenPagePost(body?: CodeGenInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysCodeGen>> {
|
||||
async apiSysCodeGenPagePost(body?: PageCodeGenInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysCodeGen>> {
|
||||
return SysCodeGenApiFp(configuration).apiSysCodeGenPagePost(body, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
@ -924,12 +924,12 @@ export class SysCodeGenApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary 获取代码生成分页列表 🔖
|
||||
* @param {CodeGenInput} [body]
|
||||
* @param {PageCodeGenInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SysCodeGenApi
|
||||
*/
|
||||
public async apiSysCodeGenPagePost(body?: CodeGenInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysCodeGen>> {
|
||||
public async apiSysCodeGenPagePost(body?: PageCodeGenInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysCodeGen>> {
|
||||
return SysCodeGenApiFp(this.configuration).apiSysCodeGenPagePost(body, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
|
||||
@ -23,8 +23,8 @@ import { AdminResultListSysLdap } from '../models';
|
||||
import { AdminResultSqlSugarPagedListSysLdap } from '../models';
|
||||
import { AdminResultSysLdap } from '../models';
|
||||
import { DeleteSysLdapInput } from '../models';
|
||||
import { PageSysLdapInput } from '../models';
|
||||
import { SyncSysLdapInput } from '../models';
|
||||
import { SysLdapInput } from '../models';
|
||||
import { UpdateSysLdapInput } from '../models';
|
||||
/**
|
||||
* SysLdapApi - axios parameter creator
|
||||
@ -226,11 +226,11 @@ export const SysLdapApiAxiosParamCreator = function (configuration?: Configurati
|
||||
/**
|
||||
*
|
||||
* @summary 获取系统域登录配置分页列表 🔖
|
||||
* @param {SysLdapInput} [body]
|
||||
* @param {PageSysLdapInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiSysLdapPagePost: async (body?: SysLdapInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
apiSysLdapPagePost: async (body?: PageSysLdapInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/sysLdap/page`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
@ -482,11 +482,11 @@ export const SysLdapApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary 获取系统域登录配置分页列表 🔖
|
||||
* @param {SysLdapInput} [body]
|
||||
* @param {PageSysLdapInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiSysLdapPagePost(body?: SysLdapInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLdap>>> {
|
||||
async apiSysLdapPagePost(body?: PageSysLdapInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLdap>>> {
|
||||
const localVarAxiosArgs = await SysLdapApiAxiosParamCreator(configuration).apiSysLdapPagePost(body, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
@ -586,11 +586,11 @@ export const SysLdapApiFactory = function (configuration?: Configuration, basePa
|
||||
/**
|
||||
*
|
||||
* @summary 获取系统域登录配置分页列表 🔖
|
||||
* @param {SysLdapInput} [body]
|
||||
* @param {PageSysLdapInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiSysLdapPagePost(body?: SysLdapInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLdap>> {
|
||||
async apiSysLdapPagePost(body?: PageSysLdapInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLdap>> {
|
||||
return SysLdapApiFp(configuration).apiSysLdapPagePost(body, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
@ -679,12 +679,12 @@ export class SysLdapApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary 获取系统域登录配置分页列表 🔖
|
||||
* @param {SysLdapInput} [body]
|
||||
* @param {PageSysLdapInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SysLdapApi
|
||||
*/
|
||||
public async apiSysLdapPagePost(body?: SysLdapInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLdap>> {
|
||||
public async apiSysLdapPagePost(body?: PageSysLdapInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListSysLdap>> {
|
||||
return SysLdapApiFp(this.configuration).apiSysLdapPagePost(body, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
|
||||
@ -22,7 +22,7 @@ import { AdminResultSqlSugarPagedListOpenAccessOutput } from '../models';
|
||||
import { AdminResultString } from '../models';
|
||||
import { DeleteOpenAccessInput } from '../models';
|
||||
import { GenerateSignatureInput } from '../models';
|
||||
import { OpenAccessInput } from '../models';
|
||||
import { PageOpenAccessInput } from '../models';
|
||||
import { UpdateOpenAccessInput } from '../models';
|
||||
/**
|
||||
* SysOpenAccessApi - axios parameter creator
|
||||
@ -177,11 +177,11 @@ export const SysOpenAccessApiAxiosParamCreator = function (configuration?: Confi
|
||||
/**
|
||||
*
|
||||
* @summary 获取开放接口身份分页列表 🔖
|
||||
* @param {OpenAccessInput} [body]
|
||||
* @param {PageOpenAccessInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
apiSysOpenAccessPagePost: async (body?: OpenAccessInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
apiSysOpenAccessPagePost: async (body?: PageOpenAccessInput, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
const localVarPath = `/api/sysOpenAccess/page`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
||||
@ -367,11 +367,11 @@ export const SysOpenAccessApiFp = function(configuration?: Configuration) {
|
||||
/**
|
||||
*
|
||||
* @summary 获取开放接口身份分页列表 🔖
|
||||
* @param {OpenAccessInput} [body]
|
||||
* @param {PageOpenAccessInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiSysOpenAccessPagePost(body?: OpenAccessInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListOpenAccessOutput>>> {
|
||||
async apiSysOpenAccessPagePost(body?: PageOpenAccessInput, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSqlSugarPagedListOpenAccessOutput>>> {
|
||||
const localVarAxiosArgs = await SysOpenAccessApiAxiosParamCreator(configuration).apiSysOpenAccessPagePost(body, options);
|
||||
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
||||
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
||||
@ -447,11 +447,11 @@ export const SysOpenAccessApiFactory = function (configuration?: Configuration,
|
||||
/**
|
||||
*
|
||||
* @summary 获取开放接口身份分页列表 🔖
|
||||
* @param {OpenAccessInput} [body]
|
||||
* @param {PageOpenAccessInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async apiSysOpenAccessPagePost(body?: OpenAccessInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListOpenAccessOutput>> {
|
||||
async apiSysOpenAccessPagePost(body?: PageOpenAccessInput, options?: AxiosRequestConfig): Promise<AxiosResponse<AdminResultSqlSugarPagedListOpenAccessOutput>> {
|
||||
return SysOpenAccessApiFp(configuration).apiSysOpenAccessPagePost(body, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
@ -519,12 +519,12 @@ export class SysOpenAccessApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary 获取开放接口身份分页列表 🔖
|
||||
* @param {OpenAccessInput} [body]
|
||||
* @param {PageOpenAccessInput} [body]
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
* @memberof SysOpenAccessApi
|
||||
*/
|
||||
public async apiSysOpenAccessPagePost(body?: OpenAccessInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListOpenAccessOutput>> {
|
||||
public async apiSysOpenAccessPagePost(body?: PageOpenAccessInput, options?: AxiosRequestConfig) : Promise<AxiosResponse<AdminResultSqlSugarPagedListOpenAccessOutput>> {
|
||||
return SysOpenAccessApiFp(this.configuration).apiSysOpenAccessPagePost(body, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
/**
|
||||
|
||||
@ -118,7 +118,6 @@ export * from './card-type-enum';
|
||||
export * from './change-pwd-input';
|
||||
export * from './cluster-status';
|
||||
export * from './code-gen-config';
|
||||
export * from './code-gen-input';
|
||||
export * from './column-ouput';
|
||||
export * from './column-relation';
|
||||
export * from './compare-info';
|
||||
@ -233,8 +232,8 @@ export * from './notice-user-status-enum';
|
||||
export * from './number-format-info';
|
||||
export * from './oauth-user-input';
|
||||
export * from './oauth-user-output';
|
||||
export * from './open-access-input';
|
||||
export * from './open-access-output';
|
||||
export * from './page-code-gen-input';
|
||||
export * from './page-config-input';
|
||||
export * from './page-dict-data-input';
|
||||
export * from './page-dict-type-input';
|
||||
@ -244,6 +243,7 @@ export * from './page-job-trigger-record-input';
|
||||
export * from './page-log-input';
|
||||
export * from './page-notice-input';
|
||||
export * from './page-online-user-input';
|
||||
export * from './page-open-access-input';
|
||||
export * from './page-plugin-input';
|
||||
export * from './page-pos-input';
|
||||
export * from './page-pos-output';
|
||||
@ -251,6 +251,7 @@ export * from './page-print-input';
|
||||
export * from './page-region-input';
|
||||
export * from './page-role-input';
|
||||
export * from './page-role-output';
|
||||
export * from './page-sys-ldap-input';
|
||||
export * from './page-sys-wechat-pay-input';
|
||||
export * from './page-tenant-input';
|
||||
export * from './page-user-input';
|
||||
@ -323,7 +324,6 @@ export * from './sys-job-detail';
|
||||
export * from './sys-job-trigger';
|
||||
export * from './sys-job-trigger-record';
|
||||
export * from './sys-ldap';
|
||||
export * from './sys-ldap-input';
|
||||
export * from './sys-log-diff';
|
||||
export * from './sys-log-ex';
|
||||
export * from './sys-log-op';
|
||||
|
||||
@ -16,15 +16,15 @@
|
||||
* 代码生成参数类
|
||||
*
|
||||
* @export
|
||||
* @interface CodeGenInput
|
||||
* @interface PageCodeGenInput
|
||||
*/
|
||||
export interface CodeGenInput {
|
||||
export interface PageCodeGenInput {
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
page?: number;
|
||||
|
||||
@ -32,7 +32,7 @@ export interface CodeGenInput {
|
||||
* 页码容量
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
pageSize?: number;
|
||||
|
||||
@ -40,7 +40,7 @@ export interface CodeGenInput {
|
||||
* 排序字段
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
field?: string | null;
|
||||
|
||||
@ -48,7 +48,7 @@ export interface CodeGenInput {
|
||||
* 排序方向
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
order?: string | null;
|
||||
|
||||
@ -56,7 +56,7 @@ export interface CodeGenInput {
|
||||
* 降序排序
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
descStr?: string | null;
|
||||
|
||||
@ -64,7 +64,7 @@ export interface CodeGenInput {
|
||||
* 作者姓名
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
authorName?: string | null;
|
||||
|
||||
@ -72,7 +72,7 @@ export interface CodeGenInput {
|
||||
* 类名
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
className?: string | null;
|
||||
|
||||
@ -80,7 +80,7 @@ export interface CodeGenInput {
|
||||
* 是否移除表前缀
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
tablePrefix?: string | null;
|
||||
|
||||
@ -88,7 +88,7 @@ export interface CodeGenInput {
|
||||
* 库定位器名
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
configId?: string | null;
|
||||
|
||||
@ -96,7 +96,7 @@ export interface CodeGenInput {
|
||||
* 数据库名(保留字段)
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
dbName?: string | null;
|
||||
|
||||
@ -104,7 +104,7 @@ export interface CodeGenInput {
|
||||
* 数据库类型
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
dbType?: string | null;
|
||||
|
||||
@ -112,7 +112,7 @@ export interface CodeGenInput {
|
||||
* 数据库链接
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
connectionString?: string | null;
|
||||
|
||||
@ -120,7 +120,7 @@ export interface CodeGenInput {
|
||||
* 生成方式
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
generateType?: string | null;
|
||||
|
||||
@ -128,7 +128,7 @@ export interface CodeGenInput {
|
||||
* 数据库表名
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
tableName?: string | null;
|
||||
|
||||
@ -136,7 +136,7 @@ export interface CodeGenInput {
|
||||
* 命名空间
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
nameSpace?: string | null;
|
||||
|
||||
@ -144,7 +144,7 @@ export interface CodeGenInput {
|
||||
* 业务名(业务代码包名称)
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
busName?: string | null;
|
||||
|
||||
@ -152,7 +152,7 @@ export interface CodeGenInput {
|
||||
* 功能名(数据库表名称)
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
tableComment?: string | null;
|
||||
|
||||
@ -160,7 +160,7 @@ export interface CodeGenInput {
|
||||
* 菜单应用分类(应用编码)
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
menuApplication?: string | null;
|
||||
|
||||
@ -168,7 +168,7 @@ export interface CodeGenInput {
|
||||
* 是否生成菜单
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
generateMenu?: boolean;
|
||||
|
||||
@ -176,7 +176,7 @@ export interface CodeGenInput {
|
||||
* 菜单父级
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
menuPid?: number | null;
|
||||
|
||||
@ -184,7 +184,7 @@ export interface CodeGenInput {
|
||||
* 页面目录
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
pagePath?: string | null;
|
||||
|
||||
@ -192,7 +192,7 @@ export interface CodeGenInput {
|
||||
* 支持打印类型
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
printType?: string | null;
|
||||
|
||||
@ -200,7 +200,7 @@ export interface CodeGenInput {
|
||||
* 打印模版名称
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
printName?: string | null;
|
||||
|
||||
@ -208,7 +208,7 @@ export interface CodeGenInput {
|
||||
* 是否使用 Api Service
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof CodeGenInput
|
||||
* @memberof PageCodeGenInput
|
||||
*/
|
||||
isApiService?: boolean;
|
||||
}
|
||||
@ -16,15 +16,15 @@
|
||||
* 开放接口身份输入参数
|
||||
*
|
||||
* @export
|
||||
* @interface OpenAccessInput
|
||||
* @interface PageOpenAccessInput
|
||||
*/
|
||||
export interface OpenAccessInput {
|
||||
export interface PageOpenAccessInput {
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof OpenAccessInput
|
||||
* @memberof PageOpenAccessInput
|
||||
*/
|
||||
page?: number;
|
||||
|
||||
@ -32,7 +32,7 @@ export interface OpenAccessInput {
|
||||
* 页码容量
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof OpenAccessInput
|
||||
* @memberof PageOpenAccessInput
|
||||
*/
|
||||
pageSize?: number;
|
||||
|
||||
@ -40,7 +40,7 @@ export interface OpenAccessInput {
|
||||
* 排序字段
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OpenAccessInput
|
||||
* @memberof PageOpenAccessInput
|
||||
*/
|
||||
field?: string | null;
|
||||
|
||||
@ -48,7 +48,7 @@ export interface OpenAccessInput {
|
||||
* 排序方向
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OpenAccessInput
|
||||
* @memberof PageOpenAccessInput
|
||||
*/
|
||||
order?: string | null;
|
||||
|
||||
@ -56,7 +56,7 @@ export interface OpenAccessInput {
|
||||
* 降序排序
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OpenAccessInput
|
||||
* @memberof PageOpenAccessInput
|
||||
*/
|
||||
descStr?: string | null;
|
||||
|
||||
@ -64,7 +64,7 @@ export interface OpenAccessInput {
|
||||
* 身份标识
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof OpenAccessInput
|
||||
* @memberof PageOpenAccessInput
|
||||
*/
|
||||
accessKey?: string | null;
|
||||
}
|
||||
@ -16,15 +16,15 @@
|
||||
* 系统域登录信息配置输入参数
|
||||
*
|
||||
* @export
|
||||
* @interface SysLdapInput
|
||||
* @interface PageSysLdapInput
|
||||
*/
|
||||
export interface SysLdapInput {
|
||||
export interface PageSysLdapInput {
|
||||
|
||||
/**
|
||||
* 当前页码
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SysLdapInput
|
||||
* @memberof PageSysLdapInput
|
||||
*/
|
||||
page?: number;
|
||||
|
||||
@ -32,7 +32,7 @@ export interface SysLdapInput {
|
||||
* 页码容量
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SysLdapInput
|
||||
* @memberof PageSysLdapInput
|
||||
*/
|
||||
pageSize?: number;
|
||||
|
||||
@ -40,7 +40,7 @@ export interface SysLdapInput {
|
||||
* 排序字段
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysLdapInput
|
||||
* @memberof PageSysLdapInput
|
||||
*/
|
||||
field?: string | null;
|
||||
|
||||
@ -48,7 +48,7 @@ export interface SysLdapInput {
|
||||
* 排序方向
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysLdapInput
|
||||
* @memberof PageSysLdapInput
|
||||
*/
|
||||
order?: string | null;
|
||||
|
||||
@ -56,7 +56,7 @@ export interface SysLdapInput {
|
||||
* 降序排序
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysLdapInput
|
||||
* @memberof PageSysLdapInput
|
||||
*/
|
||||
descStr?: string | null;
|
||||
|
||||
@ -64,7 +64,7 @@ export interface SysLdapInput {
|
||||
* 关键字查询
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysLdapInput
|
||||
* @memberof PageSysLdapInput
|
||||
*/
|
||||
searchKey?: string | null;
|
||||
|
||||
@ -72,7 +72,7 @@ export interface SysLdapInput {
|
||||
* 主机
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SysLdapInput
|
||||
* @memberof PageSysLdapInput
|
||||
*/
|
||||
host?: string | null;
|
||||
}
|
||||
@ -95,7 +95,7 @@ import ModifyRecord from '/@/components/table/modifyRecord.vue';
|
||||
|
||||
import { getAPI } from '/@/utils/axios-utils';
|
||||
import { SysLdapApi } from '/@/api-services';
|
||||
import { SysLdap, SysLdapInput } from '/@/api-services/models';
|
||||
import { SysLdap, PageSysLdapInput } from '/@/api-services/models';
|
||||
|
||||
// 异步引用组件
|
||||
const PrintDialog = defineAsyncComponent(() => import('/@/views/system/print/component/hiprint/preview.vue'));
|
||||
@ -159,7 +159,7 @@ onMounted(async () => {
|
||||
|
||||
// 查询api
|
||||
const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, sort: VxeGridPropTypes.ProxyAjaxQuerySortCheckedParams) => {
|
||||
const params = Object.assign(state.queryParams, { page: page.currentPage, pageSize: page.pageSize, field: sort.field, order: sort.order, descStr: 'desc' }) as SysLdapInput;
|
||||
const params = Object.assign(state.queryParams, { page: page.currentPage, pageSize: page.pageSize, field: sort.field, order: sort.order, descStr: 'desc' }) as PageSysLdapInput;
|
||||
return getAPI(SysLdapApi).apiSysLdapPagePost(params);
|
||||
};
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@ import ModifyRecord from '/@/components/table/modifyRecord.vue';
|
||||
|
||||
import { getAPI } from '/@/utils/axios-utils';
|
||||
import { SysOpenAccessApi } from '/@/api-services/api';
|
||||
import { OpenAccessInput, OpenAccessOutput } from '/@/api-services/models';
|
||||
import { PageOpenAccessInput, OpenAccessOutput } from '/@/api-services/models';
|
||||
|
||||
const xGrid = ref<VxeGridInstance>();
|
||||
const editRef = ref<InstanceType<typeof EditOpenAccess>>();
|
||||
@ -128,7 +128,7 @@ onMounted(async () => {
|
||||
|
||||
// 查询api
|
||||
const handleQueryApi = async (page: VxeGridPropTypes.ProxyAjaxQueryPageParams, sort: VxeGridPropTypes.ProxyAjaxQuerySortCheckedParams) => {
|
||||
const params = Object.assign(state.queryParams, { page: page.currentPage, pageSize: page.pageSize, field: sort.field, order: sort.order, descStr: 'desc' }) as OpenAccessInput;
|
||||
const params = Object.assign(state.queryParams, { page: page.currentPage, pageSize: page.pageSize, field: sort.field, order: sort.order, descStr: 'desc' }) as PageOpenAccessInput;
|
||||
return getAPI(SysOpenAccessApi).apiSysOpenAccessPagePost(params);
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user