MCPcopy Create free account
hub / github.com/diyhi/bbs / ApiMetadata

Class ApiMetadata

src/main/java/cms/dto/frontendModule/ApiMetadata.java:13–33  ·  view source on GitHub ↗

API接口元数据

Source from the content-addressed store, hash-verified

11 * API接口元数据
12 */
13@Getter
14@Setter
15public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…