[文档修改](dev): 完善文档
This commit is contained in:
parent
dc32cc7306
commit
6cb15da062
@ -1,9 +0,0 @@
|
|||||||
# ChangeLog
|
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file,ChangeLog 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)
|
|
||||||
|
|
26
README.md
26
README.md
@ -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` 模块
|
> 完整示例参考 `dict-trans-demo` 模块
|
||||||
|
Loading…
x
Reference in New Issue
Block a user