Commit Graph

212 Commits (b321622c95df21041ef7d8e5e9fb51cf8ea60949)

Author SHA1 Message Date
mywaystay 7e83895c6e
update goctl rpc template log print url (#133) 4 years ago
kingxt dc0534573c
print more message when parse error (#131)
* 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 ()

* revert

* refactor and rename folder to group

* print more error info when parse error

* remove no need

* refactor

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin 94645481b1 fix golint issues 4 years ago
sjatsh 338caf9927
delete goctl rpc main tpl no use import (#130) 4 years ago
kevin f904710811 support api templates 4 years ago
kevin c824e9e118 fail fast when rolling window size is zero 4 years ago
Keson 7d4a548d29
fix: template cache key (#121) 4 years ago
kevin 936dd67008 simplify code generation 4 years ago
super_mario 84cc41df42
stop rpc server when main function exit (#120)
add defer s.Stop() to mainTemplate, in order to stop rpc server when main function exit
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 15a9ab1d18
parser ad test (#116)
* 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 ()

* revert

* refactor and rename folder to group

* parser add test

Co-authored-by: kingxt <dream4kingxt@163.com>
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
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
kingxt 8d0f7dbb27
rename (#98)
* 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

* rename

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
Keson a5ce2c448e
fix bug: module parse error (#97) 4 years ago
Keson 9f9c24cce9
fix bug: release empty struct limit (#96) 4 years ago
kingxt b628bc0086
goctl support import api file (#94)
* 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

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
miaogaolin 46995a4d7d
修改不能编辑代码注释 (#92)
* rename file and function name

* update comments of "code generate"
4 years ago
kingxt 5e6dcac734
feature: goctl jwt (#91)
* 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 add jwt support

* goctl add jwt support

* goctl add jwt support

* goctl add jwt support

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt 878fd14739
remove no need (#87)
* 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

* add jwt doc

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin 57299a7597 rename ngin to rest in goctl 4 years ago
kevin 0b1ee79d3a rename rpcx to zrpc 4 years ago
miaogaolin 68335ada54
rename file and function name (#74) 4 years ago
kevin a561884fcf print message when starting api server 4 years ago
Keson e6f8e0e8c3
optimize: api generating for idea plugin (#68)
* add flag: force to generate api

* add flag: force to generate api

* format api template

* Revert "format api template"
4 years ago
kingxt 598ff6d0fc
api support empty request or empty response (#72)
* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* update doc

* remove update

* api support empty request or empty response

* update readme

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
miaogaolin 9a57993e83
fix goctl api (#71) 4 years ago
kingxt ee45b0a459
optimize route parse (#70)
* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* update doc

* remove update

* optimized route parser

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt 05df86436f
optimized api new with absolute path like: goctl api new $PWD/xxxx (#67)
* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* update doc

* remove update

* optimized api new with absolute path like: goctl api new $PWD/xxxx

* optimized api new with absolute path like: goctl api new $PWD/xxxx

* optimized api new with absolute path like: goctl api new $PWD/xxxx

* optimized api new with absolute path like: goctl api new $PWD/xxxx

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
Sergey Cheung 21e811887c
Markdown lint (#58)
* markdown linter

* format markdown docs

* format exiting markdown docs
4 years ago
kevin 7f0ec14704 update goctl makefile 4 years ago
Keson d12e9fa2d7
add model&rpc doc (#62) 4 years ago
miaogaolin ce5961a7d0
fix goctl model (#61) 4 years ago
kevin 72aeac3fa9 add in-process cache doc 4 years ago
kingxt 1c3c8f4bbc
add fast create api demo service (#59)
* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* add fast create api demo: goctl api new

* refactor

* refactor

Co-authored-by: kingxt <dream4kingxt@163.com>
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
bittoy 3128d63134
fix goctl model path (#53) 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
kevin 8dd93d59a0 refactor code 4 years ago
Keson 3a4e1cbb33
fix bug: miss time import (#36)
* add execute files

* add protoc-osx

* add rpc generation

* add rpc generation

* add: rpc template generation

* optimize gomod cache

* add README.md

* format error

* reactor templatex.go

* update project.go & README.md

* fix bug: miss time import
4 years ago
kevin d1129e3974 refactor 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
kingxt 5c0c3ea467
trim space (#31)
* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* trim space

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt 89f3712347
remove no need empty line (#29)
* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* trim no need line

Co-authored-by: kingxt <dream4kingxt@163.com>
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 7b17b3604a fix dockerfile generation 4 years ago
kevin eb40c2731d remove files 4 years ago
kevin 618bec5075 remove makefile generation 4 years ago
kevin 5821b7324e update readme 4 years ago
kevin befdaab542 update goctl makefile 4 years ago
kevin 431be8ed9d make goctl work on linux 4 years ago
kevin 6c4a4be5d2 update shorturl doc 4 years ago
kevin 6e3d99e869 reorg imports 4 years ago
Keson 0f97b2019a
rpc generation support windows (#28)
* 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

* update project.go & README.md

* update project.go & README.md

* rpc generation supports windows
4 years ago
kevin 3affe62ae4 update shorturl doc 4 years ago
Keson 0734bbcab3
update handler generation (#27)
* 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

* update project.go & README.md

* update project.go & README.md
4 years ago
kevin f411178a4f refine rpc generator 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
kevin 77e23ad65d add quick example 4 years ago
kingxt 38806e7237
fix config yaml gen (#25)
* optimized

* format

Co-authored-by: kingxt <dream4kingxt@163.com>
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
kevin 1c24e71568 use yaml, and detect go.mod in current dir 4 years ago
kingxt 73b61e09ed
fix format (#23)
* fir format

* fix bug

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt 0efa28ddbd
fix generate api demo (#19)
Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin 267a283328 reorg imports 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
kevin e79c42add1 add go report badge 4 years ago
kevin 9e14820698 fix golint warnings 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
Steven Zack 1252bd9cde
goctl生成Kotlin代码优化 (#16)
* 修复Kotlin连接失败抛出Exception;添加Kotlin连接超时

* 修复路径参数导致生成的Kotlin函数名带有:问题

* Added HTTP Patch Method

* kotlin-add-patch-support

* format-imports
4 years ago
stevenzack d4e38cb7f0 rename-Api 4 years ago
stevenzack 693a8b627a fix-log-fatal 4 years ago
stevenzack 701208b6f4 fix FileNotFoundException when response code is 4xx or 5xx 4 years ago
stevenzack b65fcc5512 fix-lang-must-not-found 4 years ago
stevenzack 3321ed3519 multi-http-method-support 4 years ago
stevenzack 5e007c1f9f remove-logx 4 years ago
stevenzack de2f8c06fb fix-break-line 4 years ago
stevenzack 926d746df5 Add goctl kotlin support 4 years ago
kevin 8745039877 move lang.Must into logx.Must to make sure output fatal message as json 4 years ago
kingxt cfa6644b0c auto generate go mod if need 4 years ago
kevin 7da31921c7 remove unused method 4 years ago
kim 47440964cd fix windows slash 4 years ago
kingxt 19888b7d11 fix windows bug 4 years ago
kevin 4f59fd306a use fmt.Println instead of println 4 years ago
kevin f77c73eec1 remove unused method 4 years ago
kim 9b0b958f43 fix windows slash 4 years ago
kingxt 952de5eacd remove deprecated model generator 4 years ago
kingxt a71a11b7c5 remove deprecated 4 years ago
kevin ba636187ce fix goctl path issue on windows 4 years ago
kim 2012ac3204 correct parent packet for gomod 4 years ago
kevin 3b5b8283db update goctl go generator 4 years ago
kim 18a80efd70 remote auto import 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 2f4505d856 format 4 years ago
kim 3ea0d8e7f6 format 4 years ago
kim cf8e0a118f refactor ngin to rest 4 years ago
kevin f372ded63c rename ngin to rest 4 years ago
kevin 0897f60c5d rename ngin to rest 4 years ago
kevin dc744766a9 rename mapreduce to mr 4 years ago
kevin ffddfa62bb fix compile errors 4 years ago
kim 121323b8c3 goctl added 4 years ago