jinlin
2024-02-21 b27d06b8f0b805efd16e28fd80a57a0ed8a053ce
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package com.zt.modules.sys.dto;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
 
/**
 * 配置数据权限树
 *
 * @author hehz
 * @since 1.0.0
 */
@Data
@ApiModel(value = "配置数据权限树")
public class InterfaceDto implements Serializable {
    private Long id;
    private Long pid;
    private String name;
    private List<Group2> children = new ArrayList<>();
 
    public InterfaceDto(Long id, Long pid, String name) {
        this.id = id;
        this.pid = pid;
        this.name = name;
    }
 
    @Data
    public static class Group2 {
        private Long id;
        private Long pid;
        private String name;
        private List<Method> children = new ArrayList<>();
 
        public Group2(Long id, Long pid, String name) {
            this.id = id;
            this.pid = pid;
            this.name = name;
        }
    }
 
    @Data
    public static class Method {
        private Long id;
        private Long pid;
        private String name;
        private Long interfaceId;
        private List<Field> fields = new ArrayList<>();
 
        public Method(Long id, Long pid, String name, Long interfaceId) {
            this.id = id;
            this.pid = pid;
            this.name = name;
            this.interfaceId = interfaceId;
        }
    }
 
    @Data
    public static class Field {
        private Long id;
        private Long pid;
        private String name;
 
        private Long fieldId;
 
        @ApiModelProperty(value = "方法字段")
        private String field;
 
        @ApiModelProperty(value = "可选值")
        private String accept;
 
        @ApiModelProperty(value = "可选值为字典时,字典类型")
        private String dict;
 
        // @ApiModelProperty(value = "参数值")
        // private String value;
 
        // @ApiModelProperty(value = "参数类型")
        // private String valueType;
 
        @ApiModelProperty(value = "操作符")
        private String op;
 
        @ApiModelProperty(value = "默认值")
        private String defaul;
    }
}