using System.Security.Claims; namespace IM_API.Interface.Services { public interface IJWTService { /// /// 生成用户凭证 /// /// 负载 /// 过期时间 /// string GenerateAccessToken(IEnumerable claims, DateTime expiresAt); /// /// 创建用户凭证 /// /// /// (string token, DateTime expiresAt) CreateAccessTokenForUser(int userId,string username,string role); } }