Skip to content

Commit

Permalink
demo #1
Browse files Browse the repository at this point in the history
  • Loading branch information
vipwan committed Nov 1, 2023
1 parent 81dce8c commit eda9d5e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Biwen.AutoClassGen.TestConsole/Classes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@ public interface IQueryRequest : IPager

}



/// <summary>
/// 分页请求
/// </summary>
[AutoGen("QueryRequest2", "Biwen.AutoClassGen.TestConsole.Classes")]
public interface IQuery2Request
{

}

}
4 changes: 2 additions & 2 deletions Biwen.AutoClassGen.TestConsole/Interfaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public interface IPager
/// <summary>
/// 分页项数
/// </summary>
[DefaultValue(10), Description("每页项数,10-20之间")]
[Range(10, 20)]
[DefaultValue(10), Description("每页项数,10-30之间")]
[Range(10, 30)]
int? PageLen { get; set; }


Expand Down
2 changes: 1 addition & 1 deletion Biwen.AutoClassGen.TestConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");


QueryRequest queryRequest = new();

Console.ReadLine();

0 comments on commit eda9d5e

Please sign in to comment.