LogVo.java 2.75 KB
Newer Older
yanzg's avatar
yanzg committed
1 2
package com.yanzuoguang.util.vo;

yanzg's avatar
yanzg committed
3 4 5
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

yanzg's avatar
yanzg committed
6 7
/**
 * 日志实例
yanzg's avatar
yanzg committed
8
 *
yanzg's avatar
yanzg committed
9
 * @author 颜佐光
yanzg's avatar
yanzg committed
10
 */
yanzg's avatar
yanzg committed
11 12

@ApiModel(value = "日志对象")
yanzg's avatar
yanzg committed
13
public class LogVo extends BaseVo {
yanzg's avatar
yanzg committed
14 15 16 17 18 19

    private static final long serialVersionUID = -8629960247077620458L;

    /**
     * 日志id
     */
yanzg's avatar
yanzg committed
20
    @ApiModelProperty(value = "日志Id", required = true, example = "{{$uuid}}")
yanzg's avatar
yanzg committed
21 22 23 24 25
    private String logId;

    /**
     * 工程实例名
     */
yanzg's avatar
yanzg committed
26
    @ApiModelProperty(value = "项目名称", required = true, example = "tbd-order")
yanzg's avatar
yanzg committed
27 28 29 30 31
    private String logSources;

    /**
     * 请求接口地址
     */
yanzg's avatar
yanzg committed
32
    @ApiModelProperty(value = "接口地址", required = true, example = "/order/save")
yanzg's avatar
yanzg committed
33 34 35 36 37
    private String interUrl;

    /**
     * 请求内容
     */
yanzg's avatar
yanzg committed
38
    @ApiModelProperty(value = "请求内容", required = true, example = "{}")
yanzg's avatar
yanzg committed
39 40 41 42 43
    private String content;

    /**
     * 返回参数
     */
yanzg's avatar
yanzg committed
44
    @ApiModelProperty(value = "返回结果", required = true, example = "{}")
yanzg's avatar
yanzg committed
45 46 47 48 49
    private String result;

    /**
     * 接口处理状态,是否有异常
     */
yanzg's avatar
yanzg committed
50
    @ApiModelProperty(value = "执行状态", notes = "0表示成功,1表示失败", required = true, example = "0")
yanzg's avatar
yanzg committed
51 52
    private int status;

yanzg's avatar
yanzg committed
53 54 55
    /**
     * 使用时间
     */
yanzg's avatar
yanzg committed
56
    @ApiModelProperty(value = "执行耗时", notes = "单位(毫秒)", required = true, example = "20")
yanzg's avatar
yanzg committed
57 58
    private int useTime;

yanzg's avatar
yanzg committed
59 60 61
    /**
     * 创建时间
     */
yanzg's avatar
yanzg committed
62
    @ApiModelProperty(value = "创建时间", notes = "单位(毫秒)", required = false, example = "1987-11-24 23:15:18")
yanzg's avatar
yanzg committed
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 106 107 108 109 110 111 112
    private String createDate;

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getLogSources() {
        return logSources;
    }

    public void setLogSources(String logSources) {
        this.logSources = logSources;
    }

    public String getInterUrl() {
        return interUrl;
    }

    public void setInterUrl(String interUrl) {
        this.interUrl = interUrl;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

yanzg's avatar
yanzg committed
113 114 115 116 117 118 119 120
    public int getUseTime() {
        return useTime;
    }

    public void setUseTime(int useTime) {
        this.useTime = useTime;
    }

yanzg's avatar
yanzg committed
121 122 123 124 125 126 127 128 129
    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

}