IUserService.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using Bowin.Common.Linq.Entity;
  2. using YLShipBuildLandMap.Entity;
  3. using YLShipBuildLandMap.Entity.ViewModel;
  4. using YLShipBuildLandMap.Entity.ViewModel.SystemSetting;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace YLShipBuildLandMap.Services.SystemSetting
  11. {
  12. public interface IUserService
  13. {
  14. LoginUser Login(string loginID, string passMd5);
  15. LoginUser GetLoginUserById(Guid userID);
  16. LoginUser GetLoginUserByCmOAId(string oaID);
  17. IGridResultSet<UserView> GetUserViewsForSelect(string loginID, string name, int? pageIndex = null, int? pageSize = null, Guid?[] departIds = null,bool isAllUser = false);
  18. IGridResultSet<UserView> GetUserViewList(string userName, Guid? roleID, int? recordStatus, List<Guid> useridList, int? pageIndex = null, int? pageSize = null);
  19. UserView GetUserView(Guid userID);
  20. Task Save(UserView user, Guid operatorID);
  21. Task Delete(List<Guid> userIDList);
  22. UserView GetUserViewByName(string loginID, string name);
  23. Task UpdatePwd(Guid userID, string newPassword);
  24. Task ResetPwd(Guid Id, Guid userID);
  25. List<UserView> GetUserViewListByRoleName(string roleName);
  26. LoginUser GetLoginUserByWeChatUserId(string weChatUserId);
  27. int SetWechatUser(Guid userId, string weChatUserId);
  28. IGridResultSet<UserRoleView> GetUserRoleList();
  29. void ChangePassword(string loginID, string password, string newPassword);
  30. IGridResultSet<UserView> GetSysUserForSelect(Guid? prinicipalUserId, string key, int? pageIndex = 1, int? pageSize = 999, Guid?[] departIds = null, string roleName = null);
  31. }
  32. }