Skip to content

Commit

Permalink
add IdConverter impl-class diagram (#37)
Browse files Browse the repository at this point in the history
* fix demo not runnable by correct application.yaml

* ignore type check while read integer field.

* update CosIdIntervalShardingAlgorithm type name.

* add test for idConverter. and add some docs.

* add IdConverter-impl-class diagram.
  • Loading branch information
RocherKong authored Mar 20, 2022
1 parent bd66715 commit 8346196
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions document/docs/guide/api/id-converter.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ public interface IdConverter {
long asLong(String idString);
}
```
## IdConverter implementation class diagram

<p align="center">
<img :src="$withBase('/assets/design/IdConverter-impl-class.png')" alt="IdGenerator implementation class diagram"/>
</p>

## ToStringIdConverter
> String 转换器,用于将 `long` 转换成String 或者将 String 转换成 long 类型
Expand Down

0 comments on commit 8346196

Please sign in to comment.