API接口元数据
| 11 | * API接口元数据 |
| 12 | */ |
| 13 | @Getter |
| 14 | @Setter |
| 15 | public class ApiMetadata implements Serializable { |
| 16 | @Serial |
| 17 | private static final long serialVersionUID = -3839956555454772149L; |
| 18 | /** Controller的@RequestMapping路径 例如 value="/column/{columnId}" **/ |
| 19 | private final String[] paths; |
| 20 | /** Controller的@RequestMapping请求方式 例如 method = RequestMethod.GET **/ |
| 21 | private final RequestMethod[] methods; |
| 22 | /** 映射路由枚举值 **/ |
| 23 | private final String routeEnumMapper; |
| 24 | /** 映射路由枚举名称 **/ |
| 25 | private final String routeEnumName; |
| 26 | |
| 27 | public ApiMetadata(String[] paths, RequestMethod[] methods,String routeEnumMapper,String routeEnumName) { |
| 28 | this.paths = paths; |
| 29 | this.methods = methods; |
| 30 | this.routeEnumMapper = routeEnumMapper; |
| 31 | this.routeEnumName = routeEnumName; |
| 32 | } |
| 33 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…