25 lines
725 B
C#
25 lines
725 B
C#
|
|
using QYZH.InteractiveMagazine.Models.Dto.CheckIn;
|
||
|
|
using QYZH.InteractiveMagazine.Models.Entity;
|
||
|
|
|
||
|
|
namespace QYZH.InteractiveMagazine.IService;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 签到服务接口
|
||
|
|
/// </summary>
|
||
|
|
public interface ICheckInService : IBaseService<CheckInRecord>
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 用户签到
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="userId">用户Id</param>
|
||
|
|
/// <returns>签到结果</returns>
|
||
|
|
Task<CheckInOutput> CheckInAsync(long userId);
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 获取用户签到信息(今日状态 + 连续天数 + 最近记录)
|
||
|
|
/// </summary>
|
||
|
|
/// <param name="userId">用户Id</param>
|
||
|
|
/// <returns>签到信息</returns>
|
||
|
|
Task<CheckInInfoOutput> GetCheckInInfoAsync(long userId);
|
||
|
|
}
|