package com.shkj.wms.common;

import com.shkj.wms.constants.DictConstants;
import com.shkj.wms.validator.Dict;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 联系人对象
 *
 * @author lch
 * @date 2021-12-22 15:09:23
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class SwitchStatusEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * id
     */
    @NotNull(message = "id不得为空")
    private Long id;

    /**
     * 是否正常 1正常 0禁止
     */
    @NotBlank(message = "状态不得为空")
    @Dict(type= DictConstants.DictKey.is_use,message="状态与数据字典值不匹配")
    private String isuse;

}
