xiangpei
2025-04-18 ccadf9480d4e6a9dcc227a2a0b1f9ae0612e36fd
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
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;
    }
 
}