干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2023-03-10 58d42ccf875b120f40fddce63752298e916e0b0b
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package org.jeecg.common.system.vo;
 
import java.io.Serializable;
 
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
/**
 * @Description: 字典类
 * @author: jeecg-boot
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class DictModel implements Serializable{
    private static final long serialVersionUID = 1L;
 
    public DictModel() {
    }
    
    public DictModel(String value, String text) {
        this.value = value;
        this.text = text;
    }
    
    /**
     * 字典value
     */
    private String value;
    /**
     * 字典文本
     */
    private String text;
 
    /**
     * 特殊用途: JgEditableTable
     * @return
     */
    public String getTitle() {
        return this.text;
    }
    /**
     * 特殊用途: vue3 Select组件
     */
    public String getLabel() {
        return this.text;
    }
 
}