Commit Graph

26 Commits (ffd2a786233da89bd18c990131ef9b02975d0f9c)

Author SHA1 Message Date
Kevin Wan faad6e27e3
feat: use go:embed to embed templates (#1756) 3 years ago
mlr3000 50b1928502
chore:use struct pointer (#1538) 3 years ago
Kevin Wan 4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl (#1481) 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 543d590710
fixes #987 (#1283)
* fixes #987

* chore: fix test failure

* chore: add comments
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
kingxt 546fcd8bab
fix #736 (#738)
* optimize performance

* rename

* rename

* revert
4 years ago
kingxt f98c9246b2
Code optimized (#493) 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
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 dfe6e88529 use goctl template to generate all kinds of templates 4 years ago
kevin f904710811 support api templates 4 years ago
kingxt e7d46aa6e2
refactor and rename folder to group (#106)
* 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 ()

* revert

* format api

* refactor and rename folder to group

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin 8dd93d59a0 refactor code 4 years ago
kevin d1129e3974 refactor 4 years ago
kevin fe3e70a60f update shorturl doc 4 years ago
kevin 36174ba5cc make svcCtx as a member for better code generation 4 years ago
kevin a987d12237 sort imports on api generation 4 years ago
kevin 33208e6ef6 return zero value instead of nil on generated logic 4 years ago
kingxt 73b61e09ed
fix format (#23)
* fir format

* fix bug

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin ba636187ce fix goctl path issue on windows 4 years ago
kevin 0a7e0cce77 update package reference 4 years ago
kim b1e8dd62da add runner 4 years ago
kim 121323b8c3 goctl added 4 years ago