package com.chushang.inspection.project.dto;

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

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;

/**
 * @auther: zhao
 * @date: 2024/6/15 14:23
 */
@Data
public class ProjectDTO {
    /**
     * 项目Id
     */
    @NotNull(message = "项目Id不能为空", groups = Update.class)
    private Long projectId;
    /**
     * 项目名称
     */
    @NotNull(message = "项目名称不能为空", groups = Create.class)
    private String projectName;

    /**
     * 项目合同
     */
//    @NotNull(message = "项目合同不能为空", groups = Create.class)
//    @Null(message = "项目合同不能为空", groups = Update.class)
//    @Valid
    private ContractDTO contract;

    /**
     * 项目联系人
     */
    private String projectConcat;

    /**
     * 项目联系人电话
     */
    private String projectPhone;
    /**
     * 备注
     */
    private String remark;

}
