package com.dsk.jsk.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * 分支结构列表
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class EnterpriseAffiliatesBody extends BasePage {

    //企业Id
    @NotNull(message = "企业id不能为空")
    private Integer cid;

    private Integer hasBid;

    public boolean isVaildCid() {
        return 0 == cid;
    }
}
