Skip to content

Commit a3722bb

Browse files
committed
gitbook zh success
1 parent 7d74bbc commit a3722bb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/zh/annotation/group-annotation.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
---
66

7-
### 🧠 分组原理说明
7+
### 分组原理说明
88

99
- 使用 `#[Groups(...)]` 注解可将属性归类到一个或多个分组中。
1010
- 支持:
@@ -14,7 +14,7 @@
1414

1515
---
1616

17-
### 基本示例
17+
### 基本示例
1818

1919
```php
2020
use Astral\Serialize\Attributes\Groups;
@@ -47,7 +47,7 @@ class User extends Serialize {
4747
}
4848
```
4949

50-
### 按分组接收
50+
### 按分组接收
5151

5252
```php
5353
// 使用 create 分组创建用户,只接受 group=create 的字段
@@ -71,7 +71,7 @@ $user->toArray();
7171
*/
7272
```
7373

74-
### 按分组输出
74+
### 按分组输出
7575

7676
```php
7777
$user = User::from([
@@ -121,7 +121,7 @@ $user->withGroups(['detail', 'other'])->toArray();
121121
*/
122122
```
123123

124-
### 嵌套对象的分组
124+
### 嵌套对象的分组
125125

126126
```php
127127
class ComplexUser extends Serialize {

0 commit comments

Comments
 (0)