From 0acb4bd247814a16c2b4c8dd8a82d80ce937352a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=AF=E6=98=8E?= <455043818@qq.com> Date: Fri, 29 Sep 2023 23:17:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:9=E6=9C=8829=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/daily/2023-09.md | 6 +++++- docs/javascript/2023-08-25-dotnetcore.md | 14 +++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/daily/2023-09.md b/docs/daily/2023-09.md index 6e8b536bdc..bab63dc11d 100644 --- a/docs/daily/2023-09.md +++ b/docs/daily/2023-09.md @@ -87,4 +87,8 @@ git tag -l "v3.0.0.*" --sort=-taggerdate ## 9月27日 - docker docker-compose vue前端 - - https://juejin.cn/post/7246264754141462589 \ No newline at end of file + - https://juejin.cn/post/7246264754141462589 + +## 9月29日 +- ai ui + - https://github.com/leaferjs/ui \ No newline at end of file diff --git a/docs/javascript/2023-08-25-dotnetcore.md b/docs/javascript/2023-08-25-dotnetcore.md index 4090e37238..fc7c83ba8e 100644 --- a/docs/javascript/2023-08-25-dotnetcore.md +++ b/docs/javascript/2023-08-25-dotnetcore.md @@ -162,4 +162,16 @@ SHOW DATABASES; -## mysql执行数据同步时有可能有数据表访问权限的问题 \ No newline at end of file +## mysql执行数据同步时有可能有数据表访问权限的问题 + +## 判断枚举是否存在 +``` + //if (!Enum.IsDefined(typeof(TaskType), model.TaskType)) + //{ + // throw new ErrorCodeException(-1, "传入的任务类型不存在"); + //} + //else + //{ + // spec.Query.Where(item => item.TaskType == model.TaskType); + //} +``` \ No newline at end of file