package com.ruoyi.pay.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 租户订阅信息业务对象 pay_sub_info
 *
 * @author ruoyi
 * @date 2025-05-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PaySubInfoBo extends BaseEntity {

    /**
     * 订阅ID
     */
    @NotNull(message = "订阅ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long tenantId;

    /**
     * 公司名称
     */
    @NotBlank(message = "公司名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companyName;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date endTime;

    /**
     * 激活情况（0已激活 1停用）
     */
    @NotBlank(message = "激活情况（0已激活 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String active;

    /**
     * 订阅计划ID
     */
    @NotNull(message = "订阅计划ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long subplanId;

    /**
     * 订阅名称
     */
    @NotBlank(message = "订阅名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subplanName;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
