diff --git a/Biwen.AutoClassGen.TestConsole/Classes.cs b/Biwen.AutoClassGen.TestConsole/Classes.cs index 9011250..01a7924 100644 --- a/Biwen.AutoClassGen.TestConsole/Classes.cs +++ b/Biwen.AutoClassGen.TestConsole/Classes.cs @@ -11,4 +11,15 @@ public interface IQueryRequest : IPager } + + + /// + /// 分页请求 + /// + [AutoGen("QueryRequest2", "Biwen.AutoClassGen.TestConsole.Classes")] + public interface IQuery2Request + { + + } + } \ No newline at end of file diff --git a/Biwen.AutoClassGen.TestConsole/Interfaces.cs b/Biwen.AutoClassGen.TestConsole/Interfaces.cs index d07a5e6..dea6610 100644 --- a/Biwen.AutoClassGen.TestConsole/Interfaces.cs +++ b/Biwen.AutoClassGen.TestConsole/Interfaces.cs @@ -19,8 +19,8 @@ public interface IPager /// /// 分页项数 /// - [DefaultValue(10), Description("每页项数,10-20之间")] - [Range(10, 20)] + [DefaultValue(10), Description("每页项数,10-30之间")] + [Range(10, 30)] int? PageLen { get; set; } diff --git a/Biwen.AutoClassGen.TestConsole/Program.cs b/Biwen.AutoClassGen.TestConsole/Program.cs index 0e090ce..33b8a94 100644 --- a/Biwen.AutoClassGen.TestConsole/Program.cs +++ b/Biwen.AutoClassGen.TestConsole/Program.cs @@ -4,6 +4,6 @@ // See https://aka.ms/new-console-template for more information Console.WriteLine("Hello, World!"); - +QueryRequest queryRequest = new(); Console.ReadLine(); \ No newline at end of file