From f4e3c4abf0c70fd93fa88f7f4bda9b1407cd56bc Mon Sep 17 00:00:00 2001 From: FalconFly <12919280+falconfly@user.noreply.gitee.com> Date: Mon, 11 Sep 2023 13:43:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0guid=E7=94=9F=E6=88=90?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs index e254fc2..a8e3e1c 100644 --- a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs +++ b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs @@ -63,6 +63,11 @@ namespace Falcon.SugarApi.ApiDefinistions this.Cache = service.GetService(); } + /// + /// 获取一个新的系统Id + /// + protected virtual string NewId() => Guid.NewGuid().ToString(); + #region 记录日志 ///