package com.ruoyi.demo.entity.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class CommercialVo {
    @NotBlank(groups = {EditGroup.class},message = "商户Id不能为空")
    private String commercialId;

    @NotBlank(groups = {AddGroup.class, EditGroup.class},message = "商户名称不能为空")
    private String commercialName;
    @NotBlank(groups = {AddGroup.class, EditGroup.class},message = "统一信用代码不能为空")
    private String code;

    private String commercialType;
    @NotNull(groups = {AddGroup.class, EditGroup.class},message = "状态不能为空")
    private Integer state;
    @NotBlank(groups = {AddGroup.class, EditGroup.class},message = "负责人名称不能为空")
    private String principalName;
    @NotBlank(groups = {AddGroup.class, EditGroup.class},message = "负责人联系方式不能为空")
    private String principalTelephone;
    private String prove1;
    private String prove2;
    private String prove3;
    private String prove4;
    private String prove5;
    @NotBlank(groups = {AddGroup.class, EditGroup.class},message = "地区Code不能为空")
    private String addrCode;
    private String addrCodeInfo;
    @NotBlank(groups = {AddGroup.class, EditGroup.class},message = "公司注册地址不能为空")
    private String addrInfo;
    private LocalDateTime createTime;
    private Integer deleted;

    private String searchText;

    private int pageNum = 1;

    private int pageSize = 10;
}
