using DocumentServiceAPI.Application.Repository; using DocumentServiceAPI.Application.UserAndLogin.Services; using DocumentServiceAPI.Application.UserAndLogin.Services.Interfaces; using DocumentServiceAPI.Application.UserAndLogin.ViewMode; using DocumentServiceAPI.Model.cyDocumentModel; using DocumentServiceAPI.Utility; using Microsoft.AspNetCore.Mvc.RazorPages; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DocumentServiceAPI.Application.UserAndLogin { /// /// 登录控制器 /// [ApiDescriptionSettings("LogInAndUser")] [DynamicApiController] [Authorize] public class UserInfoController { private readonly UserService _userService; public UserInfoController(UserService userService) { _userService = userService; } /// /// 获取用户详情 /// public async Task< RetUserInfo> GetUserInfo() { var jwt=_userService.GetJwtInfo(); return await _userService.GetUserInfo(jwt.TEID, jwt.EID, jwt.UID); } /// /// 获取员工列表 /// /// /// public async Task> postEmployeeList( EmployeePageSearch page) { return await _userService.postEmployeeList(page); } /// /// 创建新员工 /// /// /// public async Task CreateEmployee(EmployeeInfoVM Parma) { return await _userService.InEmployee(Parma); } /// /// 更新员工信息 /// /// /// public async Task UpDataEmployee(EmployeeInfoVM Parma) { return await _userService.UpEmployee(Parma); } } }