Commit Graph

706 Commits (2629636f648bd829f5643c63b5359292be565eac)

Author SHA1 Message Date
dependabot[bot] f51e9f0ea7
chore(deps): bump github.com/go-sql-driver/mysql from 1.7.0 to 1.7.1 in /tools/goctl (#3175)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Kevin Wan 8c9b619199
chore: update go-zero for goctl (#3165) 2 years ago
fondoger 078825b4eb
[dart-gen] Support Null-safe and omitempty json tag (#3134) 2 years ago
LiKe 8fa0bd1f1c
fix(goctl): test field (#3114) 2 years ago
anqiansong 73664b92f0
fix(goctl): missing rpc --style flag (#3112) 2 years ago
Kevin Wan 8d9c2fa22a
chore: update go-zero version in goctl (#3109) 2 years ago
lchjczw 189e9bd9da
Fix the problem of package name for generated kt code. (#3082)
Co-authored-by: 李春华 <lichunhua@threesoft.cn>
2 years ago
李登富 ffacae89eb
fix:multipule flag client go package name (#3104)
Co-authored-by: lidengfu <lidengfu@excean.com>
2 years ago
dependabot[bot] 92f2676afc
chore(deps): bump golang.org/x/text from 0.8.0 to 0.9.0 in /tools/goctl (#3101) 2 years ago
dependabot[bot] 38a97d4531
chore(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0 in /tools/goctl (#3098)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Kevin Wan ee555a85da
chore: coding style (#3080) 2 years ago
anqiansong 1904af2323
feat(goctl): Support gateway sample generation (#3049) 2 years ago
Kevin Wan 9065eb90d9
chore: coding style (#3074) 2 years ago
anqiansong 50bc361430
feat(goctl): Add api parser (#2585) 2 years ago
dependabot[bot] 992a56e90b
chore(deps): bump google.golang.org/grpc from 1.53.0 to 1.54.0 in /tools/goctl (#3061)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Snake a561048d59
Fix bug: replace int and float with num type in dart (#3042)
Co-authored-by: zhoumingji <zhoumingji@cmsr.chinamobile.com>
2 years ago
dependabot[bot] 7a647ca40c
chore(deps): bump google.golang.org/protobuf from 1.29.1 to 1.30.0 in /tools/goctl (#3037)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot] a78d57bebd
chore(deps): bump google.golang.org/protobuf from 1.28.2-0.20220831092852-f930b1dc76e8 to 1.29.1 in /tools/goctl (#3029)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot] 74452eb7b5
chore(deps): bump golang.org/x/text from 0.7.0 to 0.8.0 in /tools/goctl (#3028)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot] b61e364458
chore(deps): bump github.com/zeromicro/go-zero from 1.4.4 to 1.5.0 in /tools/goctl (#3023) 2 years ago
Kevin Wan f77e2c9cfa
chore: add more tests (#3014) 2 years ago
Kevin Wan 3a493cd6a6
chore: add more tests (#3006) 2 years ago
taobig 37cb00d789
Export cache.Option param to NewXXXModel() (#2995) 2 years ago
Snake e136deb3a7
Update goclt dart gen: Add scheme config and content-type header (#2987)
Co-authored-by: zhoumingji <zhoumingji@cmsr.chinamobile.com>
2 years ago
zhoumingji ba71964b16 Fix bug in dartgen: The property 'isEmpty' can't be unconditionally accessed because the receiver can be 'null' 2 years ago
zhoumingji 97ada59175 Fix bug in dartgen: Increase the processing logic when route.RequestType is empty 2 years ago
cui fliter b41ccc5992 fix functiom name
Signed-off-by: cui fliter <imcusg@gmail.com>
2 years ago
tanglihao a40d8b0684 fix code format style use const config.DefaultFormat 2 years ago
tanglihao cb39b5836f fix log name conflict 2 years ago
anqiansong 7ca89a85ab format code 2 years ago
anqiansong 0e040ec5b4 remove unused code 2 years ago
anqiansong 4bc1b78a91 Fix #2879 2 years ago
qiying.wang 148afcf1a7 chore: remove redundant prefix of "error: " in error creation 2 years ago
Kevin Wan 1cd1b17f70
fix: security #9 (#2949)
* fix: security #9

* fix: missing packages

* chore: update deps
2 years ago
kevin 2b08e0510c chore: go mod tidy and update deps 2 years ago
kevin afac48a8ea chore: go mod tidy and update deps 2 years ago
Kevin Wan 284331b7b1
fix: #2899, using autoscaling/v2beta2 instead of v2beta1 (#2900)
* fix: #2899, using autoscaling/v2 instead of v2beta1

* chore: change hpa definition

---------

Co-authored-by: kevin.wan <kevin.wan@yijinin.com>
2 years ago
strong 0fe84b225c
fix(goctl): unsupported database type: bpchar (#2840) 2 years ago
Kevin Wan 03fe036204
chore: reformat code (#2903) 2 years ago
anqiansong 03d073a884
feat: Add request.ts (#2901)
* Add request.ts

* Update comments

* Refactor request filename
2 years ago
fondoger 32e3116ee3 Fix bug in dart api gen: path parameter is not replaced 2 years ago
fondoger 5756627904
Fix Dart API generation bugs; Add ability to generate API for path parameters (#2887)
* Fix bug in dartgen: Import path should match the generated api filename

* Use Route.HandlerName as generated dart API function name

Reasons:
- There is bug when using url path name as function name, because it may have invalid characters such as ":"
- Switching to HandlerName aligns with other languages such as typescript generation

* [DartGen] Add ability to generate api for url path parameters such as /path/:param
2 years ago
Xiaoju Jiang 413ee919e6
support custom maxBytes in API file (#2822) 2 years ago
Kevin Wan eab904af64
chore: update goctl interface{} to any (#2819)
* chore: update goctl interface{} to any

* chore: update goctl interface{} to any
2 years ago
Kevin Wan ae87114282
chore: change interface{} to any (#2818)
* chore: change interface{} to any

* chore: update goctl version to 1.5.0

* chore: update goctl deps
2 years ago
Kevin Wan f3369f8e81
chore: update goctl version to 1.4.4 (#2811) 2 years ago
foliet a2df1bb164
fix: modify the generated update function and add return values for update and delete functions (#2793) 2 years ago
chensy 8157e2118d
fix: replace goctl ExactValidArgs to MatchAll (#2759)
Co-authored-by: chenjieping <chenjieping@kezaihui.com>
2 years ago
Kevin Wan ec7ac43948
chore: reorg imports (#2745)
* chore: reorg imports

* chore: format code
2 years ago
Kevin Wan dd294e8cd6
fix: #2700, timeout not enough for writing responses (#2738)
* fix: #2700, timeout not enough for writing responses

* fix: test fail

* chore: add comments
2 years ago
chowyu12 ce1c02f4f9
Feat: ignorecolums add sort (#2648)
* add go-grpc_opt and go_opt for grpc new command

* feat: remove log when disable log

* feat: add sort

Co-authored-by: zhouyy <zhouyy@ickey.cn>
2 years ago
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 801f1adf71
Remove useless file (#2699) 2 years ago
anqiansong a49f9060c2
Add more test (#2692) 2 years ago
fyyang ebe28882eb
fix: Fix string.title (#2687)
* fix: unsignedTypeMap type error

* fix: string.Title

* style: string.Title test
2 years ago
Kevin Wan fdc57d07d7
fix: #2672 (#2681)
* fix: #2672

* chore: fix more cases

* chore: update deps

* chore: update deps

* chore: refactor

* chore: refactor

* chore: refactor
2 years ago
Kevin Wan 9f7f94b673
chore: upgrade dependencies (#2658) 2 years ago
bensonfx 0b3629b636
Fixes #2603 bump goctl cobra version to macos completion help bug (#2656)
Co-authored-by: Benson Yan <yanyong@axera-tech.com>
2 years ago
heyehang a644ec7edd
feature : responses whit context (#2637) 2 years ago
EinfachePhy 10fd9131a1
replace strings.Title to cases.Title (#2650) 2 years ago
chensy 20e659749a
fix: fix conflict with the import package name (#2610)
Co-authored-by: chenjieping <chenjieping@kezaihui.com>
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
骑着毛驴背单词 81831b60a9
fix(change model template file type): All model template variables ar… (#2573)
* fix(change model template file type): All model template variables are stored in tpl format files with the same name as the template generated using the template init command

* fix(change model template file type): All model template variables are stored in tpl format files with the same name as the template generated using the template init command

Co-authored-by: qilvge <qilvge@.qilvge.com>
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
王哈哈 dac3600b53
Modify comment syntax error (#2572) 2 years ago
anqiansong 3db64c7d47
fix(goctl): Fix #2561 (#2562)
* Fix #2561

* format code
2 years ago
foliet 07128213d6
chore: update "DO NOT EDIT" format (#2559)
* chore: update "DO NOT EDIT" format

* Update readme.md

* Update head.go
2 years ago
anqiansong 9504d30049
fix(goctl): fix redundant import (#2551) 2 years ago
chen quan 22bdf0bbd5
chore: adjust rpc comment format (#2501) 2 years ago
anqiansong 7c9ef3ca67
fix(goctl): Fix issues (#2543)
* fix #2541

* fix #2432

* Fix review comment

* foramt code

* foramt code
2 years ago
Gang Wu 36d3765c5c
Fix typo (#2531) 2 years ago
wuleiming2009 ea52fe2e0d
Fix the wrong key about FindOne in mongo of goctl. (#2523) 2 years ago
anqiansong 1b87f5e30d
Fix mongo insert tpl (#2512) 2 years ago
foliet 799c118d95
feat(goctl): better generate the api code of typescript (#2483) 2 years ago
cui fliter fc59aec2e7
fix a few function names on comments (#2496)
Signed-off-by: cui fliter <imcusg@gmail.com>

Signed-off-by: cui fliter <imcusg@gmail.com>
2 years ago
foliet b51339b69b
fix(mongo): fix file name generation errors (#2479)
Before this, no matter what style is used, lowercase file names without underscores will be generated.
2 years ago
re-dylan e50689beed
fix #2343 (#2349)
Co-authored-by: dylan.wang <dylan.wang@yijinin.com>
2 years ago
chen quan 4f6a900fd4
fix(goctl): fix the unit test bug of goctl (#2458) 2 years ago
bensonfx e7acadb15d
fix #2435 (#2442)
* feat: add color to debug (#2433)

* fix header and path type ts gen

Co-authored-by: chen quan <chenquan.dev@gmail.com>
2 years ago
Kevin Wan 1a6d7b3ef6
chore: gofumpt (#2439) 2 years ago
jesse.tang 1b344a8851
cleanup: deprecated field and func (#2416)
* cleanup: deprecated field and func

* fmt import order
2 years ago
MarkJoyMa 4c927624b0
fix goctl help message (#2414) 2 years ago
anqiansong 2cde970c9e
feat(goctl):Add ignore-columns flag (#2407)
* fix #2074,#2100

* format code

* fix #2397

* format code

* Support comma spliter

* format code
2 years ago
kevin 9138056c01 chore: update go-zero to v1.4.1 2 years ago
Kevin Wan 3e96994b7b
feat: support targetPort option in goctl kube (#2378) 2 years ago
anqiansong 9581e8445a
fix: issue #2359 (#2368)
* Revert changes

* Unrap nested structure for doc code generation

* Revert changes

* Remove useless code

* Remove useless code

* Format code
2 years ago
Kevin Wan d935c83a54
feat: support baggage propagation in httpc (#2375)
* feat: support baggage propagation in httpc

* chore: use go 1.16

* chore: use go 1.16

* chore: use go ^1.16

* chore: remove deprecated
2 years ago
anqiansong ce638d26d9
Hidden java (#2333) 2 years ago
Zlx 9d6c8f67f5
generates nested types in doc (#2201)
Co-authored-by: Link_Zhao <Link_Zhao@epam.com>
2 years ago
anqiansong f70805ee60
Add strict flag (#2248)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
yiGmMk fb6d7e2fd2
fix #2301,package conflict generated by ddl (#2307)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2 years ago
anqiansong b9c97678bc
chore: Update readme (#2280)
* Update readme

* Update readme
2 years ago
fyyang 62abac0b7e
fix: unsignedTypeMap type error (#2246) 2 years ago
Kevin Wan d20d8324e7
fix: #2216 (#2235) 2 years ago
fisnone 685d14e662
fix:duplicate route check (#2154)
Co-authored-by: 黄志荣 <huangzhirong@shuinfo.com>
2 years ago
anqiansong f630bc735b
Update goctl version (#2178) 2 years ago
anqiansong ca3c687f1c
feat: Support for multiple rpc service generation and rpc grouping (#1972)
* Add group & compatible flag

* Add group & compatible flag

* Support for multiple rpc service generation and rpc grouping

* Support for multiple rpc service generation and rpc grouping

* Format code

* Format code

* Add comments

* Fix unit test

* Refactor function name

* Add example & Update grpc readme

* go mod tidy

* update mod

* update mod
2 years ago
anqiansong 1b51d0ce82
fix: fix #2102, #2108 (#2131)
* g4 code generation

* Update grammar

* g4 code generation

* fix #2108

* fix #2102

* Remove comments
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 300b124e42
docs: update goctl readme (#2136) 2 years ago
Richard Yi 6e50c87dca
fix: generated sql query fields do not match template (#2004)
* Fix typo

* Match generated sql query fields with template
2 years ago
Kevin Wan 1c09db6d5d
chore: coding style (#2120) 2 years ago
LeeDF 96acf1f5a6
fix goctl rpc protoc strings.EqualFold Service.Name GoPackage (#2046) 2 years ago
Kevin Wan 97a171441d
chore: remove blank lines (#2117)
* chore: remove blank lines

* chore: refactor
2 years ago
虫子樱桃 725e6056e1
feat:`goctl model mongo ` add `easy` flag for easy declare. (#2073)
* fix:typo in readme.md

* feat:`goctl model mongo ` add `easy` flag to generate code with Auto generated CollectionName for easy declare.

* fix:`goctl api doc ` when referenced api file contains no route,will generate an empty markdown file.

* code: adjust code.

Co-authored-by: 虫子樱桃 <czyt@w.cn>
2 years ago
Kevin Wan b364c54940
chore: update goctl version to 1.3.9 (#2111) 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
taobig c92400ead2
fix 当表有唯一键时,update()的形参和实参不一致 (#2010) 2 years ago
虫子樱桃 76086fc717
fix:typo in readme.md (#2061)
Co-authored-by: 虫子樱桃 <czyt@w.cn>
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 38cd7b7df0
chore: remove lifecycle preStop because sh not exist in scratch (#2042) 2 years ago
anqiansong 93b3f5030f
chore: Add command desc & color commands (#2013)
* Add link & Color sub-commands

* Color sub-commands for unix-like OS

* Remove useless code

* Remove redundant dependency
2 years ago
anqiansong b44e8f5c75
fix #1977 (#2034) 2 years ago
anqiansong 9b6e4c440c
Add fig (#2008)
Co-authored-by: SH00414ml <sh00414ml@SH00414mldeMacBook-Pro.local>
2 years ago
Kevin Wan 9eea311a4d
feat: support build Dockerfile from current dir (#2021) 2 years ago
anqiansong c27e00b45c
feat: Replace mongo package with monc & mon (#2002)
* Replace mongo package with monc & mon

* Add terminal whitespace

* format code
2 years ago
swliao425 0f5d8c6be3
feat: add 'imagePullPolicy' parameter for 'goctl kube deploy' (#1996) 2 years ago
MarkJoyMa f2caf9237a
fix goctl api clone template fail (#1990) 2 years ago
Kevin Wan 2f0e4e3ebf
chore: update dependencies (#1985) 2 years ago
Kevin Wan 2c6b422f6b
chore: update goctl version to 1.3.8 (#1981) 3 years ago
Kevin Wan 4d34998338
fix: generate bad Dockerfile on given dir (#1980) 3 years ago
anqiansong 8be47b9c99
Fix pg subcommand level error (#1979) 3 years ago
Kevin Wan 7868bdf660
Chore/goctl version (#1962)
* chore: update version to v1.3.7

* docs: update migrate versions

* chore: remove debug prints

* chore: remove debug prints
3 years ago
Kevin Wan 46078e716d
chore: update version (#1961) 3 years ago
Kevin Wan 289a325757
chore: refine docker for better compatible with package main (#1944)
* chore: refine docker for better compatible with package main

* chore: default to current dir on goctl docker command
3 years ago
Kevin Wan 72ebbb9774
feat: update docker alpine package mirror (#1924)
* feat: update docker alpine package mirror

* chore: format code
3 years ago
anqiansong f1fdd55b38
Support built-in shorthand flags (#1925) 3 years ago
anqiansong 58787746db
fix: Useless delete cache logic in update (#1923)
* Fix bug: useless delete cache logic in update

* Format code
3 years ago
Kevin Wan 6b1e15cab1
chore: update k8s.io/client-go for security reason, go is upgrade to 1.16 (#1912)
* chore: fix jwt dependency security issue

* chore: update clickhouse driver

* chore: fix a security issue

* chore: update dependencies
3 years ago
anqiansong 5e7b1f6bfe
Fix process blocking problem during check (#1911) 3 years ago
Kevin Wan 7b82eda993
chore: use get for quickstart, plain logs for easy understanding (#1905) 3 years ago
Kevin Wan 5d09cd0e7c
use goproxy properly, remove files (#1903) 3 years ago
Kevin Wan c6e2b4a43a
chore: coding style for quickstart (#1902) 3 years ago
anqiansong 52f060caae
feat: Add goctl quickstart (#1889)
* Add goctl quickstart

* Format code

* Format code
3 years ago
anqiansong f486685e99
Fix code generation (#1897) 3 years ago
过客龙门 3ae874d75d
fix ts tpl (#1879) 3 years ago
givemeafish 14ca39bc86
fix:tools/goctl/rpc/generator/template_test.go file has wrong parameters (#1882) 3 years ago
Kevin Wan 5451d96a81
chore: update some logs (#1875) 3 years ago
anqiansong 5383e29ce6
feat: Replace cli to cobra (#1855)
* Replace cli

* Replace cli

* Replace cli

* Format code

* Add compare case

* Add compare case

* Add compare case

* Support go style flag

* Support go style flag

* Add test case
3 years ago
全自动盒子 ae2c76765c
fix typo (#1857) 3 years ago
Kevin Wan 3bbc90ec24
refactor: move json related header vars to internal (#1840)
* refactor: move json related header vars to internal

* refactor: use header.ContentType
3 years ago
Kevin Wan cef83efd4e
fix #1838 (#1839) 3 years ago
anqiansong cc09ab2aba
feat: Support model code generation for multi tables (#1836)
* Support model code generation for multi tables

* Format code

* Format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan 5bcee4cf7c
fix #1806 (#1833)
* fix #1806

* chore: refine error text
3 years ago
anqiansong 16c61c6657
chore: Embed unit test data (#1812)
* Embed unit test data

* Add testdata

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
chowyu12 14bf2f33f7
add go-grpc_opt and go_opt for grpc new command (#1769)
Co-authored-by: zhouyy <zhouyy@ickey.cn>
3 years ago
anqiansong 305587aa81
fix: Fix issue #1810 (#1811)
* Fix #1810

* Remove go embed

* Format code

* Remove useless code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
fang duan bbe1249ecb
update rpc generate sample proto file (#1709)
* update rpc generate sample proto file

* update
3 years ago
Fyn e62870e268
feat(goctl): go work multi-module support (#1800)
* feat(goctl): go work multi-module support

Resolve: #1793

* chore: print log when getting project ctx fails
3 years ago