From 692730fc51f9a127d34b4ac1b19d1b6a59409cbc Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Mon, 16 Dec 2024 15:19:20 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/ExtraController.cs | 12 ++++++--
.../Swagger/SwaggerSetup.cs | 6 ++--
.../Service/Management/UserService.cs | 30 +++++++++----------
.../Service/Management/UserTypeService.cs | 4 +--
4 files changed, 30 insertions(+), 22 deletions(-)
diff --git a/IRaCIS.Core.API/Controllers/ExtraController.cs b/IRaCIS.Core.API/Controllers/ExtraController.cs
index 041e450..71d1b03 100644
--- a/IRaCIS.Core.API/Controllers/ExtraController.cs
+++ b/IRaCIS.Core.API/Controllers/ExtraController.cs
@@ -37,7 +37,7 @@ namespace IRaCIS.Api.Controllers
///
- /// 获取医生详情
+ ///
///
///
///
@@ -129,7 +129,15 @@ namespace IRaCIS.Api.Controllers
- /// 系统用户登录接口[New]
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
[HttpPost, Route("user/login")]
[AllowAnonymous]
public async Task> Login(UserLoginDTO loginUser, [FromServices] IEasyCachingProvider provider, [FromServices] IUserService _userService,
diff --git a/IRaCIS.Core.API/_ServiceExtensions/Swagger/SwaggerSetup.cs b/IRaCIS.Core.API/_ServiceExtensions/Swagger/SwaggerSetup.cs
index 425b128..b3959de 100644
--- a/IRaCIS.Core.API/_ServiceExtensions/Swagger/SwaggerSetup.cs
+++ b/IRaCIS.Core.API/_ServiceExtensions/Swagger/SwaggerSetup.cs
@@ -17,7 +17,7 @@ namespace IRaCIS.Core.API
{
public static class SwaggerSetup
{
- public static bool useSwagger = false;
+ public static bool useSwagger = true;
public static void AddSwaggerSetup(this IServiceCollection services)
{
@@ -40,7 +40,7 @@ namespace IRaCIS.Core.API
options.SwaggerDoc("Dashboard&Statistics", new OpenApiInfo { Title = "统计模块", Version = "Dashboard&Statistics" });
options.SwaggerDoc("Financial", new OpenApiInfo { Title = "财务模块", Version = "Financial" });
- options.SwaggerDoc("Management", new OpenApiInfo { Title = "管理模块", Version = "Management" });
+ options.SwaggerDoc("Management", new OpenApiInfo { Title = "Management", Version = "Management" });
options.SwaggerDoc("Image", new OpenApiInfo { Title = "影像模块", Version = "Image" });
options.SwaggerDoc("Reading", new OpenApiInfo { Title = "读片模块", Version = "Reading" });
@@ -114,7 +114,7 @@ namespace IRaCIS.Core.API
options.SwaggerEndpoint($"swagger/Financial/swagger.json", "财务模块");
options.SwaggerEndpoint($"swagger/Institution/swagger.json", "机构信息模块");
- options.SwaggerEndpoint($"swagger/Management/swagger.json", "管理模块");
+ options.SwaggerEndpoint($"swagger/Management/swagger.json", "Management");
options.SwaggerEndpoint($"swagger/Image/swagger.json", "影像模块");
options.SwaggerEndpoint($"swagger/Reading/swagger.json", "读片模块");
diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs
index 14c3899..c9f9573 100644
--- a/IRaCIS.Core.Application/Service/Management/UserService.cs
+++ b/IRaCIS.Core.Application/Service/Management/UserService.cs
@@ -116,7 +116,7 @@ namespace IRaCIS.Application.Services
}
- /// 发送验证码 修改邮箱(已经登陆修改) New
+
[HttpGet("{email}")]
public async Task SendVerificationCode(string email)
@@ -220,7 +220,7 @@ namespace IRaCIS.Application.Services
}
/////
- ///// Result 为true 的时候 认为链接没有失效
+ /////
/////
/////
/////
@@ -259,7 +259,7 @@ namespace IRaCIS.Application.Services
///
- /// 重置密码为 默认密码
+ ///
///
///
///
@@ -272,7 +272,7 @@ namespace IRaCIS.Application.Services
if (_hostEnvironment.EnvironmentName != "Development")
{
- pwd = "EIImage." + new Random().Next(100, 1000);
+ pwd = string.Empty + new Random().Next(100000, 1000000)+ new Random().Next(100000, 1000000);
}
@@ -298,7 +298,7 @@ namespace IRaCIS.Application.Services
///
- /// 重置密码发邮件 (未登陆修改)
+ ///
///
///
///
@@ -335,7 +335,7 @@ namespace IRaCIS.Application.Services
}
///
- /// 验证验证码,没问题就返回用户所有的账户
+ ///
///
///
///
@@ -379,7 +379,7 @@ namespace IRaCIS.Application.Services
///
- /// (未登陆) 设置新密码
+ ///
///
///
///
@@ -403,7 +403,7 @@ namespace IRaCIS.Application.Services
}
///
- /// 修改密码,当前支持旧密码修改密码
+ ///
///
///
[HttpPost]
@@ -455,7 +455,7 @@ namespace IRaCIS.Application.Services
///
- /// 获取用户列表
+ ///
///
///
///
@@ -479,7 +479,7 @@ namespace IRaCIS.Application.Services
}
///
- /// 根据用户Id获取用户详细信息[New]
+ ///
///
///
/// xiuga
@@ -491,7 +491,7 @@ namespace IRaCIS.Application.Services
}
///
- /// 添加用户
+ ///
///
///
///
@@ -539,7 +539,7 @@ namespace IRaCIS.Application.Services
}
///
- /// 更新用户
+ ///
///
///
///
@@ -567,7 +567,7 @@ namespace IRaCIS.Application.Services
}
///
- /// 删除用户
+ ///
///
///
///
@@ -585,7 +585,7 @@ namespace IRaCIS.Application.Services
}
///
- /// 禁用或者启用账户
+ ///
///
///
///
@@ -605,7 +605,7 @@ namespace IRaCIS.Application.Services
///
- /// 用户登陆
+ ///
///
///
///
diff --git a/IRaCIS.Core.Application/Service/Management/UserTypeService.cs b/IRaCIS.Core.Application/Service/Management/UserTypeService.cs
index f0d7273..8a988db 100644
--- a/IRaCIS.Core.Application/Service/Management/UserTypeService.cs
+++ b/IRaCIS.Core.Application/Service/Management/UserTypeService.cs
@@ -91,7 +91,7 @@ namespace IRaCIS.Core.Application.Contracts
///
- /// 通过传递场景枚举 返回对应的下拉框数据 1:是外部 2:是内部 3:是Site调研 4: 邮件接收人,5:邮件抄送人
+ ///
///
///
///
@@ -152,7 +152,7 @@ namespace IRaCIS.Core.Application.Contracts
///
- /// 项目文档 配置 哪里用户类型下拉
+ ///
///
///
public async Task> GetTrialUserTypeList()