Xiaoju Jiang
321dc2d410
Added support for setting the parameter size accepted by the interface and custom timeout and maxbytes in API file ( #1713 )
...
* Added support for setting the parameter size accepted by the interface
* support custom timeout and maxbytes in API file
* support timeout used unit
* remove goctl maxBytes
3 years ago
Fyn
500bd87c85
fix(goctl): api format with reader input ( #1722 )
...
resolves #1721
3 years ago
ronething-bot
18916b5189
[fix] typo ( #1655 )
3 years ago
ronething-bot
56e1ecf2f3
fix: typo ( #1646 )
3 years ago
anqiansong
cc9d16f505
fix: Update unix-like path regex ( #1637 )
...
* Revert import value regex
* Update linux path regex
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
chensy
c55694d957
Support for referencing types in different API files using format ( #1630 )
3 years ago
Ziyi Zhang
209ffb934b
fix(goctl): kotlin code generation ( #1632 )
...
Signed-off-by: Ziyi Zhang <soasurs@gmail.com>
3 years ago
Fyn
365c569d7c
fix(goctl): dart gen user defined struct array ( #1620 )
3 years ago
anqiansong
68a81fea8a
Fix #1609 ( #1617 )
3 years ago
Fyn
0c35f39a7d
fix: fix(gctl): apiparser_parser auto format ( #1607 )
3 years ago
Fyn
6a66dde0a1
feat(goctl): api dart support flutter v2 ( #1603 )
...
0. support null-safety code gen
1. supports -legacy flag for legacy code gen
2. supports -hostname flag for server hostname
3. use dart official format
4. fix some some bugs
Resolves : #1602
3 years ago
Kevin Wan
f15a4f9188
chore: update go-zero to v1.3.1 in goctl ( #1599 )
3 years ago
Fyn
fba6543b23
fix: goctl api dart support `form` tag ( #1596 )
3 years ago
Fyn
db949e40f1
feat: supports `importValue` for more path formats ( #1569 )
...
`importValueRegex` now can match more path formats
Resolves : #1568
3 years ago
Kevin Wan
e0454138e0
update goctl to go 1.16 for io/fs usage ( #1571 )
...
* update goctl to go 1.16 for io/fs usage
* feat: support pg serial type for auto_increment (#1563 )
* add correct example for pg's url
* 🐞 fix: merge
* 🐞 fix: pg default port
* ✨ feat: support serial type
Co-authored-by: kurimi1 <d0n41df@gmail.com>
* chore: format code
Co-authored-by: toutou_o <33993460+kurimi1@users.noreply.github.com>
Co-authored-by: kurimi1 <d0n41df@gmail.com>
3 years ago
Kevin Wan
aa29036cb3
feat: support ctx in sql model generation ( #1551 )
3 years ago
Kevin Wan
607bae27fa
feat: support ctx in sqlx/sqlc, listed in ROADMAP ( #1535 )
...
* feat: support ctx in sqlx/sqlc
* chore: update roadmap
* fix: context.Canceled should be acceptable
* use %w to wrap errors
* chore: remove unused vars
3 years ago
mlr3000
50b1928502
chore:use struct pointer ( #1538 )
3 years ago
Kevin Wan
6deb80625d
fix issue of default migrate version ( #1536 )
...
* fix issue of default migrate version
* chore: update console colors
3 years ago
Kevin Wan
84ddc660c4
chore: goctl format issue ( #1531 )
3 years ago
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
3 years ago
Kevin Wan
c1d2634427
chore: update go version for goctl ( #1484 )
3 years ago
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
3 years ago
anqiansong
cdf7ec213c
fix #1468 ( #1478 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
df0f8ed59e
Fix/issue#1289 ( #1460 )
...
* fix #1289
* Add unit test case
* fix `jwtTransKey`
* fix `jwtTransKey`
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
c903966fc7
patch: save missing templates to disk ( #1463 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
9b592b3dee
Feature rpc protoc ( #1251 )
...
* code generation by protoc
* generate pb by protoc direct
* support: grpc code generation by protoc directly
* format code
* check --go_out & --go-grpc_out
* fix typo
* Update version
* fix typo
* optimize: remove deprecated unit test
* format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
3 years ago
Kevin Wan
e267d94ee1
chore: update go-zero to v1.2.5 ( #1410 )
3 years ago
anqiansong
89ce5e492b
refactor file|path ( #1409 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
d6ff30a570
chore: fix golint issues ( #1396 )
3 years ago
Kevin Wan
62266d8f91
fix #1070 ( #1389 )
...
* fix #1070
* test: add more tests
3 years ago
anqiansong
b8ea16a88e
feat: Add --remote ( #1387 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
JiangYiJun
a67c118dcf
go-zero tools ,fix a func,api new can not choose style ( #1356 )
3 years ago
Kevin Wan
1becaeb7be
chore: refactor ( #1331 )
3 years ago
Kevin Wan
490ef13822
style: format code ( #1322 )
3 years ago
anqiansong
1b14de2ff9
fix : #1318 ( #1321 )
...
* fix #1318
* fix #1318
* remove never used code
* fix unit tes
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
0240fa131a
chore: rename service context from ctx to svcCtx ( #1299 )
3 years ago
Kevin Wan
543d590710
fixes #987 ( #1283 )
...
* fixes #987
* chore: fix test failure
* chore: add comments
3 years ago
anqiansong
f1d70eb6b2
Feature api root path ( #1261 )
3 years ago
Kevin Wan
86f9f63b46
Cli ( #1272 )
...
* Fix issue 1260 (#1262 )
* Fix #1238 (#1266 )
* docs: update readme to use goctl@cli (#1255 )
* chore: update goctl version
* style: coding style
* docs: update readme to use goctl@cli
* fix #1238
* format code
* format code
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
Co-authored-by: anqiansong <anqiansong@bytedance.com>
Co-authored-by: anqiansong <anqiansong@gmail.com>
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
c28e01fed3
feat: support CORS by using rest.WithCors(...) ( #1212 )
...
* feat: support CORS by using rest.WithCors(...)
* chore: add comments
* refactor: lowercase unexported methods
* ci: fix lint errors
3 years ago
Kevin Wan
4d22b0c497
feat: ignore rest.WithPrefix on empty prefix ( #1208 )
3 years ago
anqiansong
01786c5e63
Generate route with prefix ( #1200 )
...
* Generate route with prefix
* Update api convert
* Remove TrimSpace
* Update path join
* Format code
* Format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
b76c7ae55d
chore: remove semicolon for routes of services in api files ( #1195 )
3 years ago
anqiansong
a944a7fd7e
Mark deprecated syntax ( #1148 )
3 years ago
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
3 years ago
z-micro
80e3407be1
fix bug: generating dart code error ( #1090 )
3 years ago
Amor
41c980f00c
update goctl api ( #1052 )
...
* update goctl api
* add LoadTemplate
* update new api template
* update
3 years ago
Kevin Wan
2e12cd2c99
coding style ( #1083 )
3 years ago
anqiansong
9a724fe907
Add MustTempDir ( #1069 )
3 years ago
anqiansong
7fb5bab26b
fix #1058 ( #1064 )
3 years ago
Jerry Liang
5c6a3132eb
fix typo parse.go error message ( #1041 )
3 years ago
Kevin Wan
bdec5f2349
use sdktrace instead of trace for opentelemetry to avoid conflicts ( #1005 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
3 years ago
shenbaise9527
bc92b57bdb
api文件中使用group时生成的handler和logic的包名应该为group的名字 ( #545 )
...
* api文件中使用group时生成的handler和logic的包名应该为group的名字
* Update genhandlers.go
fix errors.
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
3 years ago
neosu
d8905b9e9e
add api template file ( #1003 )
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
Vee Zhang
c26c187e11
remote handler blank line when .HasRequest is false ( #986 )
3 years ago
anqiansong
189721da16
Fix issues ( #931 )
...
* fix #929
* fix #925
* add test case
* update model README
* fix #929
* fix #929
* fix #929
* refactor dir
* Adding todo comments
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan
00c5734021
format coding style ( #905 )
3 years ago
lovelly
33f87cf1f0
带下划线的项目,配置文件名字错误。 ( #733 )
3 years ago
Kevin Wan
1fb356f328
refactor goctl ( #902 )
3 years ago
_ksco
cc264dcf55
refactor ( #878 )
...
* refactor(tools ): refactor cod
Improve code readability and performance
* fix(tools ): fix len bug
Co-authored-by: ksco <hyang@33.cn>
3 years ago
anqiansong
9f4a882a1b
fix issue #831 ( #850 )
...
* fix issue #831
* fix typo
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
kingxt
546fcd8bab
fix #736 ( #738 )
...
* optimize performance
* rename
* rename
* revert
4 years ago
anqiansong
94417be018
Add document & comment for spec ( #703 )
...
* Add document & comment for spec
* remove duplicate field
* use alias
4 years ago
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
4 years ago
anqiansong
9f6a574f97
resolve #610 ( #684 )
4 years ago
anqiansong
d28ac35ff7
fix issue: https://github.com/zeromicro/goctl-swagger/issues/6 ( #680 )
4 years ago
anqiansong
df5ae9507f
replace antlr module ( #672 )
...
* replace antlr module
* refactor version of antlr
4 years ago
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
4 years ago
anqiansong
888551627c
optimize code ( #579 )
...
* optimize code
* optimize returns & unit test
4 years ago
anqiansong
60c7edf8f8
fix spelling ( #551 )
4 years ago
kingxt
1e4e5a02b2
rename ( #543 )
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
kingxt
f14ab70035
Code optimized ( #474 )
...
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
4 years ago
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
4 years ago
Kevin Wan
54414db91d
fix golint issues, exported doc ( #451 )
4 years ago
Kevin Wan
9b0625bb83
fix golint issues ( #450 )
4 years ago
kingxt
2b07f22672
optimize code ( #417 )
...
* optimize code
* optimize code
* optimize code
* optimize code
4 years ago
kingxt
4db20677f7
optimized ( #392 )
4 years ago
kingxt
7f49bd8a31
code optimized ( #382 )
4 years ago
kingxt
9cd2015661
fix inner type generate error ( #377 )
...
* fix point type bug
* optimized
* fix inner type error
4 years ago
kingxt
cf3a1020b0
Java optimized ( #376 )
...
* optiimzed java gen
* optiimzed java gen
* fix
4 years ago
kingxt
ee19fb736b
feature: refactor api parse to g4 ( #365 )
...
* feature: refactor api parse to g4
* new g4 parser
* add CHANGE_LOG.MD
* refactor
* fix byte bug
* refactor
* optimized
* optimized
* revert
* update readme.md
* update readme.md
* update readme.md
* update readme.md
* remove no need
* fix java gen
* add upgrade
* resolve confilits
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
Kevin Wan
8774d72ddb
remove duplicated code in goctl ( #369 )
4 years ago
HarryWang29
e3fcdbf040
fix return in for ( #367 )
...
Co-authored-by: HarryWang29 <wrz890829@gmail.com>
4 years ago
kingxt
12e235efb0
optimized goctl format ( #336 )
...
* fix format
* refactor
* refactor
* optimized
* refactor
* refactor
* refactor
* add js path prefix
4 years ago
kingxt
25cab2f273
Java ( #327 )
...
* add g4 file
* new define api by g4
* reactor parser to g4gen
* add syntax parser & test
* add syntax parser & test
* add syntax parser & test
* update g4 file
* add import parse & test
* ractor AT lexer
* panic with error
* revert AT
* update g4 file
* update g4 file
* update g4 file
* optimize parser
* update g4 file
* parse info
* optimized java generator
* revert
* optimize java generator
* update java generator
* update java generator
* update java generator
* update java generator
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
Kevin Wan
da8f76e6bd
add category docker & kube ( #276 )
4 years ago
kingxt
67804a6bb2
optimized parse tag ( #256 )
4 years ago
Kevin Wan
7cd0463953
fix lint errors ( #249 )
...
* 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
* fix lint errors
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
Kevin Wan
f997aee3ba
optimize docker file generation, make docker build faster ( #244 )
...
* 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
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
348184904c
set default handler value ( #228 )
...
* set default value
* set default value
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
kevin
95a9dabf8b
format import
4 years ago
kingxt
e0afe0b4bb
optimize api new ( #216 )
4 years ago
kingxt
d6d8fc21d8
type should not define nested ( #212 )
...
* nest type should not supported
* nest type should not supported
* nest type should not supported
* nest type should not supported
* new test
* new test
4 years ago