package com.moral.api.pojo.vo.sysDictType;
|
|
import com.moral.api.entity.SysDictType;
|
import com.moral.api.pojo.dto.sysDictType.SysDictTypeDTO;
|
import com.moral.constant.ResponseCodeEnum;
|
|
/**
|
* @ClassName SysDictTypeDeleteVO
|
* @Description TODO
|
* @Author 陈凯裕
|
* @Date 2021/4/16 8:43
|
* @Version TODO
|
**/
|
public class SysDictTypeDeleteVO extends SysDictTypeVO {
|
|
public static SysDictTypeDeleteVO convert(SysDictTypeDTO dto) {
|
if (dto.getCode() != ResponseCodeEnum.SUCCESS.getCode())
|
return null;
|
//封装返回对象
|
SysDictTypeDeleteVO vo = new SysDictTypeDeleteVO();
|
SysDictType type = dto.getSysDictType();
|
vo.setId(type.getId());
|
vo.setName(type.getName());
|
vo.setDesc(type.getDesc());
|
return vo;
|
}
|
}
|