using BPA.SAAS.Manage.Application.Org.Dtos.Users; using BPA.SAAS.Manage.Application.Org.Interface; using BPA.SAAS.Manage.Core.Base; using BPA.SAAS.Manage.Core.Org; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BPA.SAAS.Manage.Application.Org { [ApiDescriptionSettings("Org", Tag = "用户账号信息")] public class UserServices: IDynamicApiController { IUserService _userService; public UserServices(IUserService userService) { _userService=userService; } [HttpPost("/api/user/userpage")] public async Task UserPage(UserDtoPageInput input) { return await _userService.UserPage(input); } [HttpPost("/api/user/add")] public async Task AddUser(UserDtoInput input) { return await _userService.AddUser(input); } [HttpPost("/api/user/update")] public async Task UpdateUser(UserDtoInput input) { return await _userService.UpdateUser(input); } /// /// 删除 /// /// /// [HttpPost("/api/user/delete")] public async Task DeleteUser(List input) { return await _userService.DeleteUser(input); } /// /// 启用 /// /// /// [HttpGet("/api/user/enable")] public async Task Enable(string Id) { return await _userService.Enable(Id); } /// /// 禁用 /// /// /// [HttpGet("/api/user/disable")] public async Task Disable(string Id) { return await _userService.Disable(Id); } /// /// 重置密码 /// /// /// [HttpGet("/api/user/resetuserpwd")] public async Task ResetPwd(string Id) { return await _userService.ResetPwd(Id); } /// /// 变更密码 /// /// /// [HttpPost("/api/user/updatepwd")] public async Task UpdatePwd(UserPwdDtoInput input) { return await _userService.UpdatePwd(input); } /// /// 获取当前用户的角色 /// /// /// [HttpGet("/api/user/getuserrole")] public async Task GetUserRole(string UserId) { return await _userService.GetUserRole(UserId); } /// /// 新增用户角色 /// /// /// [HttpPost("/api/user/adduserrole")] public async Task AddUserRole(UserRoleDtoInput input) { return await _userService.AddUserRole(input); } } }