diff --git a/README.md b/README.md index c69bb47..2e98294 100644 --- a/README.md +++ b/README.md @@ -66,12 +66,14 @@ Add [smart-doc-maven-plugin](https://github.com/smart-doc-group/smart-doc-maven- + com.google.guava:guava + com.alibaba:fastjson diff --git a/README_CN.md b/README_CN.md index 3bfb5de..0740e1f 100644 --- a/README_CN.md +++ b/README_CN.md @@ -77,6 +77,7 @@ smart-doc官方目前已经开发完成[Maven插件](https://gitee.com/smart-doc + com.alibaba:fastjson diff --git a/src/main/java/com/power/doc/utils/DocUtil.java b/src/main/java/com/power/doc/utils/DocUtil.java index c657b32..501ae13 100644 --- a/src/main/java/com/power/doc/utils/DocUtil.java +++ b/src/main/java/com/power/doc/utils/DocUtil.java @@ -55,6 +55,7 @@ public class DocUtil { static { fieldValue.put("uuid-string", UUID.randomUUID().toString()); + fieldValue.put("traceid-string",UUID.randomUUID().toString()); fieldValue.put("id-string", String.valueOf(RandomUtil.randomInt(1, 200))); fieldValue.put("nickname-string", enFaker.name().username()); fieldValue.put("hostname-string", faker.internet().ipV4Address()); @@ -62,6 +63,8 @@ public class DocUtil { fieldValue.put("author-string", faker.book().author()); fieldValue.put("url-string", faker.internet().url()); fieldValue.put("username-string", faker.name().username()); + fieldValue.put("index-int","1"); + fieldValue.put("index-integer","1"); fieldValue.put("page-int", "1"); fieldValue.put("page-integer", "1"); fieldValue.put("age-int", String.valueOf(RandomUtil.randomInt(0, 70)));