anqiansong
ded22e296e
revert changes
3 years ago
anqiansong
f0ed2370a3
fix #1014 ( #1018 )
...
* fix #1014
* remove unused code
* * optimize generate pb.go on Windows
* format code
* optimize console.go
* version rollback
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
96a35ecf1a
fix #1006 ( #1008 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
* use os.ModeSymlink instead of fs.ModeSymlink for backward compatibility
3 years ago
anqiansong
84d2b64e7c
optimize unit test ( #999 )
3 years ago
anqiansong
8829c31c0d
Feature goctl error wrap ( #995 )
...
* Add `Wrap` in file errorx.go
* Wrap error with `GoctlError`
* format code
* Refactor package `env` to `version`
* Refactor package `IsVersionGatherThan`
* fix typo
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
0325d8e92d
format code, and reorg imports ( #991 )
3 years ago
anqiansong
2125977281
Fix filepath ( #990 )
3 years ago
Kevin Wan
bf3ce16823
fix #820 ( #934 )
3 years ago
anqiansong
b2fea65faa
Optimize model naming ( #910 )
...
* add unit test
* fix #907
* format code
* format code
* format code
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan
f2612db4b1
add stringx.FirstN ( #914 )
3 years ago
anqiansong
dc43430812
optimize grpc generation env check ( #900 )
...
* optimize grpc generation env check
* optimize grpc generation env check
* format code
* fix postgresql data type convert error
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
市民233
0b0406f41a
fix: 解决golint 部分警告 ( #897 )
...
* feat: 解决goreportcard的警报
ps: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
* feat: 优化golint警告,将processFieldPrimitiveWithJsonNumber 改成 processFieldPrimitiveWithJSONNumber
unmarshaler.go:248:23: method processFieldPrimitiveWithJsonNumber should be processFieldPrimitiveWithJSONNumber
* feat: 添加 WithCanonicalKeyFunc 注释
* feat: 添加DisableStat的注释
* feat: 添加 RegisterGoctlHome 注释
* feat: 添加 PostgreSqlJoin 注释
* feat: 解决goline警告should not use basic type string as key in context.WithValue问题
* feat: 解决golint警告信息: should not use basic type string as key in context.WithValue
* fix: 定义自定义字段类型,导致go test fail 问题
* update: 恢复原有测试用例
* fix golint warning
3 years ago
anqiansong
9f4a882a1b
fix issue #831 ( #850 )
...
* fix issue #831
* fix typo
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
4 years ago
anqiansong
60c7edf8f8
fix spelling ( #551 )
4 years ago
anqiansong
d894b88c3e
feature 1.1.5 ( #411 )
4 years ago
kingxt
e6ef1fca12
Code optimized ( #523 )
...
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
* add more comment
* add comment
* add comment
* add comments for rpc tool
* add comments for model tool
* add comments for model tool
* add comments for model tool
* add comments for config tool
* add comments for config tool
* add comments
* add comments
* add comments
* add comments
* add comment
* remove rpc main head info
* add comment
* optimized
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
kingxt
f98c9246b2
Code optimized ( #493 )
4 years ago
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
4 years ago
Kevin Wan
c686c93fb5
fix dockerfile generation bug ( #277 )
4 years ago
Kevin Wan
5071736ab4
fmt code ( #270 )
4 years ago
Kevin Wan
65ee877236
refactor & format code ( #255 )
4 years ago
kingxt
cecd4b1b75
goctl add plugin support ( #243 )
...
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* remove no need
* add plugin support
* rename
* rename
* add plugin support
* refactor
* update plugin
* refactor
* refactor
* refactor
* update plugin
* newline
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
Kevin Wan
7a82cf80ce
support k8s deployment yaml generation ( #247 )
...
* simplify code, format makefile
* simplify code
* some optimize by kevwan and benying (#240 )
Co-authored-by: 杨志泉 <zhiquan.yang@yiducloud.cn>
* optimization (#241 )
* optimize docker file generation, make docker build faster
* support k8s deployment yaml generation
Co-authored-by: benying <31179034+benyingY@users.noreply.github.com>
Co-authored-by: 杨志泉 <zhiquan.yang@yiducloud.cn>
Co-authored-by: bittoy <bittoy@qq.com>
4 years ago
kingxt
b9ac51b6c3
feature: file namestyle ( #223 )
...
* add api filename style
* new feature: config.yaml
* optimize
* optimize logic generation
* check hanlder valid
* optimize
* reactor naming style
* optimize
* optimize test
* optimize gen middleware
* format
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
Keson
24fb29a356
patch model&rpc ( #207 )
...
* change column to read from information_schema
* reactor generate mode from datasource
* reactor generate mode from datasource
* add primary key check logic
* resolve rebase conflicts
* add naming style
* add filename test case
* resolve rebase conflicts
* reactor test
* add test case
* change shell script to makefile
* update rpc new
* update gen_test.go
* format code
* format code
* update test
* generates alias
4 years ago
Keson
e76f44a35b
reactor rpc ( #179 )
...
* reactor rpc generation
* update flag
* update command
* update command
* update unit test
* delete test file
* optimize code
* update doc
* update gen pb
* rename target dir
* update mysql data type convert rule
* add done flag
* optimize req/reply parameter
* optimize req/reply parameter
* remove waste code
* remove duplicate parameter
* format code
* format code
* optimize naming
* reactor rpcv2 to rpc
* remove new line
* format code
* rename underline to snake
* reactor getParentPackage
* remove debug log
* reactor background
4 years ago
kingxt
b776468e69
route support no request and response ( #178 )
...
* add more test and support no request and response
* fix slash when run on windows
* optimize test
4 years ago
Keson
41964f9d52
gozero template ( #147 )
...
* model/rpc generate code from template cache
* delete unused(deprecated) code
* support template init|update|clean|revert
* model: return the execute result for insert and update operation
* // deprecated: containsAny
* add template test
* add default buildVersion
* update build version
4 years ago
kevin
dfe6e88529
use goctl template to generate all kinds of templates
4 years ago
kevin
94645481b1
fix golint issues
4 years ago
kevin
f904710811
support api templates
4 years ago
Keson
7e61555d42
Gozero sqlgen patch ( #119 )
...
* merge upstream
* optimize insert logic
* reactor functions
4 years ago
Keson
0a9c427443
Goctl rpc patch ( #117 )
...
* remove mock generation
* add: proto project import
* update document
* remove mock generation
* add: proto project import
* update document
* remove NL
* update document
* optimize code
* add test
* add test
4 years ago
kingxt
8a470bb6ee
support return () syntax ( #101 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* update doc
* remove update
* remove no need
* remove no need
* goctl add jwt support
* goctl add jwt support
* goctl add jwt support
* goctl support import
* goctl support import
* support return ()
* support return ()
* remove pwd for windows not support
* revert
* remove no need
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
Keson
a5ce2c448e
fix bug: module parse error ( #97 )
4 years ago
Keson
17e6cfb7a9
quickly generating rpc demo service ( #60 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* add README.md
* format error
* reactor templatex.go
* update project.go & README.md
* add: quickly generate rpc service
4 years ago
kevin
0d151c17f8
update wechat image
4 years ago
miaogaolin
52990550fb
fix GOMOD env fetch bug ( #55 )
4 years ago
kingxt
4408767981
fix command run path bug ( #52 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* optimized go path logic
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt
1d12f20ff6
refactor ( #49 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* refactor gomod module logic
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt
2b815162f6
refactor ( #48 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* refactor gomod module logic
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt
1602f6ce81
refactor gomod logic ( #47 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* refactor gomod module logic
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt
33eb2936e8
fix: root path on windows bug ( #34 )
...
* rebase upstream
* rebase
* trim no need line
* trim no need line
* trim no need line
* fix bug on windows
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin
72132ce399
refine goctl rpc generator
4 years ago
Keson
db16115037
rpc service generation ( #26 )
...
* add execute files
* add protoc-osx
* add rpc generation
* add rpc generation
* add: rpc template generation
* update usage
* fixed env prepare for project in go path
* optimize gomod cache
* add README.md
* format error
* reactor templatex.go
* remove waste code
4 years ago
kingxt
38806e7237
fix config yaml gen ( #25 )
...
* optimized
* format
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
Keson
db83843558
gocctl model v20200819 ( #18 )
...
* rename snake、came method
* new: generate model from data source
* add change log md
* update model doc
* update doc
* beauty code
4 years ago
Keson
d21d770b5b
goctl model reactor ( #15 )
...
* reactor sql generation
* reactor sql generation
* add console & example
* optimize unit test & add document
* modify default config
* remove test file
* Revert "remove test file"
This reverts commit 81041f9e
* fix stringx.go & optimize example
* remove unused code
4 years ago
kevin
a13ab94748
remove unused method
4 years ago
kevin
ba636187ce
fix goctl path issue on windows
4 years ago
kevin
0a7e0cce77
update package reference
4 years ago
kim
121323b8c3
goctl added
4 years ago