You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/Myshipping.Core/Service/User/ISysUserService.cs

43 lines
1.8 KiB
C#

2 years ago
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Myshipping.Core.Entity;
2 years ago
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Myshipping.Core.Service;
2 years ago
public interface ISysUserService
{
Task AddUser(AddUserInput input);
Task ChangeUserStatus(UpdateUserInput input);
Task DeleteUser(DeleteUserInput input);
2 years ago
//Task<IActionResult> ExportUser([FromQuery] UserInput input);
2 years ago
Task ImportUser(IFormFile file);
Task<dynamic> GetUser([FromQuery] QueryUserInput input);
Task<dynamic> GetUserById(long userId);
Task<List<long>> GetUserDataScopeIdList(long userId = 0);
Task<dynamic> GetUserOwnData([FromQuery] QueryUserInput input);
Task<dynamic> GetUserOwnRole([FromQuery] QueryUserInput input);
Task<dynamic> GetUserSelector([FromQuery] UserInput input);
Task GrantUserData(UpdateUserInput input);
Task GrantUserRole(UpdateUserInput input);
Task<dynamic> QueryUserPageList([FromQuery] UserInput input);
Task ResetUserPwd(QueryUserInput input);
Task SaveAuthUserToUser(AuthUserInput authUser, UserInput sysUser);
Task UpdateAvatar(UploadAvatarInput input);
Task UpdateUser(UpdateUserInput input);
Task UpdateUserInfo(UpdateUserInput input);
Task UpdateUserPwd(ChangePasswordUserInput input);
Task<List<long>> GetDataScopeIdUserList(long userId = 0);
void CheckDataScopeByUserId(long userId);
void CheckDataScope(long orgId);
2 years ago
Task<List<SysUser>> GetTenantUser(string name,long? tenantId);
2 years ago
/// <summary>
/// 通过职位获取用户信息
/// </summary>
/// <param name="name"></param>
/// <param name="pos">职位代码 PCDD-调度</param>
/// <returns>返回用户详情</returns>
Task<List<EmpPosOutput>> QueryUserByPos(string name, string pos);
2 years ago
}