package org.dromara.payment.invoice.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.payment.invoice.domain.MerInvoice;

import java.util.Date;
import java.util.List;

/**
 * 商户发票上传发票对象
 *
 * @author LionLi
 * @date 2024-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class UploadInvoiceBo extends BaseEntity {

    /**
     * 发票申请id
     */
    @NotNull(message = "发票申请id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long id;

    /**
     * 添加人
     */
    private String addBy;

    /**
     * 开票明细列表
     */
    @NotEmpty(message = "开票明细列表不能为空", groups = { AddGroup.class, EditGroup.class })
    private List<MerInvoiceDetailBo> details;
}
