package com.chushang.inspection.project.dto;

import com.chushang.common.core.validator.Create;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 回款
 * @auther: zhao
 * @date: 2024/6/17 15:30
 */
@Data
public class PaymentDTO {
    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空", groups = {Create.class})
    private Long projectId;
    /**
     * 合同Id
     */
    @NotNull(message = "合同id不能为空", groups = {Create.class})
    private Long contractId;
    /**
     * 回款金额
     */
    @NotNull(message = "回款金额不能为空", groups = {Create.class})
    private BigDecimal paymentAmount;
    /**
     * 回款备注
     */
    private String remark;
    /**
     * 回款文件证明
     */
    @NotNull(message = "回款证明文件不能为空", groups = {Create.class})
    private String paymentReceipt;

}
