Skip to content

Commit de49ff8

Browse files
committed
📝 Update Docs
1 parent 9a9c59d commit de49ff8

File tree

11 files changed

+56
-14
lines changed

11 files changed

+56
-14
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## [Unreleased]
66

7-
## [1.2.1] - 2023-07-22
7+
## [1.2.1] - 2023-07-25
88

99
### Added
1010

@@ -13,6 +13,7 @@
1313
### Fixed
1414

1515
- Fix GoFrame ORM unsupported syntax.
16+
- Fix Outdated stub in index Exception.
1617

1718
## [1.2.0] - 2023-07-15
1819

README-zh_CN.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,32 @@
3434

3535
## 使用
3636

37+
### 代码补全
38+
https://www.jetbrains.com/help/go/auto-completing-code.html#code-completion-for-functions
39+
3740
![guide.gif](assets%2Fguide.gif)
3841

42+
### 注解辅助
43+
有些写法此插件可能无法兼容,导致无法补全。你可以使用 @Model 或者 @Table 解决此问题。
44+
![annotation.gif](assets%2Fannotation.gif)
45+
46+
插件会扫描项目中所有Struct,建议设置扫描范围。
47+
48+
![setting.png](assets%2Fsetting.png)
49+
50+
### 实时模版
51+
52+
![live-template.gif](assets%2Flive-template.gif)
53+
54+
### SQL 转 Struct
55+
#### 粘贴方式
56+
![paste.gif](assets%2Fpaste.gif)
57+
58+
#### 菜单操作
59+
选中 SQL -> 点击编辑器右键菜单 -> Go ORM 助手工具箱 -> SQL 转 Struct
60+
61+
![manual-sql-to-struct.png](assets%2Fmanual-sql-to-struct.png)
62+
3963
## 安装
4064

4165
> 兼容范围:

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,34 @@ for writing ORM code. Supports: Gorm、Xorm、Beego、GoFrame, etc.<br/>⭐️ S
3232
- [More Supported](./SUPPORTED.md)
3333

3434
## Usage
35+
36+
### Code Completion
37+
https://www.jetbrains.com/help/go/auto-completing-code.html#code-completion-for-functions
38+
3539
![guide.gif](assets%2Fguide.gif)
3640

41+
### Annotation
42+
If the plugin is not compatible with your syntax, you can use the @Model or @Table helper.
43+
44+
![annotation.gif](assets%2Fannotation.gif)
45+
46+
The plugin will scan the Structs in your project. It is recommended to set the scanning scope.
47+
48+
![setting.png](assets%2Fsetting.png)
49+
50+
### Live Template
51+
52+
![live-template.gif](assets%2Flive-template.gif)
53+
54+
### SQL to Struct
55+
#### Paste
56+
![paste.gif](assets%2Fpaste.gif)
57+
58+
#### Menu Action
59+
Selected SQL -> Editor Popup Menu -> Go ORM Helper Tool -> SQL Convert Struct
60+
61+
![manual-sql-to-struct.png](assets%2Fmanual-sql-to-struct.png)
62+
3763
<!-- Plugin description end -->
3864

3965
## Installation

assets/annotation.gif

1.94 MB
Loading

assets/live-template.gif

978 KB
Loading

assets/manual-sql-to-struct.png

186 KB
Loading

assets/paste.gif

607 KB
Loading

assets/setting.png

215 KB
Loading

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginGroup = com.github.maiqingqiang.goormhelper
44
pluginName = Go ORM Helper
55
pluginRepositoryUrl = https://github.com/maiqingqiang/go-orm-helper
66
# SemVer format -> https://semver.org
7-
pluginVersion = 1.2.1-SNAPSHOT-20230722
7+
pluginVersion = 1.2.1-SNAPSHOT-20230725
88

99
# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
1010
pluginSinceBuild = 222

src/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@
55
<vendor>John Mai</vendor>
66

77
<depends>com.intellij.modules.platform</depends>
8-
<!-- <depends>com.intellij.modules.go</depends>-->
98
<depends>org.jetbrains.plugins.go</depends>
109

1110
<resource-bundle>messages.GoORMHelperBundle</resource-bundle>
1211

1312
<extensions defaultExtensionNs="com.intellij">
14-
15-
<!-- <liveTemplateContext implementation="com.github.maiqingqiang.goormhelper.codeInsights.template.GoORMTemplateContextType"/>-->
16-
<!-- <liveTemplateContext implementation="com.goide.editor.template.GoLiveTemplateContextType$Tag"/>-->
1713
<defaultLiveTemplates file="liveTemplates/Go ORM Tags.xml"/>
1814

19-
2015
<projectService serviceImplementation="com.github.maiqingqiang.goormhelper.services.GoORMHelperCacheManager"/>
2116
<projectService
2217
serviceImplementation="com.github.maiqingqiang.goormhelper.services.GoORMHelperProjectSettings"/>
@@ -33,12 +28,8 @@
3328

3429
<projectConfigurable
3530
parentId="tools"
36-
instance="com.github.maiqingqiang.goormhelper.ui.SettingConfigurable"
37-
displayName="Go ORM Helper"/>
38-
</extensions>
39-
40-
<extensions defaultExtensionNs="com.goide">
41-
31+
key="name"
32+
instance="com.github.maiqingqiang.goormhelper.ui.SettingConfigurable"/>
4233
</extensions>
4334

4435
<projectListeners>

0 commit comments

Comments
 (0)