Skip to content

Commit

Permalink
some doc
Browse files Browse the repository at this point in the history
  • Loading branch information
kings1990 committed Jan 7, 2024
1 parent 10ff72d commit 2d2d3cd
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default defineUserConfig({
],
[
"script",
{ src: "//at.alicdn.com/t/c/font_2601581_d17fm4nxa97.js", async: true },
{ src: "//at.alicdn.com/t/c/font_2601581_t3nhtojpu4l.js", async: true },
],
// ["script", { src: "/js/baidu.js" ,"async":true}],
["script", { src: "/js/gtag.js", async: true }],
Expand Down
5 changes: 5 additions & 0 deletions docs/en/guide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ Way 3: Add `@fastRequestParseIgnore` in comment
private String someIgnoreField;
```

Way 4: Ignore field name
![ignoreFiled](/img/2024.1.1/ignoreFiled_en.png)

Only need to add field names in the configuration to ignore target fields in the entity class.

## S: Quick locate

After getting the focus of the window or pop-up box, enter the letters to position, then use the `` arrow or the `` arrow for jump position
Expand Down
3 changes: 2 additions & 1 deletion docs/en/guide/features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ The icon in the document corresponds to the button icon in the plugin
- [<ColorIcon icon="restfulFastRequest" /> Project-level domain quick config](./projectLevelDomainConfig.md)
- [<ColorIcon icon="restfulFastRequest" /> API list preview](./apiPreview.md)
- [<ColorIcon icon="class" /> Api comment preview](./apiCommentPreview.md)

- [<ColorIcon icon="field_dark" /> Parse strategy](./parseStrategy.md)
-
## Script

- [<ColorIcon icon="scriptNew" /> Script](./script.md)
Expand Down
29 changes: 29 additions & 0 deletions docs/en/guide/features/parseStrategy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Parse strategy
## Data mapping
[Learn more](../getstarted/dataMapping.md)

## How to ignore the field
Way 1: Use one of the following 2 annotations.

```
com.fasterxml.jackson.annotation.JsonIgnore
com.alibaba.fastjson.annotation.JSONField(serialize = false)
```

Way 2: Add the `static` modifier to the field.

Way 3: Add `@fastRequestParseIgnore` in comment

```java
/**
* xxx description
* @fastRequestParseIgnore
*/
private String someIgnoreField;
```

Way 4: Ignore field name
![ignoreFiled](/img/2024.1.1/ignoreFiled_en.png)

Only need to add field names in the configuration to ignore target fields in the entity class.
7 changes: 6 additions & 1 deletion docs/guide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ icon: faq

## S: 解析如何忽略某个字段

方式 1: 使用如下 2 种注解中的一种
方式 1: 给字段使用如下 2 种注解中的一种

```
com.fasterxml.jackson.annotation.JsonIgnore
Expand All @@ -75,6 +75,11 @@ com.alibaba.fastjson.annotation.JSONField(serialize = false)
*/
private String someIgnoreField ;
```
方式 4: 忽略字段名解析配置

![ignoreFiled](/img/2024.1.1/ignoreFiled.png)

只需要在配置中增加字段名,即可将实体类中的特定字段忽略生成

## S: 快速定位

Expand Down
1 change: 1 addition & 0 deletions docs/guide/features/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ icon: featuresNew
- [<ColorIcon icon="restfulFastRequest" /> 项目域名快速配置](./projectLevelDomainConfig.md)
- [<ColorIcon icon="restfulFastRequest" /> API 一览表预览](./apiPreview.md)
- [<ColorIcon icon="class" /> Api 注释预览](./apiCommentPreview.md)
- [<ColorIcon icon="field_dark" /> 解析策略](./parseStrategy.md)

## Script

Expand Down
33 changes: 33 additions & 0 deletions docs/guide/features/parseStrategy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 字段解析
## 类型映射
[了解详情](../getstarted/dataMapping.md)

## 忽略字段
方式 1: 给字段使用如下 2 种注解中的一种

```
com.fasterxml.jackson.annotation.JsonIgnore
com.alibaba.fastjson.annotation.JSONField(serialize = false)
```

方式 2: 给字段增加 `static` 修饰符

方式 3:注释上加@fastRequestParseIgnore

```java
/**
* xxx description
* @fastRequestParseIgnore
*/
private String someIgnoreField ;
```
方式 4: 忽略字段名解析配置

![ignoreFiled](/img/2024.1.1/ignoreFiled.png)

只需要在配置中增加字段名,即可将实体类中的特定字段忽略生成




0 comments on commit 2d2d3cd

Please sign in to comment.