Skip to content

Commit

Permalink
feat:修改参数名
Browse files Browse the repository at this point in the history
  • Loading branch information
anjoy8 committed Oct 14, 2024
1 parent a2f3fc3 commit 39a98a2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Blog.Core.Api/Blog.Core.Model.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Blog.Core.Api/Blog.Core.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Blog.Core.Api/Controllers/ModuleController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ public ModuleController(IModuleServices moduleServices, IUser user)
/// <returns></returns>
// GET: api/User
[HttpGet]
public async Task<MessageModel<PageModel<Modules>>> Get(int page = 1, string key = "")
public async Task<MessageModel<PageModel<Modules>>> Get(int page = 1, string key = "", int pageSize = 50)
{
if (string.IsNullOrEmpty(key) || string.IsNullOrWhiteSpace(key))
{
key = "";
}
int intPageSize = 50;

Expression<Func<Modules, bool>> whereExpression = a => a.IsDeleted != true && (a.Name != null && a.Name.Contains(key));

Expand All @@ -53,7 +52,7 @@ public async Task<MessageModel<PageModel<Modules>>> Get(int page = 1, string key
}
else
{
data = await _moduleServices.QueryPage(whereExpression, page, intPageSize, " Id desc ");
data = await _moduleServices.QueryPage(whereExpression, page, pageSize, " Id desc ");
}


Expand Down
2 changes: 1 addition & 1 deletion Blog.Core.Api/wwwroot/BlogCore.Data.json/Permission.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@
"OrderSort": 0,
"Icon": null,
"Description": "查询 接口",
"Func": "getModules",
"Func": "handleQuery",
"Enabled": 1,
"CreateId": 18,
"CreateBy": "提bug账号",
Expand Down

0 comments on commit 39a98a2

Please sign in to comment.