namespace HoneyBox.Core.Interfaces;

/// <summary>
/// 海报生成服务接口
/// </summary>
public interface IPosterService
{
    /// <summary>
    /// 获取或生成用户推广海报
    /// </summary>
    /// <param name="userId">用户ID</param>
    /// <param name="platform">平台类型（MP-WEIXIN/H5/APP等）</param>
    /// <returns>海报生成结果</returns>
    Task<PosterResult> GetUserPosterAsync(int userId, string? platform = null);
}

/// <summary>
/// 海报生成结果
/// </summary>
public class PosterResult
{
    /// <summary>
    /// 是否成功
    /// </summary>
    public bool Success { get; set; }

    /// <summary>
    /// 消息
    /// </summary>
    public string Message { get; set; } = string.Empty;

    /// <summary>
    /// 海报图片URL
    /// </summary>
    public string? ImageUrl { get; set; }
}
