namespace HoneyBox.Admin.Business.Models.Goods;

#region Request Models

/// <summary>
/// 创建盒子类型请求
/// </summary>
public class GoodsTypeCreateRequest
{
    /// <summary>
    /// 类型名称
    /// </summary>
    public string Name { get; set; } = string.Empty;

    /// <summary>
    /// 类型值（Key）
    /// </summary>
    public int Value { get; set; }

    /// <summary>
    /// 排序值
    /// </summary>
    public int SortOrder { get; set; }

    /// <summary>
    /// 是否首页显示 0-否 1-是
    /// </summary>
    public int IsShow { get; set; }

    /// <summary>
    /// 是否分类显示 0-否 1-是
    /// </summary>
    public int IsFenlei { get; set; }

    /// <summary>
    /// 分类名称
    /// </summary>
    public string FlName { get; set; } = string.Empty;

    /// <summary>
    /// 角标文字
    /// </summary>
    public string? CornerText { get; set; }

    /// <summary>
    /// 是否支持微信支付 0-否 1-是
    /// </summary>
    public int PayWechat { get; set; }

    /// <summary>
    /// 是否支持余额支付 0-否 1-是
    /// </summary>
    public int PayBalance { get; set; }

    /// <summary>
    /// 是否支持货币1支付（HH币/吧唧币）0-否 1-是
    /// </summary>
    public int PayCurrency { get; set; }

    /// <summary>
    /// 是否支持货币2支付（哈尼券）0-否 1-是
    /// </summary>
    public int PayCurrency2 { get; set; }

    /// <summary>
    /// 是否支持优惠券 0-否 1-是
    /// </summary>
    public int PayCoupon { get; set; }

    /// <summary>
    /// 支付类型：0-抵扣模式 1-支付模式
    /// </summary>
    public int IsDeduction { get; set; }

    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
}

/// <summary>
/// 更新盒子类型请求
/// </summary>
public class GoodsTypeUpdateRequest : GoodsTypeCreateRequest
{
}

/// <summary>
/// 盒子类型状态更新请求
/// </summary>
public class GoodsTypeStatusRequest
{
    /// <summary>
    /// 状态类型：is_show-首页显示 is_fenlei-分类显示
    /// </summary>
    public string Type { get; set; } = string.Empty;

    /// <summary>
    /// 状态值：0-否 1-是
    /// </summary>
    public int Value { get; set; }
}

#endregion
