-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from wyjsonGo/develop
1.URI自动组装path、type 2.开启日志可以检查路由是否有重复提交的情况 3.优化路由元数据冗余 4.生成JSON格式文档功能
- Loading branch information
Showing
21 changed files
with
518 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
GoRouter/src/main/java/com/wyjson/router/core/RouteHashMap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.wyjson.router.core; | ||
|
||
import java.util.HashMap; | ||
|
||
public class RouteHashMap<K, V> extends HashMap<K, V> { | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
GoRouter/src/main/java/com/wyjson/router/document/DocumentModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package com.wyjson.router.document; | ||
|
||
import com.wyjson.router.core.CardMeta; | ||
import com.wyjson.router.interfaces.IInterceptor; | ||
import com.wyjson.router.interfaces.IService; | ||
import com.wyjson.router.service.ServiceMeta; | ||
|
||
import java.io.Serializable; | ||
import java.util.Map; | ||
|
||
public class DocumentModel implements Serializable { | ||
|
||
private final Map<String, CardMeta> routes; | ||
private final Map<Class<? extends IService>, ServiceMeta> services; | ||
private final Map<Integer, IInterceptor> interceptors; | ||
|
||
public DocumentModel(Map<String, CardMeta> routes, Map<Class<? extends IService>, ServiceMeta> services, Map<Integer, IInterceptor> interceptors) { | ||
this.routes = routes; | ||
this.services = services; | ||
this.interceptors = interceptors; | ||
} | ||
|
||
public Map<String, CardMeta> getRoutes() { | ||
return routes; | ||
} | ||
|
||
public Map<Class<? extends IService>, ServiceMeta> getServices() { | ||
return services; | ||
} | ||
|
||
public Map<Integer, IInterceptor> getInterceptors() { | ||
return interceptors; | ||
} | ||
|
||
} |
Oops, something went wrong.