From be1b1cb3da6ee0b01a004f35c1048a75b710404a Mon Sep 17 00:00:00 2001 From: guob yuano Date: Sun, 20 Sep 2026 16:03:38 +0800 Subject: [PATCH] ygb --- .gitignore | 1 + Src/Dlhis.Canteen/Dlhis.Canteen.csproj | 4 ++++ .../Order/Controllers/BalancesController.cs | 1 + .../PublishProfiles/FolderProfile.pubxml | 15 +++++++++++++++ Src/Dlhis.Canteen/dotnet-tools.json | 13 +++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 Src/Dlhis.Canteen/Properties/PublishProfiles/FolderProfile.pubxml create mode 100644 Src/Dlhis.Canteen/dotnet-tools.json diff --git a/.gitignore b/.gitignore index f8f1c339..6837f273 100644 --- a/.gitignore +++ b/.gitignore @@ -212,3 +212,4 @@ ServiceFabricBackup/ *.ldf *.ndf +/Src/Dlhis.Canteen/App diff --git a/Src/Dlhis.Canteen/Dlhis.Canteen.csproj b/Src/Dlhis.Canteen/Dlhis.Canteen.csproj index 42d85d59..401c1fc5 100644 --- a/Src/Dlhis.Canteen/Dlhis.Canteen.csproj +++ b/Src/Dlhis.Canteen/Dlhis.Canteen.csproj @@ -10,9 +10,13 @@ + + + + diff --git a/Src/Dlhis.Canteen/Order/Controllers/BalancesController.cs b/Src/Dlhis.Canteen/Order/Controllers/BalancesController.cs index 2501408a..160a2eed 100644 --- a/Src/Dlhis.Canteen/Order/Controllers/BalancesController.cs +++ b/Src/Dlhis.Canteen/Order/Controllers/BalancesController.cs @@ -162,6 +162,7 @@ public class BalancesController : ControllerBase /// /// [HttpPost("manuallyRecalc")] + //[Authorize(Roles = "admin")] [IgnoreTenant] [Transactional] public async Task ManuallyImportBalanceAndReCalcAsync(List requests) diff --git a/Src/Dlhis.Canteen/Properties/PublishProfiles/FolderProfile.pubxml b/Src/Dlhis.Canteen/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 00000000..dcd2f97b --- /dev/null +++ b/Src/Dlhis.Canteen/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,15 @@ + + + + + false + false + true + Release + Any CPU + FileSystem + App\ + FileSystem + <_TargetId>Folder + + \ No newline at end of file diff --git a/Src/Dlhis.Canteen/dotnet-tools.json b/Src/Dlhis.Canteen/dotnet-tools.json new file mode 100644 index 00000000..5c1165bb --- /dev/null +++ b/Src/Dlhis.Canteen/dotnet-tools.json @@ -0,0 +1,13 @@ +{ + "version": 1, + "isRoot": true, + "tools": { + "dotnet-ef": { + "version": "10.0.12", + "commands": [ + "dotnet-ef" + ], + "rollForward": false + } + } +} \ No newline at end of file