ibms-dome/Repository/BackendRepository/Interface/IUserInfoRepository.cs

25 lines
786 B
C#
Raw Normal View History

2022-10-14 16:08:54 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Repository.BackendRepository.Interface
{
public interface IUserInfoRepository : BackendRepository.Interface.IBackendRepository
{
/// <summary>
/// 透過Account取得當前登入使用者資訊(非同步)
/// </summary>
/// <typeparam name="A"></typeparam>
/// <param name="account"></param>
/// <returns></returns>
Task<A> GetOneByAccountAsync<A>(string account);
/// <summary>
/// 透過Account取得當前登入使用者資訊
/// </summary>
/// <param name="account"></param>
/// <returns></returns>
A GetMyUserInfoByAccount<A>(string account);
}
}