package com.monkeylessey.sys.domain.vo;
|
|
import com.monkeylessey.sys.domain.base.AbsVo;
|
import com.monkeylessey.sys.domain.entity.SysDictType;
|
import com.monkeylessey.enums.general.DictStatusEnum;
|
import lombok.Data;
|
import org.springframework.beans.BeanUtils;
|
import org.springframework.lang.NonNull;
|
|
/**
|
* 字典类型表展示
|
*
|
* @author 向培
|
* @since 2022-05-28
|
*/
|
@Data
|
public class SysDictTypeVO extends AbsVo {
|
/**
|
* 字典排序
|
*/
|
private Integer dictSort;
|
|
/**
|
* 字典类别名
|
*/
|
private String dictTypeName;
|
|
/**
|
* 字典类别key
|
*/
|
private String dictTypeKey;
|
|
/**
|
* 字典状态0可用,1不可用
|
*/
|
private DictStatusEnum dictStatus;
|
|
/**
|
* 备注
|
*/
|
private String remark;
|
|
/**
|
* entity转vo
|
*
|
* @param entity
|
* @param vo
|
* @return
|
*/
|
public static SysDictTypeVO getVoByEntity(@NonNull SysDictType entity, SysDictTypeVO vo) {
|
if (vo == null) {
|
vo = new SysDictTypeVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|