Commit Graph

553 Commits (a3b525b50df9fe36151ab899a0e9e4c850b627d2)
 

Author SHA1 Message Date
kevin 5e87b33b23 support https in rest 4 years ago
kevin 9b7cc43dcb update wechat qrcode 4 years ago
kevin 000b28cf84 update readme 4 years ago
kevin 9fd16cd278 add images back because of gitee not showing 4 years ago
kevin b71429e16b add images back because of gitee not showing 4 years ago
codingfanlt a13b48c33e
goctl add stdin flag (#170)
* add stdin flag to use stdin receive api doc and use stdout output formatted result

* optimize code and output error through stderr

* fix mistake

* add dir parameter legality verify
4 years ago
kevin 033525fea8 update doc using raw images 4 years ago
Keson 607fc3297a
model template fix (#169)
* replace quote

* rpc disable override main.go

* reactor template

* add model flag -style

* add model flag -style

* reactor model  template name of error
4 years ago
cuisongliu 4287877b74
update deployment version (#165) 4 years ago
Keson 2b7545ce11
spell fix (#167) 4 years ago
Keson 60925c1164
fix bug: generate incomplete model code in case findOneByField (#160)
* fix bug: generate incompletely in case findOneByField

* code break line

* add test

* revert command.go

* add test

* remove incorrect test
4 years ago
kingxt 1c9e81aa28
refactor middleware generator (#159)
* 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

* remove no need

* add anonymous annotation

* optimized

* rename

* rename

* update test

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* simple logic

* optimized

* optimized generator formatted code

* optimized generator formatted code

* add more test

* refactor middleware generator

* revert test

* revert test

* revert test

* revert test

* revert test

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
sjatsh db7dcaa120
gen api svc add middleware implement temp code (#151) 4 years ago
kevin 099d44054d add logo in readme 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
Keson 6dbd3eada9
update api template (#156)
* update template

* update template
4 years ago
kevin cf2d20a211 add vote link 4 years ago
maiyang 91bfc093f4
docs: format markdown and add go mod in demo (#155) 4 years ago
kingxt cf33aae91d
ignore blank between bracket and service tag (#154)
* 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

* remove no need

* add anonymous annotation

* optimized

* rename

* rename

* update test

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* simple logic

* optimized

* optimized generator formatted code

* optimized generator formatted code

* add more test

* ignore black between bracket and service tag

* use join instead

* format

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
Keson c9494c8bc7
model support globbing patterns (#153)
* model support globbing patterns

* optimize model

* optimize model

* format code
4 years ago
kevin 1fd2ef9347 make tests faster 4 years ago
kevin efffb40fa3 update wechat info 4 years ago
kevin 9c8f31cf83 can only specify one origin in cors 4 years ago
kevin 96cb7af728 make tests faster 4 years ago
Keson 41964f9d52
gozero template (#147)
* model/rpc generate code from template cache

* delete unused(deprecated) code

* support template init|update|clean|revert

* model: return the execute result for insert and update operation

* // deprecated: containsAny

* add template test

* add default buildVersion

* update build version
4 years ago
kevin fe0d0687f5 support cors in rest server 4 years ago
kingxt 1c1e4bca86
optimized generator formatted code (#148)
* 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

* remove no need

* add anonymous annotation

* optimized

* rename

* rename

* update test

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* simple logic

* optimized

* optimized generator formatted code

* optimized generator formatted code

* add more test

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin 1abe21aa2a export WithUnaryClientInterceptor 4 years ago
kevin cee170f3e9 fix zrpc client interceptor calling problem 4 years ago
kevin 907efd92c9 let balancer to be customizable 4 years ago
kevin 737cd4751a rename NewPatRouter to NewRouter 4 years ago
kevin dfe6e88529 use goctl template to generate all kinds of templates 4 years ago
kingxt 85a815bea0
fix name typo and format with newline (#143)
* 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

* remove no need

* add anonymous annotation

* optimized

* rename

* rename

* update test

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* simple logic

* optimized

* bugs fix for name typo and format with newline

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kingxt aa3c391919
api add middleware support (#140)
* 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

* remove no need

* add anonymous annotation

* optimized

* rename

* rename

* update test

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* simple logic

* should reverse middlewares

* optimized

* optimized

* rename

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
kevin c9b0ac1ee4 add more tests 4 years ago
mywaystay 33faab61a3
add redis Zrevrank (#137)
* update goctl rpc template log print url

* add redis Zrevrank

Co-authored-by: zhangkai <zhangkai@laoyuegou.com>
4 years ago
kevin 81bf122fa4 update breaker doc 4 years ago
firefantasy a14bd309a9
to correct breaker interface annotation (#136) 4 years ago
kevin ea7e410145 update doc 4 years ago
kevin e81358e7fa update doc 4 years ago
kevin 695ea69bfc add logx.Alert 4 years ago
kevin d2ed14002c add fx.Split 4 years ago
kingxt 1d9c4a4c4b
add anonymous annotation (#134)
* 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

* remove no need

* add anonymous annotation

* optimized

* rename

* rename

* update test

* optimized new command

Co-authored-by: kingxt <dream4kingxt@163.com>
4 years ago
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 fe3739b7f3 fix golint issues 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 9cc979960f update doc 4 years ago
kevin f904710811 support api templates 4 years ago