-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -924,18 +924,19 @@ Flags: | |
|tinyblob |string| | ||
|ltree |[]byte| | ||
### 类型映射自定义 | ||
类型映射自定义只有试验版本才能使用,关于如何开启试验版本,请参考 <a href="docs/tutorials/cli/env" target="_blank">goctl env</a>,关于配置使用请参考 <a href="docs/tutorials/cli/config" target="_blank">goctl config</a> | ||
示例 1. 修改 decimal 为 decimal.Decimal 类型 | ||
1. 在需要生成 model 的工程中初始化配置 | ||
Check failure on line 934 in docs/tutorials/cli/model.md GitHub Actions / lint-markdownTrailing spaces
|
||
```bash | ||
$ goctl config init | ||
goctl.yaml generated in ~/workspace/go-zero/tools/goctl/goctl.yaml | ||
``` | ||
2. 修改类型映射关系 | ||
Check failure on line 940 in docs/tutorials/cli/model.md GitHub Actions / lint-markdownOrdered list item prefix
|
||
灰色底纹部分为自定义映射类型。 | ||
|