235 lines
4.1 KiB
Java
235 lines
4.1 KiB
Java
package com.ibeetl.jlw.entity;
|
|
|
|
import cn.jlw.validate.ValidateConfig;
|
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
|
import com.ibeetl.admin.core.entity.BaseEntity;
|
|
import com.ibeetl.admin.core.entity.CoreUser;
|
|
import org.beetl.sql.annotation.entity.AssignID;
|
|
import org.beetl.sql.annotation.entity.InsertIgnore;
|
|
import org.beetl.sql.annotation.entity.UpdateIgnore;
|
|
import org.beetl.sql.fetch.annotation.Fetch;
|
|
import org.beetl.sql.fetch.annotation.FetchOne;
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
import java.util.Date;
|
|
|
|
/*
|
|
* 用户行为日志
|
|
* gen by Spring Boot2 Admin 2019-08-16
|
|
*/
|
|
@Fetch
|
|
public class SysLog extends BaseEntity{
|
|
|
|
//主键
|
|
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
|
// @SeqID(name = ORACLE_CORE_SEQ_NAME)
|
|
@AssignID(value = "maskAutoID",param = "com.ibeetl.jlw.entity.SysLog")
|
|
|
|
private Long id ;
|
|
|
|
//请求方法
|
|
|
|
private String method ;
|
|
|
|
//请求URI
|
|
|
|
private String requestUrl ;
|
|
|
|
//请求参数
|
|
|
|
private String params ;
|
|
|
|
//结果
|
|
|
|
private String result ;
|
|
|
|
//ip地址
|
|
|
|
private String ip ;
|
|
|
|
//操作时间
|
|
|
|
private Date createTime ;
|
|
|
|
//响应时间
|
|
|
|
private Date resultTime ;
|
|
|
|
|
|
private String token ;
|
|
|
|
//会员ID
|
|
|
|
private Long studentId ;
|
|
|
|
//微信ID
|
|
|
|
private String openId;
|
|
|
|
//session
|
|
|
|
private String session ;
|
|
|
|
//管理员或老师ID
|
|
|
|
private Long userId ;
|
|
|
|
@FetchOne("userId")
|
|
@JsonAnyGetter
|
|
@UpdateIgnore
|
|
@InsertIgnore
|
|
public CoreUser coreUser;
|
|
|
|
public SysLog(){
|
|
}
|
|
|
|
/**主键
|
|
*@return
|
|
*/
|
|
public Long getId(){
|
|
return id;
|
|
}
|
|
/**主键
|
|
*@param id
|
|
*/
|
|
public void setId(Long id){
|
|
this.id = id;
|
|
}
|
|
|
|
/**请求方法
|
|
*@return
|
|
*/
|
|
public String getMethod(){
|
|
return method;
|
|
}
|
|
/**请求方法
|
|
*@param method
|
|
*/
|
|
public void setMethod(String method){
|
|
this.method = method;
|
|
}
|
|
|
|
/**请求URI
|
|
*@return
|
|
*/
|
|
public String getRequestUrl(){
|
|
return requestUrl;
|
|
}
|
|
/**请求URI
|
|
*@param requestUrl
|
|
*/
|
|
public void setRequestUrl(String requestUrl){
|
|
this.requestUrl = requestUrl;
|
|
}
|
|
|
|
/**请求参数
|
|
*@return
|
|
*/
|
|
public String getParams(){
|
|
return params;
|
|
}
|
|
/**请求参数
|
|
*@param params
|
|
*/
|
|
public void setParams(String params){
|
|
this.params = params;
|
|
}
|
|
|
|
/**结果
|
|
*@return
|
|
*/
|
|
public String getResult(){
|
|
return result;
|
|
}
|
|
/**结果
|
|
*@param result
|
|
*/
|
|
public void setResult(String result){
|
|
this.result = result;
|
|
}
|
|
|
|
/**ip地址
|
|
*@return
|
|
*/
|
|
public String getIp(){
|
|
return ip;
|
|
}
|
|
/**ip地址
|
|
*@param ip
|
|
*/
|
|
public void setIp(String ip){
|
|
this.ip = ip;
|
|
}
|
|
|
|
/**操作时间
|
|
*@return
|
|
*/
|
|
public Date getCreateTime(){
|
|
return createTime;
|
|
}
|
|
/**操作时间
|
|
*@param createTime
|
|
*/
|
|
public void setCreateTime(Date createTime){
|
|
this.createTime = createTime;
|
|
}
|
|
|
|
/**响应时间
|
|
*@return
|
|
*/
|
|
public Date getResultTime(){
|
|
return resultTime;
|
|
}
|
|
/**响应时间
|
|
*@param resultTime
|
|
*/
|
|
public void setResultTime(Date resultTime){
|
|
this.resultTime = resultTime;
|
|
}
|
|
|
|
public String getToken(){
|
|
return token;
|
|
}
|
|
public void setToken(String token){
|
|
this.token = token;
|
|
}
|
|
|
|
/**session
|
|
*@return
|
|
*/
|
|
public String getSession(){
|
|
return session;
|
|
}
|
|
/**session
|
|
*@param session
|
|
*/
|
|
public void setSession(String session){
|
|
this.session = session;
|
|
}
|
|
|
|
|
|
public String getOpenId() {
|
|
return openId;
|
|
}
|
|
|
|
public void setOpenId(String openId) {
|
|
this.openId = openId;
|
|
}
|
|
|
|
public Long getStudentId() {
|
|
return studentId;
|
|
}
|
|
|
|
public void setStudentId(Long studentId) {
|
|
this.studentId = studentId;
|
|
}
|
|
|
|
public Long getUserId() {
|
|
return userId;
|
|
}
|
|
|
|
public void setUserId(Long userId) {
|
|
this.userId = userId;
|
|
}
|
|
}
|