liuxiaolong
2019-05-09 0d1d88cdb668e75ea8609417ac18ae19947e9525
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.tools.entity;
 
import org.hibernate.validator.constraints.Length;
 
import com.jeeplus.common.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
 
/**
 * 接口Entity
 * @author lgf
 * @version 2016-01-07
 */
public class TestInterface extends DataEntity<TestInterface> {
    
    private static final long serialVersionUID = 1L;
    private String name;        // 接口名称
    private String type;        // 接口类型
    private String url;        // 请求URL
    private String body;        // 请求body
    private String successmsg;        // 成功时返回消息
    private String errormsg;        // 失败时返回消息
    private String remarks;        // 备注
    
    public TestInterface() {
        super();
    }
 
    public TestInterface(String id){
        super(id);
    }
 
    @Length(min=0, max=1024, message="接口名称长度必须介于 0 和 1024 之间")
    @ExcelField(title="接口名称", align=2, sort=1)
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
    
    @Length(min=0, max=16, message="接口类型长度必须介于 0 和 16 之间")
    @ExcelField(title="接口类型", dictType="type", align=2, sort=2)
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
    
    @Length(min=0, max=256, message="请求URL长度必须介于 0 和 256 之间")
    @ExcelField(title="请求URL", align=2, sort=3)
    public String getUrl() {
        return url;
    }
 
    public void setUrl(String url) {
        this.url = url;
    }
    
    @Length(min=0, max=2048, message="请求body长度必须介于 0 和 2048 之间")
    @ExcelField(title="请求body", align=2, sort=4)
    public String getBody() {
        return body;
    }
 
    public void setBody(String body) {
        this.body = body;
    }
    
    @Length(min=0, max=512, message="成功时返回消息长度必须介于 0 和 512 之间")
    @ExcelField(title="成功时返回消息", align=2, sort=5)
    public String getSuccessmsg() {
        return successmsg;
    }
 
    public void setSuccessmsg(String successmsg) {
        this.successmsg = successmsg;
    }
    
    @Length(min=0, max=512, message="失败时返回消息长度必须介于 0 和 512 之间")
    @ExcelField(title="失败时返回消息", align=2, sort=6)
    public String getErrormsg() {
        return errormsg;
    }
 
    public void setErrormsg(String errormsg) {
        this.errormsg = errormsg;
    }
    
    @Length(min=0, max=512, message="备注长度必须介于 0 和 512 之间")
    @ExcelField(title="备注", align=2, sort=7)
    public String getRemarks() {
        return remarks;
    }
 
    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    
}