feat: 主机配置动态初始化.

This commit is contained in:
lijiahangmax
2023-12-24 22:53:23 +08:00
parent 03c87b28d4
commit 5cf70595c0
11 changed files with 82 additions and 41 deletions

View File

@@ -19,7 +19,7 @@ public interface GenericsDataDefinition {
*
* @return class
*/
Class<? extends GenericsDataModel> getType();
Class<? extends GenericsDataModel> getModel();
/**
* 获取数据处理策略
@@ -49,7 +49,7 @@ public interface GenericsDataDefinition {
*/
@SuppressWarnings("unchecked")
default <Model extends GenericsDataModel> Model parse(String json) {
return (Model) JSON.parseObject(json, this.getType());
return (Model) JSON.parseObject(json, this.getModel());
}