feat : log-biz 操作日志中添加服务名称
This commit is contained in:
@@ -27,6 +27,11 @@ public class OperationLog implements Serializable {
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 应用名称
|
||||
*/
|
||||
private String applicationName;
|
||||
|
||||
/**
|
||||
* 操作模块
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package cn.fateverse.log.query;
|
||||
|
||||
import cn.fateverse.common.core.entity.QueryTime;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Data;
|
||||
|
||||
|
||||
@@ -12,7 +11,6 @@ import lombok.Data;
|
||||
* @Version: V2.0
|
||||
*/
|
||||
@Data
|
||||
@ApiModel("日志查询实体")
|
||||
public class OperationLogQuery extends QueryTime {
|
||||
|
||||
/**
|
||||
@@ -20,6 +18,8 @@ public class OperationLogQuery extends QueryTime {
|
||||
*/
|
||||
private String title;
|
||||
|
||||
private String applicationName;
|
||||
|
||||
/**
|
||||
* 操作人员
|
||||
*/
|
||||
|
||||
@@ -32,6 +32,8 @@ public class OperationLogVo implements Serializable {
|
||||
*/
|
||||
private String title;
|
||||
|
||||
private String applicationName;
|
||||
|
||||
/**
|
||||
* 业务类型(0其它 1新增 2修改 3删除)
|
||||
*/
|
||||
@@ -111,6 +113,7 @@ public class OperationLogVo implements Serializable {
|
||||
public static OperationLogVo toOperationLogVo(OperationLog operationLog) {
|
||||
return OperationLogVo.builder()
|
||||
.operId(operationLog.getOperId())
|
||||
.applicationName(operationLog.getApplicationName())
|
||||
.title(operationLog.getTitle())
|
||||
.businessType(operationLog.getBusinessType())
|
||||
.method(operationLog.getMethod())
|
||||
|
||||
Reference in New Issue
Block a user