diff options
author | crupest <crupest@outlook.com> | 2022-12-10 20:24:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-20 20:32:53 +0800 |
commit | c2e7d3c222fcbfcce9c9a0b44dd7e82742e9cd1f (patch) | |
tree | cd901fb537367c3340d47ccd537c4ae06b9af337 /docker/crupest-api/CrupestApi/CrupestApi.Secrets | |
parent | 4f96f8db974fa7a236ce8ffa564bccdb62691cfa (diff) | |
download | crupest-c2e7d3c222fcbfcce9c9a0b44dd7e82742e9cd1f.tar.gz crupest-c2e7d3c222fcbfcce9c9a0b44dd7e82742e9cd1f.tar.bz2 crupest-c2e7d3c222fcbfcce9c9a0b44dd7e82742e9cd1f.zip |
Develop secret api. v25
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Secrets')
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs | 2 | ||||
-rw-r--r-- | docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsService.cs | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs index e6af39b..12fd3da 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretInfo.cs @@ -8,7 +8,7 @@ public class SecretInfo { [Column(NotNull = true)] public string Key { get; set; } = default!; - [Column(NotNull = true, ClientGenerate = true, NoUpdate = true)] + [Column(NotNull = true, ClientGenerate = true, NoUpdate = true, ActAsKey = true)] public string Secret { get; set; } = default!; [Column(DefaultEmptyForString = true)] public string Description { get; set; } = default!; diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsService.cs b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsService.cs index b8912cb..7051602 100644 --- a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsService.cs +++ b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretsService.cs @@ -1,7 +1,4 @@ -using System.Diagnostics; -using CrupestApi.Commons; using CrupestApi.Commons.Crud; -using Dapper; namespace CrupestApi.Secrets; |