package com.monkeylessey.sys.domain.vo;
|
|
import com.monkeylessey.sys.domain.base.AbsVo;
|
import com.monkeylessey.sys.domain.entity.SysOpLog;
|
import lombok.Data;
|
import org.springframework.beans.BeanUtils;
|
import org.springframework.lang.NonNull;
|
|
/**
|
* 展示
|
*
|
* @author 向培
|
* @since 2024-05-02
|
*/
|
@Data
|
public class SysOpLogVO extends AbsVo {
|
|
/** 干了啥 */
|
private String opName;
|
|
/** 操作人 */
|
private String userName;
|
|
/** 请求路径 */
|
private String requestUrl;
|
|
/** 执行的方法名 */
|
private String invokeMethod;
|
|
/** 请求方式 */
|
private String requestMethod;
|
|
/** 谁发起的请求 */
|
private String requestBy;
|
|
/** 请求ip */
|
private String requestIp;
|
|
/** 请求参数 */
|
private String requestParam;
|
|
/** 请求结果 */
|
private String requestResult;
|
|
/** */
|
private String createBy;
|
|
public static SysOpLogVO getVoByEntity(@NonNull SysOpLog entity, SysOpLogVO vo) {
|
if(vo == null) {
|
vo = new SysOpLogVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|