diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
index 6c6c0a3b..7024d905 100644
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
+++ b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Config/SwaggerDoc.xml
@@ -391,41 +391,6 @@
-
-
- 增
-
-
-
-
-
-
- 查
-
-
-
-
-
-
- 查
-
-
-
-
-
- 删
-
-
-
-
-
-
- 更
-
-
-
-
-
账户管理
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/StudentController.cs b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/StudentController.cs
deleted file mode 100644
index b436afe9..00000000
--- a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/Controllers/StudentController.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-using Microsoft.AspNetCore.Mvc;
-using Yi.Framework.Common.Models;
-using Yi.Framework.DtoModel.RABC.Student;
-using Yi.Framework.Interface.RABC;
-
-namespace Yi.Framework.ApiMicroservice.Controllers.ERP
-{
- [ApiController]
- [Route("[controller]")]
- public class StudentController : ControllerBase
- {
-
- private readonly ILogger _logger;
- private readonly IStudentService _studentService;
- public StudentController(ILogger logger, IStudentService studentService)
- {
- _logger = logger;
- _studentService = studentService;
- }
-
- [HttpDelete]
- [Route("ErrorTest")]
- public Result ErrorTest()
- {
- _studentService.GetError();
- return Result.Success();
- }
-
- ///
- ///
- ///
- ///
- ///
- [HttpPost]
- public async Task> Create(StudentCreateInput studentCreateInput)
- {
- var result = await _studentService.CreateAsync(studentCreateInput);
-
- return Result.Success().SetData(result);
-
- }
-
- ///
- ///
- ///
- ///
- ///
- [HttpGet]
- [Route("{id}")]
- public async Task> GetById(Guid id)
- {
- var result = await _studentService.GetByIdAsync(id);
- return Result.Success().SetData(result);
- }
-
- ///
- ///
- ///
- ///
- [HttpGet]
- public async Task>> GetLsit()
- {
- var result = await _studentService.GetListAsync();
-
- return Result>.Success().SetData(result);
- }
-
- ///
- /// ɾ
- ///
- ///
- ///
- [HttpDelete]
- public async Task> Del(List ids)
- {
- await _studentService.DeleteAsync(ids);
- return Result.Success();
- }
-
- ///
- ///
- ///
- ///
- ///
- ///
- [HttpPut]
- [Route("{id}")]
- public async Task> Update(Guid id, StudentUpdateInput studentUpdateInput)
- {
- var result = await _studentService.UpdateAsync(id, studentUpdateInput);
- return Result.Success().SetData(result);
- }
-
-
- }
-}
\ No newline at end of file
diff --git a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db
index 22b2f850..a24a9d37 100644
Binary files a/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db and b/Yi.Framework.Net6/Yi.Framework.ApiMicroservice/yi-sqlsugar-dev.db differ
diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Helper/EmailHelper.cs b/Yi.Framework.Net6/Yi.Framework.Common/Helper/EmailHelper.cs
index 5629592d..b750054f 100644
--- a/Yi.Framework.Net6/Yi.Framework.Common/Helper/EmailHelper.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Common/Helper/EmailHelper.cs
@@ -9,10 +9,10 @@ namespace Yi.Framework.Common.Helper
{
public class EmailHelper
{
- public static string fromMail { get; set; }
- public static string pwdMail { get; set; }
- public static string senderMail { get; set; }
- public static string subjectMail { get; set; }
+ public static string fromMail { get; set; } = string.Empty;
+ public static string pwdMail { get; set; } = string.Empty;
+ public static string senderMail { get; set; } = string.Empty;
+ public static string subjectMail { get; set; } = string.Empty;
public static void Init(string fromMail,string pwdMail,string senderMail, string subjectMail)
{
EmailHelper.fromMail = fromMail;
diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Models/ITreeModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/Models/ITreeModel.cs
index ed6bb3af..fe3e72f3 100644
--- a/Yi.Framework.Net6/Yi.Framework.Common/Models/ITreeModel.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Common/Models/ITreeModel.cs
@@ -12,6 +12,6 @@ namespace Yi.Framework.Common.Models
public long ParentId { get; set; }
public int OrderNum { get; set; }
- public List Children { get; set; }
+ public List? Children { get; set; }
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Models/LogModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/Models/LogModel.cs
index 1c7b779f..40698657 100644
--- a/Yi.Framework.Net6/Yi.Framework.Common/Models/LogModel.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Common/Models/LogModel.cs
@@ -11,8 +11,8 @@ namespace Yi.Framework.Common.Models
///
public class LogModel
{
- public string OriginalClassName { get; set; }
- public string OriginalMethodName { get; set; }
- public string Remark { get; set; }
+ public string OriginalClassName { get; set; } = string.Empty;
+ public string OriginalMethodName { get; set; } = string.Empty;
+ public string? Remark { get; set; }
}
}
diff --git a/Yi.Framework.Net6/Yi.Framework.Common/Models/PageModel.cs b/Yi.Framework.Net6/Yi.Framework.Common/Models/PageModel.cs
index b1a6004c..7f090ade 100644
--- a/Yi.Framework.Net6/Yi.Framework.Common/Models/PageModel.cs
+++ b/Yi.Framework.Net6/Yi.Framework.Common/Models/PageModel.cs
@@ -16,7 +16,7 @@ namespace Yi.Framework.Common.Models
Total = total;
}
public int Total { get; set; }
- public T Data { get; set; }
+ public T Data { get; set; } = default(T)!;
}
public class PageModel : PageModel