模板重新生成可空类型
This commit is contained in:
@@ -391,41 +391,6 @@
|
||||
<param name="ids"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.Create(Yi.Framework.DtoModel.RABC.Student.StudentCreateInput)">
|
||||
<summary>
|
||||
增
|
||||
</summary>
|
||||
<param name="studentCreateInput"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.GetById(System.Guid)">
|
||||
<summary>
|
||||
查
|
||||
</summary>
|
||||
<param name="id"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.GetLsit">
|
||||
<summary>
|
||||
查
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.Del(System.Collections.Generic.List{System.Guid})">
|
||||
<summary>
|
||||
删
|
||||
</summary>
|
||||
<param name="ids"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Yi.Framework.ApiMicroservice.Controllers.ERP.StudentController.Update(System.Guid,Yi.Framework.DtoModel.RABC.Student.StudentUpdateInput)">
|
||||
<summary>
|
||||
更
|
||||
</summary>
|
||||
<param name="id"></param>
|
||||
<param name="studentUpdateInput"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:Yi.Framework.ApiMicroservice.Controllers.AccountController">
|
||||
<summary>
|
||||
账户管理
|
||||
|
||||
@@ -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<StudentController> _logger;
|
||||
private readonly IStudentService _studentService;
|
||||
public StudentController(ILogger<StudentController> logger, IStudentService studentService)
|
||||
{
|
||||
_logger = logger;
|
||||
_studentService = studentService;
|
||||
}
|
||||
|
||||
[HttpDelete]
|
||||
[Route("ErrorTest")]
|
||||
public Result<bool> ErrorTest()
|
||||
{
|
||||
_studentService.GetError();
|
||||
return Result<bool>.Success();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>
|
||||
/// </summary>
|
||||
/// <param name="studentCreateInput"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
public async Task<Result<StudentGetOutput>> Create(StudentCreateInput studentCreateInput)
|
||||
{
|
||||
var result = await _studentService.CreateAsync(studentCreateInput);
|
||||
|
||||
return Result<StudentGetOutput>.Success().SetData(result);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
[Route("{id}")]
|
||||
public async Task<Result<StudentGetOutput>> GetById(Guid id)
|
||||
{
|
||||
var result = await _studentService.GetByIdAsync(id);
|
||||
return Result<StudentGetOutput>.Success().SetData(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet]
|
||||
public async Task<Result<List<StudentListOutput>>> GetLsit()
|
||||
{
|
||||
var result = await _studentService.GetListAsync();
|
||||
|
||||
return Result<List<StudentListOutput>>.Success().SetData(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ɾ
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <returns></returns>
|
||||
[HttpDelete]
|
||||
public async Task<Result<bool>> Del(List<Guid> ids)
|
||||
{
|
||||
await _studentService.DeleteAsync(ids);
|
||||
return Result<bool>.Success();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <20><>
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="studentUpdateInput"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[Route("{id}")]
|
||||
public async Task<Result<StudentGetOutput>> Update(Guid id, StudentUpdateInput studentUpdateInput)
|
||||
{
|
||||
var result = await _studentService.UpdateAsync(id, studentUpdateInput);
|
||||
return Result<StudentGetOutput>.Success().SetData(result);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Reference in New Issue
Block a user