whycxzp
2021-04-25 8097b69572c02afbe0a210bf5b00988c76527721
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
package com.whyc.pojo;
 
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;
 
import java.util.Date;
 
@ApiModel
@Alias("OperationLog")
@TableName( schema = "`db_3.5mw_web`",value = "tb_operation_log")
public class OperationLog {
 
    private Integer id;
    @ApiModelProperty("操作内容")
    private String content;
    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createTime;
    @ApiModelProperty("终端ip")
    private String terminalIp;
    private String userName;
 
    public OperationLog(String content,String terminalIp, String userName) {
        this.content = content;
        this.createTime = new Date();
        this.terminalIp = terminalIp;
        this.userName = userName;
    }
 
    public Integer getId() {
        return id;
    }
 
    public void setId(Integer id) {
        this.id = id;
    }
 
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public String getTerminalIp() {
        return terminalIp;
    }
 
    public void setTerminalIp(String terminalIp) {
        this.terminalIp = terminalIp;
    }
 
    public String getUserName() {
        return userName;
    }
 
    public void setUserName(String userName) {
        this.userName = userName;
    }
}