refactor(AdminPermissionService): 优化权限和角色编码重复校验逻辑
1. 将链式查询拆分为分步Where调用,使用WhereIF简化条件判断 2. 修复空值处理问题,使用id!.Value替代原值访问 3. 新增数据库菜单初始化脚本,补充Dockerfile和dotnet工具配置
This commit is contained in:
10
QYZH.InteractiveMagazine.WeChatApi/Dockerfile
Normal file
10
QYZH.InteractiveMagazine.WeChatApi/Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
ENV TZ=Asia/Shanghai
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["dotnet", "QYZH.InteractiveMagazine.WeChatApi.dll"]
|
||||
@ -1,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
@ -22,4 +22,10 @@
|
||||
<ProjectReference Include="..\QYZH.InteractiveMagazine.Models\QYZH.InteractiveMagazine.Models.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="Dockerfile">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
13
QYZH.InteractiveMagazine.WeChatApi/dotnet-tools.json
Normal file
13
QYZH.InteractiveMagazine.WeChatApi/dotnet-tools.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": 1,
|
||||
"isRoot": true,
|
||||
"tools": {
|
||||
"dotnet-ef": {
|
||||
"version": "10.0.9",
|
||||
"commands": [
|
||||
"dotnet-ef"
|
||||
],
|
||||
"rollForward": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user