| 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; | 
|     } | 
| } |