kaiyu
2021-05-20 e7bc156f901b06e5af54cfe86fe53e7491af7b7f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
    }
}