|
@@ -28,7 +28,7 @@ namespace OASystem.API.Controllers
|
|
|
#region user 操作
|
|
|
|
|
|
[HttpPost]
|
|
|
- [ProducesResponseType(typeof(LoginView), StatusCodes.Status200OK)]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> GetUserList(DtoBase dto)
|
|
|
{
|
|
|
try
|
|
@@ -51,8 +51,13 @@ namespace OASystem.API.Controllers
|
|
|
#endregion
|
|
|
|
|
|
#region 企业操作
|
|
|
- [HttpGet]
|
|
|
- [ProducesResponseType(typeof(LoginView), StatusCodes.Status200OK)]
|
|
|
+ /// <summary>
|
|
|
+ /// 查询企业数据
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> getCompanyList(DtoBase dto)
|
|
|
{
|
|
|
try
|
|
@@ -85,14 +90,27 @@ namespace OASystem.API.Controllers
|
|
|
throw;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView),StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> AddCompany(AddCompanyDto dto)
|
|
|
+ {
|
|
|
+ AddCompany _Company = _mapper.Map<AddCompany>(dto);
|
|
|
+ int id = await _syscomRep.AddAsyncReturnId(_Company);
|
|
|
+ return Ok(JsonView(0, "成功", _Company));
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
#region 部门操作
|
|
|
|
|
|
-
|
|
|
+ /// <summary>
|
|
|
+ /// 查询部门数据
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
//[Authorize]
|
|
|
[HttpPost]
|
|
|
- [ProducesResponseType(typeof(LoginView), StatusCodes.Status200OK)]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> QueryDepartmentList(DepartmentDto dto)
|
|
|
{
|
|
|
try
|
|
@@ -129,8 +147,13 @@ namespace OASystem.API.Controllers
|
|
|
#endregion
|
|
|
|
|
|
#region 用户操作
|
|
|
+ /// <summary>
|
|
|
+ /// 查询用户数据
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
[HttpPost]
|
|
|
- [ProducesResponseType(typeof(LoginView), StatusCodes.Status200OK)]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
public async Task<IActionResult> QueryUserList(UserDto dto)
|
|
|
{
|
|
|
try
|