CZT
2023-11-09 6c6b10257d0df6259ac1811774e1de44a283c7c7
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.fzzy.api.entity;
 
import com.bstek.dorado.annotation.PropertyDef;
import com.fzzy.api.Constant;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
 
import javax.persistence.*;
import java.io.Serializable;
 
/**
 * API-接口列表
 *
 * @author Andy
 */
@Data
@Entity
@Table(name = "API_LIST")
public class ApiList implements Serializable {
 
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
    @Id
    @GenericGenerator(name = "generator", strategy = "increment")
    @GeneratedValue(generator = "generator")
    @Column(name = "ID_")
    private Integer id;
 
    @Column(name = "CODE", length = 20)
    @PropertyDef(label = "接口编码")
    private String code;
 
    @Column(name = "NAME", length = 50)
    @PropertyDef(label = "接口名称")
    private String name;
 
    @Column(name = "CATEGORY_", length = 20)
    @PropertyDef(label = "接口分类")
    private String category;
 
    @Column(name = "VERSION_", length = 10)
    @PropertyDef(label = "接口版本")
    private String version;
 
    @Column(name = "URL", length = 100)
    @PropertyDef(label = "接口地址")
    private String url;
 
    @Column(name = "FROM_G_", length = 2)
    @PropertyDef(label = "数据来源-粮库信息系统")
    private String fromG = Constant.YN_Y;
 
    @Column(name = "FROM_P_", length = 2)
    @PropertyDef(label = "数据来源-省级平台")
    private String fromP;
 
    @Column(name = "FROM_C_", length = 2)
    @PropertyDef(label = "数据来源-中央平台")
    private String fromC;
 
    @Column(name = "REMARK_", length = 100)
    @PropertyDef(label = "备注说明")
    private String remark;
 
    @Column(name = "BIZ_TYPE_", length = 20)
    @PropertyDef(label = "业务类型", description = "GB-国标;JL-军粮")
    private String bizType = "GB";
}