wuqiping
2021-06-09 f342a0d88b2a7168f794d0cf545d16a3138acb6d
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
28
29
30
31
32
33
package com.moral.api.pojo.form.version;
 
import com.moral.api.entity.Version;
import lombok.Data;
import org.springframework.util.ObjectUtils;
 
/**
 * @ClassName VersionInsertForm
 * @Description TODO
 * @Author 陈凯裕
 * @Date 2021/5/20 11:55
 * @Version TODO
 **/
@Data
public class VersionInsertForm {
 
    private String name;
 
    private String desc;
 
    public boolean valid(){
        if(ObjectUtils.isEmpty(name))
            return false;
        return true;
    }
 
    public Version formConvertEntity(){
        Version version = new Version();
        version.setName(name);
        version.setDesc(desc);
        return version;
    }
}