Skip to content

Commit f34e227

Browse files
committed
升级v2.5.3
- 支持Param、Returned字段参数为array类型时,可通过配置`childrenType`定义子参数类型 - 修正withoutField过滤参数的问题 - 优化crud数据表字段长度支持小数位输入
1 parent 2946c4e commit f34e227

File tree

2 files changed

+605
-595
lines changed

2 files changed

+605
-595
lines changed

src/annotation/ParamBase.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ abstract class ParamBase extends Annotation
3939
*/
4040
public $childrenDesc = 'children';
4141

42+
/**
43+
* 为array类型时指定子节点类型
44+
* @Enum({"string", "int", "boolean", "array", "object"})
45+
* @var string
46+
*/
47+
public $childrenType = '';
48+
4249
/**
4350
* 指定引入的字段
4451
* @var string

0 commit comments

Comments
 (0)