Commit Graph

42 Commits (2ee43b41b88b9d1a7477e45a588a0b1e3fcf890e)

Author SHA1 Message Date
chowyu12 c4f8eca459
Feat update rootpkg (#2718)
* add go-grpc_opt and go_opt for grpc new command

* feat: remove log when disable log

* feat: remove repeat code

Co-authored-by: zhouyy <zhouyy@ickey.cn>
2 years ago
anqiansong 9c448c64ef
Update api template (#2172) 2 years ago
杨圆建 bc85eaa9b1
fix: goctl genhandler duplicate rest/httpx & goctl genhandler template support custom import httpx package (#2152) 2 years ago
Kevin Wan 1c09db6d5d
chore: coding style (#2120) 2 years ago
Kevin Wan e0e3f97c7c
chore: refactor (#2087) 2 years ago
taobig 6a2d6786c6
remove legacy code (#2086) 2 years ago
taobig bfd0869ee2
remove legacy code (#2084) 2 years ago
Kevin Wan 555c4ecd1a
fix: quickstart wrong package when go.mod exists in parent dir (#2048)
* chore: fix typo

* fix: quickstart in dir with go.mod

* fix: runner failed

* chore: refine code

* chore: simplify quickstart mono
2 years ago
Kevin Wan 9fe868ade9
chore: remove legacy code (#1766) 3 years ago
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 a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 3 years ago
anqiansong 89ce5e492b
refactor file|path (#1409)
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 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
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
kingxt 546fcd8bab
fix #736 (#738)
* optimize performance

* rename

* rename

* revert
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 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
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 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
kingxt 12327fa07d
break generator when happen error (#192)
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
Keson f5f873c6bd
api handler generate incompletely while has no request (#158)
* fix: api handler generate incompletely while has no request

* fix: api handler generate incompletely while has no request

* add handler generate test
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
miaogaolin 9a57993e83
fix goctl api (#71) 4 years ago
kevin 6c4a4be5d2 update shorturl doc 4 years ago
kevin a987d12237 sort imports on api generation 4 years ago
kevin 9e14820698 fix golint warnings 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 44290aa4d6 refactor 4 years ago
kim cf8e0a118f refactor ngin to rest 4 years ago
kim 121323b8c3 goctl added 4 years ago