anqiansong
68a81fea8a
Fix #1609 ( #1617 )
2022-03-05 22:52:32 +08:00
Fyn
0c35f39a7d
fix: fix(gctl): apiparser_parser auto format ( #1607 )
2022-03-04 15:36:20 +08:00
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
2022-03-04 15:34:13 +08:00
Kevin Wan
f15a4f9188
chore: update go-zero to v1.3.1 in goctl ( #1599 )
2022-03-01 20:56:57 +08:00
Fyn
fba6543b23
fix: goctl api dart support form
tag ( #1596 )
2022-03-01 16:17:37 +08:00
Fyn
db949e40f1
feat: supports importValue
for more path formats ( #1569 )
...
`importValueRegex` now can match more path formats
Resolves : #1568
2022-02-25 11:16:57 +08:00
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>
2022-02-24 13:58:53 +08:00
Kevin Wan
aa29036cb3
feat: support ctx in sql model generation ( #1551 )
2022-02-17 10:28:55 +08:00
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
2022-02-16 19:31:43 +08:00
mlr3000
50b1928502
chore:use struct pointer ( #1538 )
2022-02-15 11:34:48 +08:00
Kevin Wan
6deb80625d
fix issue of default migrate version ( #1536 )
...
* fix issue of default migrate version
* chore: update console colors
2022-02-14 23:09:32 +08:00
Kevin Wan
84ddc660c4
chore: goctl format issue ( #1531 )
2022-02-13 13:17:19 +08:00
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
2022-02-09 17:22:52 +08:00
Kevin Wan
c1d2634427
chore: update go version for goctl ( #1484 )
2022-01-26 14:27:43 +08:00
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
2022-01-25 23:15:07 +08:00
anqiansong
cdf7ec213c
fix #1468 ( #1478 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-24 22:23:20 +08:00
anqiansong
df0f8ed59e
Fix/issue#1289 ( #1460 )
...
* fix #1289
* Add unit test case
* fix `jwtTransKey`
* fix `jwtTransKey`
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-18 11:52:30 +08:00
anqiansong
c903966fc7
patch: save missing templates to disk ( #1463 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-18 10:45:05 +08:00
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>
2022-01-11 20:34:25 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
2022-01-04 15:51:32 +08:00
Kevin Wan
e267d94ee1
chore: update go-zero to v1.2.5 ( #1410 )
2022-01-03 21:54:53 +08:00
anqiansong
89ce5e492b
refactor file|path ( #1409 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-03 21:32:40 +08:00
Kevin Wan
d6ff30a570
chore: fix golint issues ( #1396 )
2021-12-30 17:44:15 +08:00
Kevin Wan
62266d8f91
fix #1070 ( #1389 )
...
* fix #1070
* test: add more tests
2021-12-29 21:34:28 +08:00
anqiansong
b8ea16a88e
feat: Add --remote ( #1387 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-12-29 18:16:42 +08:00
JiangYiJun
a67c118dcf
go-zero tools ,fix a func,api new can not choose style ( #1356 )
2021-12-23 10:28:46 +08:00
Kevin Wan
1becaeb7be
chore: refactor ( #1331 )
2021-12-15 20:44:23 +08:00
Kevin Wan
490ef13822
style: format code ( #1322 )
2021-12-14 11:29:44 +08:00
anqiansong
1b14de2ff9
fix : #1318 ( #1321 )
...
* fix #1318
* fix #1318
* remove never used code
* fix unit tes
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-12-13 22:55:11 +08:00
Kevin Wan
0240fa131a
chore: rename service context from ctx to svcCtx ( #1299 )
2021-12-05 22:10:47 +08:00
Kevin Wan
543d590710
fixes #987 ( #1283 )
...
* fixes #987
* chore: fix test failure
* chore: add comments
2021-12-01 17:45:48 +08:00
anqiansong
f1d70eb6b2
Feature api root path ( #1261 )
2021-12-01 10:09:07 +08:00
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>
2021-11-25 11:08:49 +08:00
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
2021-11-07 22:42:40 +08:00
Kevin Wan
4d22b0c497
feat: ignore rest.WithPrefix on empty prefix ( #1208 )
2021-11-06 21:31:35 +08:00
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>
2021-11-03 20:57:03 +08:00
Kevin Wan
b76c7ae55d
chore: remove semicolon for routes of services in api files ( #1195 )
2021-11-01 20:37:05 +08:00
anqiansong
a944a7fd7e
Mark deprecated syntax ( #1148 )
2021-10-20 10:58:25 +08:00
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
2021-09-29 13:09:20 +08:00
z-micro
80e3407be1
fix bug: generating dart code error ( #1090 )
2021-09-28 09:01:27 +08:00
Amor
41c980f00c
update goctl api ( #1052 )
...
* update goctl api
* add LoadTemplate
* update new api template
* update
2021-09-23 14:31:11 +08:00
Kevin Wan
2e12cd2c99
coding style ( #1083 )
2021-09-23 11:19:57 +08:00
anqiansong
9a724fe907
Add MustTempDir ( #1069 )
2021-09-21 10:13:43 +08:00
anqiansong
7fb5bab26b
fix #1058 ( #1064 )
2021-09-19 08:53:41 +08:00
Jerry Liang
5c6a3132eb
fix typo parse.go error message ( #1041 )
2021-09-14 10:26:44 +08:00
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
2021-09-07 12:02:41 +08:00
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>
2021-09-07 11:03:04 +08:00
neosu
d8905b9e9e
add api template file ( #1003 )
2021-09-07 10:16:10 +08:00
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>
2021-09-05 21:57:44 +08:00
Vee Zhang
c26c187e11
remote handler blank line when .HasRequest is false ( #986 )
2021-09-03 07:25:04 +08:00
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>
2021-08-19 22:47:45 +08:00
Kevin Wan
00c5734021
format coding style ( #905 )
2021-08-12 14:58:37 +08:00
lovelly
33f87cf1f0
带下划线的项目,配置文件名字错误。 ( #733 )
2021-08-12 14:55:39 +08:00
Kevin Wan
1fb356f328
refactor goctl ( #902 )
2021-08-11 18:04:42 +08:00
_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>
2021-08-11 17:33:18 +08:00
anqiansong
9f4a882a1b
fix issue #831 ( #850 )
...
* fix issue #831
* fix typo
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-07-28 16:32:15 +08:00
kingxt
546fcd8bab
fix #736 ( #738 )
...
* optimize performance
* rename
* rename
* revert
2021-05-29 23:01:02 +08:00
anqiansong
94417be018
Add document & comment for spec ( #703 )
...
* Add document & comment for spec
* remove duplicate field
* use alias
2021-05-21 10:40:59 +08:00
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2021-05-18 14:43:09 +08:00
anqiansong
9f6a574f97
resolve #610 ( #684 )
2021-05-13 18:42:05 +08:00
anqiansong
d28ac35ff7
fix issue: https://github.com/zeromicro/goctl-swagger/issues/6 ( #680 )
2021-05-10 19:57:12 +08:00
anqiansong
df5ae9507f
replace antlr module ( #672 )
...
* replace antlr module
* refactor version of antlr
2021-05-08 21:35:27 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
2021-04-15 19:49:17 +08:00
anqiansong
888551627c
optimize code ( #579 )
...
* optimize code
* optimize returns & unit test
2021-03-27 17:33:17 +08:00
anqiansong
60c7edf8f8
fix spelling ( #551 )
2021-03-08 18:23:12 +08:00
kingxt
1e4e5a02b2
rename ( #543 )
2021-03-04 17:13:07 +08:00
anqiansong
d894b88c3e
feature 1.1.5 ( #411 )
2021-03-01 17:29:07 +08:00
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>
2021-02-26 16:11:47 +08:00
kingxt
f98c9246b2
Code optimized ( #493 )
2021-02-20 19:50:03 +08:00
kingxt
f14ab70035
Code optimized ( #474 )
...
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
2021-02-18 15:08:20 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
2021-02-09 13:50:21 +08:00
Kevin Wan
54414db91d
fix golint issues, exported doc ( #451 )
2021-02-08 21:31:56 +08:00
Kevin Wan
9b0625bb83
fix golint issues ( #450 )
2021-02-08 17:08:40 +08:00
kingxt
2b07f22672
optimize code ( #417 )
...
* optimize code
* optimize code
* optimize code
* optimize code
2021-01-26 17:37:22 +08:00
kingxt
4db20677f7
optimized ( #392 )
2021-01-15 11:36:37 +08:00
kingxt
7f49bd8a31
code optimized ( #382 )
2021-01-13 16:37:33 +08:00
kingxt
9cd2015661
fix inner type generate error ( #377 )
...
* fix point type bug
* optimized
* fix inner type error
2021-01-13 11:54:53 +08:00
kingxt
cf3a1020b0
Java optimized ( #376 )
...
* optiimzed java gen
* optiimzed java gen
* fix
2021-01-12 14:14:49 +08:00
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>
2021-01-11 15:10:51 +08:00
Kevin Wan
8774d72ddb
remove duplicated code in goctl ( #369 )
2021-01-09 00:17:23 +08:00
HarryWang29
e3fcdbf040
fix return in for ( #367 )
...
Co-authored-by: HarryWang29 <wrz890829@gmail.com>
2021-01-08 22:47:27 +08:00
kingxt
12e235efb0
optimized goctl format ( #336 )
...
* fix format
* refactor
* refactor
* optimized
* refactor
* refactor
* refactor
* add js path prefix
2021-01-04 18:59:48 +08:00
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>
2020-12-29 17:50:41 +08:00
Kevin Wan
da8f76e6bd
add category docker & kube ( #276 )
2020-12-11 18:53:40 +08:00
kingxt
67804a6bb2
optimized parse tag ( #256 )
2020-12-09 11:16:38 +08:00
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>
2020-12-07 11:12:02 +08:00
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>
2020-12-05 21:48:09 +08:00
kingxt
348184904c
set default handler value ( #228 )
...
* set default value
* set default value
2020-11-26 11:57:02 +08:00
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>
2020-11-24 15:11:18 +08:00
kevin
95a9dabf8b
format import
2020-11-23 16:35:39 +08:00
kingxt
e0afe0b4bb
optimize api new ( #216 )
2020-11-19 16:48:48 +08:00
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
2020-11-17 18:08:55 +08:00
kingxt
a92f65580c
support type def without struct token ( #210 )
...
* add comment support
* add comment support
* 1. group support multi level folder
2. remove force flag
* bug fix
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* support type def without struct token
* support type def without struct token
* support type def without struct token
* support type def without struct token
* support type def without struct token
* support type def without struct token
* support type def without struct token
* optimized
* optimized
* optimized
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-17 15:25:13 +08:00
kingxt
88da8685dd
optimize parser ( #206 )
...
* add comment support
* add comment support
* 1. group support multi level folder
2. remove force flag
* bug fix
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* optimized parser
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-16 10:08:28 +08:00
kingxt
16bfb1b7be
refactor parser and remove deprecated code ( #204 )
...
* add comment support
* add comment support
* 1. group support multi level folder
2. remove force flag
* bug fix
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-13 23:01:19 +08:00
kingxt
ef4d4968d6
1. group support multi level folder 2. remove force flag ( #203 )
...
* add comment support
* add comment support
* 1. group support multi level folder
2. remove force flag
* bug fix
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-12 19:47:32 +08:00
kingxt
7b4a5e3ec6
api support for comment double slash // ( #201 )
...
* add comment support
* add comment support
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-12 16:57:28 +08:00
kingxt
3f389a55c2
format service and add test ( #197 )
...
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-09 17:41:07 +08:00
kingxt
f32c6a9b28
rewrite ( #194 )
...
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-09 10:06:45 +08:00
kingxt
12327fa07d
break generator when happen error ( #192 )
...
Co-authored-by: kim <xutao@xiaoheiban.cn>
2020-11-07 21:25:52 +08:00