add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
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
91
92
93
94
95
96
package com.dobbinsoft.fw.launcher.manager;
 
 
import com.dobbinsoft.fw.core.annotation.HttpParamType;
import com.dobbinsoft.fw.core.enums.BaseEnums;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import java.util.List;
 
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rize
 * Date: 2018-09-13
 * Time: 上午9:35
 */
@Data
public class ApiDocumentModel {
    private List<Group> groups;
    private boolean openPlatform;
 
    @Data
    public static class Group {
        /**
         * 组名
         */
        private String name;
 
        /**
         * 描述
         */
        private String description;
        /**
         * 方法列表
         */
        private List<Method> methods;
 
    }
 
    @Data
    public static class Method {
        private String name;
        private String description;
        private String retType;
        /**
         * 是否是开放平台接口
         */
        private Boolean openPlatform;
        private List<Field> retObj;
        private List<Parameter> parameters;
        private List<Entity> entityList;
    }
 
    @Data
    public static class Parameter {
        private String name;
        private String description;
        /**
         * 参数class类型
         */
        private String paramType;
        /**
         * 参数枚举
         */
        private HttpParamType type;
        private Boolean required;
        /**
         * 是否是JSON对象
         */
        private Boolean json;
 
    }
 
    /**
     * 请求实体
     */
    @Data
    @EqualsAndHashCode(exclude = "fields")
    public static class Entity {
        private String type;
        private String description;
        private List<Field> fields;
    }
 
    @Data
    public static class Field {
        private String name;
        private String type;
        private String description;
        private String map;
        private String filter;
        private BaseEnums[] enums;
    }
 
}