[文档修改](dev): 完善文档

This commit is contained in:
song_jx 2023-05-29 09:16:24 +08:00
parent dc32cc7306
commit 6cb15da062
2 changed files with 26 additions and 9 deletions

View File

@ -1,9 +0,0 @@
# ChangeLog
All notable changes to this project will be documented in this fileChangeLog information is generated by the [CommitMessage plugin](https://plugins.jetbrains.com/plugin/12256-commit-message-create)
## [v](https://git/compare/v...master)
## [0.1](https://git/compare/0.1...master)

View File

@ -470,6 +470,32 @@ public class People {
}
```
嵌套翻译示例:
```java
package com.aizuda.trans.demo.impl;
import com.aizuda.trans.entity.Result;
import com.aizuda.trans.service.UnWrapper;
import org.springframework.stereotype.Component;
/**
* 结果解包器
*
* @author nn200433
* @date 2023-05-25 025 14:48:43
*/
@Component
public class ResultUnWrapper<T> implements UnWrapper<Result<T>> {
@Override
public Object unWrap(Result<T> source) {
return source.getData();
}
}
```
## 演示
> 完整示例参考 `dict-trans-demo` 模块