Skip to content

Commit

Permalink
修复xml定义中将table的value属性写成value_type的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
pirunxi committed Apr 12, 2024
1 parent 6074592 commit 57aa932
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/manual/defaultschemacollector.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ import语法为:
<var name="desc" type="string"/>
</bean>

<table name="TbItem" value_type="Item" input="item.xlsx"/>
<table name="TbItem2" value_type="Item2" input="item2.xlsx"/>
<table name="TbItem" value="Item" input="item.xlsx"/>
<table name="TbItem2" value="Item2" input="item2.xlsx"/>

<refgroup name="item.TbItem,item.TbItem2"/>

Expand All @@ -171,7 +171,7 @@ import语法为:
<var name="id" type="int"/>
<var name="count" type="int"/>
</bean>
<table name="TbSubItem" value_type="SubModuleType" input="submodule.xlsx"/>
<table name="TbSubItem" value="SubModuleType" input="submodule.xlsx"/>
</module>


Expand Down
2 changes: 1 addition & 1 deletion docs/manual/typemapper.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ name为'type'的option项与enum完全相同,配置了目标类型。由于bea
## 生成类型映射后的代码

对于不同的target,即使是同一种语言,前后端不一定使用相同的类型映射。例如对于vector3,前端可能想映射到UnityEngine.Vector3,而
后面期望直接使用默认生成的类型或者映射到System.Numerics.Vector3。因此需要有机制可以区分这种情况。
后端期望直接使用默认生成的类型或者映射到System.Numerics.Vector3。因此需要有机制可以区分这种情况。

目前使用 mapper的target和codeTarget参数组合来表达映射需求。当 命令行的`-t $target`参数与`-c $codeTarget`参数分别与mapper的target
及codeTarget的值匹配时,表示需要执行当前mapper指定的映射。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ A typical xml definition file is as follows:
<var name="desc" type="string"/>
</bean>

<table name="TbItem" value_type="Item" input="item.xlsx"/>
<table name="TbItem2" value_type="Item2" input="item2.xlsx"/>
<table name="TbItem" value="Item" input="item.xlsx"/>
<table name="TbItem2" value="Item2" input="item2.xlsx"/>

<refgroup name="item.TbItem,item.TbItem2"/>

Expand All @@ -165,7 +165,7 @@ A typical xml definition file is as follows:
<var name="id" type="int"/>
<var name="count" type="int"/>
</bean>
<table name="TbSubItem" value_type="SubModuleType" input="submodule.xlsx"/>
<table name="TbSubItem" value="SubModuleType" input="submodule.xlsx"/>
</module>


Expand Down

0 comments on commit 57aa932

Please sign in to comment.