Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
3 years ago
anqiansong
cdf7ec213c
fix #1468 ( #1478 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
df0f8ed59e
Fix/issue#1289 ( #1460 )
...
* fix #1289
* Add unit test case
* fix `jwtTransKey`
* fix `jwtTransKey`
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
c903966fc7
patch: save missing templates to disk ( #1463 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
e57fa8ff53
Fix/issue#1447 ( #1458 )
...
* Add data for template to render
* fix #1447
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
9b592b3dee
Feature rpc protoc ( #1251 )
...
* code generation by protoc
* generate pb by protoc direct
* support: grpc code generation by protoc directly
* format code
* check --go_out & --go-grpc_out
* fix typo
* Update version
* fix typo
* optimize: remove deprecated unit test
* format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
spectatorMrZ
240132e7c7
Fix pg model generation without tag ( #1407 )
...
1. fix pg model struct haven't tag
2. add pg command test from datasource
3 years ago
anqiansong
9d67fc4cfb
feat: Add migrate ( #1419 )
...
* Add migrate
* Remove unused module
* refactor filename
* rename refactor to migrate
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
892f93a716
docs: update install readme ( #1417 )
3 years ago
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
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
7cc64070b1
docs: update goctl installation command ( #1403 )
3 years ago
anqiansong
8e9110cedf
fix #1330 ( #1382 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
d6ff30a570
chore: fix golint issues ( #1396 )
3 years ago
Kevin Wan
b98d46bfd6
chore: update goctl version ( #1394 )
3 years ago
Kevin Wan
c6eb1a9670
ci: remove windows 386 binary ( #1392 )
...
* ci: remove windows 386 binary
* chore: update go-zero
* chore: update go-zero
3 years ago
Kevin Wan
62266d8f91
fix #1070 ( #1389 )
...
* fix #1070
* test: add more tests
3 years ago
anqiansong
b8ea16a88e
feat: Add --remote ( #1387 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
49bab23c54
fix #1376 ( #1380 )
...
* fix #1376
* fix #1376
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Leizhengzi
78ba00d3a7
fix: command system info missing go version ( #1377 )
3 years ago
Kevin Wan
f827a7b985
chore: update goctl version to 1.2.4 for release tools/goctl/v1.2.4 ( #1372 )
3 years ago
行者
f5f2097d14
Updated MySQL生成表结构体遇到关键字db部分保持原字段名定义 ( #1369 )
3 years ago
Kevin Wan
1d223fc114
docs: update goctl markdown ( #1370 )
3 years ago
JiangYiJun
a67c118dcf
go-zero tools ,fix a func,api new can not choose style ( #1356 )
3 years ago
Kevin Wan
cd289465fd
chore: coding style and comments ( #1361 )
...
* chore: coding style and comments
* chore: optimize `ParseJsonBody` (#1353 )
* chore: optimize `ParseJsonBody`
* chore: optimize `ParseJsonBody`
* fix: fix a test
* chore: optimize `ParseJsonBody`
* fix a test
* chore: add comment
* chore: refactor
Co-authored-by: chenquan <chenquan.dev@foxmail.com>
3 years ago
Kevin Wan
8fd16c17dc
chore: update goctl version to 1.2.5 ( #1337 )
3 years ago
anqiansong
5979b2aa0f
Update template ( #1335 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
0b17e0e5d9
Feat goctl bug ( #1332 )
...
* Support goctl bug
* fix typo
* format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
3d8ad5e4f6
feat: tidy mod, update go-zero to latest ( #1334 )
3 years ago
Kevin Wan
ff1752dd39
feat: tidy mod, update go-zero to latest ( #1333 )
3 years ago
Kevin Wan
1becaeb7be
chore: refactor ( #1331 )
3 years ago
yangkequn
171afaadb9
Update types.go ( #1314 )
3 years ago
Kevin Wan
776e6e647d
feat: tidy mod, add go.mod for goctl ( #1328 )
3 years ago
Kevin Wan
490ef13822
style: format code ( #1322 )
3 years ago
anqiansong
1b14de2ff9
fix : #1318 ( #1321 )
...
* fix #1318
* fix #1318
* remove never used code
* fix unit tes
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong
07191dc430
fix #1305 ( #1307 )
...
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
8086ad120b
Revert "feat: reduce dependencies of framework by add go.mod in goctl ( #1290 )" ( #1291 )
...
This reverts commit 87a445689c
.
3 years ago
Kevin Wan
87a445689c
feat: reduce dependencies of framework by add go.mod in goctl ( #1290 )
3 years ago
Kevin Wan
b6bda54870
chore: update cli version ( #1287 )
3 years ago
Kevin Wan
543d590710
fixes #987 ( #1283 )
...
* fixes #987
* chore: fix test failure
* chore: add comments
3 years ago
anqiansong
f1d70eb6b2
Feature api root path ( #1261 )
3 years ago
Kevin Wan
86f9f63b46
Cli ( #1272 )
...
* Fix issue 1260 (#1262 )
* Fix #1238 (#1266 )
* docs: update readme to use goctl@cli (#1255 )
* chore: update goctl version
* style: coding style
* docs: update readme to use goctl@cli
* fix #1238
* format code
* format code
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
Co-authored-by: anqiansong <anqiansong@bytedance.com>
Co-authored-by: anqiansong <anqiansong@gmail.com>
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
417a96cbf2
chore: update goctl version ( #1250 )
...
* chore: update goctl version
* style: coding style
3 years ago
anqiansong
b0573af9a9
Update template ( #1243 )
3 years ago
anqiansong
0cb86c6990
reset link goctl ( #1232 )
3 years ago
Kevin Wan
fa0c364982
fixes #1169 ( #1229 )
3 years ago
Kevin Wan
a6c8113419
chore: refactor, better goctl message ( #1228 )
3 years ago
Kevin Wan
d3bfa16813
feat: exit with non-zero code on errors ( #1218 )
...
* feat: exit with non-zero code on errors
* chore: use const for code
3 years ago
Kevin Wan
f8367856e8
chore: refine code ( #1215 )
3 years ago
anqiansong
69a4d213a3
Fix issue 1205 ( #1211 )
...
* fix #1205
* move builder into stores
* remove xrom
* Remove unused code
* Remove unused code
* refactor builderx to builder
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
c28e01fed3
feat: support CORS by using rest.WithCors(...) ( #1212 )
...
* feat: support CORS by using rest.WithCors(...)
* chore: add comments
* refactor: lowercase unexported methods
* ci: fix lint errors
3 years ago
Kevin Wan
4d22b0c497
feat: ignore rest.WithPrefix on empty prefix ( #1208 )
3 years ago
晨曦中
539215d7df
goctl docker command add -version ( #1206 )
...
* feature(优化): 优化goctl
goctl docker 命令新增version参数,指定builder golang 版本
* feature(优化): 优化goctl
goctl docker 命令新增version参数,指定builder golang 版本
3 years ago
anqiansong
01786c5e63
Generate route with prefix ( #1200 )
...
* Generate route with prefix
* Update api convert
* Remove TrimSpace
* Update path join
* Format code
* Format code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
b76c7ae55d
chore: remove semicolon for routes of services in api files ( #1195 )
3 years ago
Kevin Wan
7e3fe77e7b
chore: update goctl version to 1.2.3, prepare for release ( #1193 )
...
* feat: slow threshold customizable in rest
* chore: update goctl version to 1.2.3, prepare for release
3 years ago
anqiansong
bef5bd4e4f
fix the package name of grpc client ( #1170 )
...
* fix the package name of grpc client
* Remove k8s/utils
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
zeromake
9fd3f752d1
fix(goctl): repeat creation protoc-gen-goctl symlink ( #1162 )
3 years ago
anqiansong
9c48e9ceab
Feature add template version ( #1152 )
3 years ago
anqiansong
a944a7fd7e
Mark deprecated syntax ( #1148 )
3 years ago
anqiansong
44202acb18
Fix issue #1127 ( #1131 )
...
* fix #1127
* fix #1127
* fixed unit test
* add go keyword converter
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
6a8638fc85
chore: refine rpc template in goctl ( #1129 )
3 years ago
chenquan
d28cfe5f20
Add `opts ...grpc.CallOption` in grpc client ( #1122 )
...
* Add `opts ...grpc.CallOption` in grpc client
* Update format
* Update format
* Add import package
* Update format
3 years ago
Kevin Wan
426b09c356
update goctl version to 1.2.2 ( #1125 )
3 years ago
Kevin Wan
ed15ca04f4
fix: opentelemetry traceid not correct ( #1108 )
3 years ago
小小小下
295ec27e1b
feat: reflection grpc service ( #1107 )
...
* feat: reflection grpc service
* feat: reflection grpc service
3 years ago
理工男
8d2db09d45
Update Makefile ( #1098 )
3 years ago
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
3 years ago
z-micro
80e3407be1
fix bug: generating dart code error ( #1090 )
3 years ago
Amor
41c980f00c
update goctl api ( #1052 )
...
* update goctl api
* add LoadTemplate
* update new api template
* update
3 years ago
shenbaise9527
f34d81ca2c
chore: when run goctl-rpc, the order of proto message aliases should be ( #1078 )
...
fixed
Co-authored-by: steven <steven.zhou@1quant.com>
3 years ago
Kevin Wan
2e12cd2c99
coding style ( #1083 )
3 years ago
anqiansong
e8a340c1c0
Create a symbol link file named protoc-gen-goctl from goctl ( #1076 )
3 years ago
anqiansong
9a724fe907
Add MustTempDir ( #1069 )
3 years ago
anqiansong
7fb5bab26b
fix #1058 ( #1064 )
3 years ago
Jerry Liang
5c6a3132eb
fix typo parse.go error message ( #1041 )
3 years ago
Kevin Wan
2bd95aa007
update goctl version to 1.2.1 ( #1042 )
3 years ago
Kevin Wan
e8376936d5
remove goctl config command ( #1035 )
3 years ago
Kevin Wan
71c0288023
fix symlink issue on windows for goctl ( #1034 )
...
* fix symlink issue on windows for goctl
* move readlink into separate file
3 years ago
Kevin Wan
0b6bc69afa
reorg imports, format code ( #1024 )
3 years ago
anqiansong
ded22e296e
revert changes
3 years ago
anqiansong
f0ed2370a3
fix #1014 ( #1018 )
...
* fix #1014
* remove unused code
* * optimize generate pb.go on Windows
* format code
* optimize console.go
* version rollback
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
f6d9e19ecb
expose sql.DB to let orm operate on it ( #1015 )
...
* expose sql.DB to let orm operate on it
* add missing RawDB methods
* add NewSqlConnFromDB for cooperate with dtm
3 years ago
Kevin Wan
56807aabf6
fix golint issues, update codecov settings. ( #1011 )
...
* update codecov settings
* fix golint issues
3 years ago
Kevin Wan
96a35ecf1a
fix #1006 ( #1008 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
* use os.ModeSymlink instead of fs.ModeSymlink for backward compatibility
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
neosu
d8905b9e9e
add api template file ( #1003 )
3 years ago
Kevin Wan
10805577f5
reorg imports, format code ( #1000 )
3 years ago
anqiansong
84d2b64e7c
optimize unit test ( #999 )
3 years ago
toven tang
d179b342b2
修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。 ( #960 )
...
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。
* 修复使用 postgres 数据库时,位置参数重复,导致参数与值不对应的问题。
Co-authored-by: toven <toven@advan.onaliyun.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
Kevin Wan
0325d8e92d
format code, and reorg imports ( #991 )
3 years ago
anqiansong
2125977281
Fix filepath ( #990 )
3 years ago
Vee Zhang
c26c187e11
remote handler blank line when .HasRequest is false ( #986 )
3 years ago
miaogaolin
423955c55f
format code ( #979 )
3 years ago
Kevin Wan
7618139dad
refactor ( #977 )
3 years ago
Kevin Wan
519db812b4
format coding style ( #969 )
3 years ago
anqiansong
3203f8e06b
Fix issues ( #965 )
3 years ago
chenquan
b71ac2042a
Add a test case for database code generation `tool` ( #961 )
3 years ago
Kevin Wan
bf3ce16823
fix #820 ( #934 )
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
anqiansong
b2fea65faa
Optimize model naming ( #910 )
...
* add unit test
* fix #907
* format code
* format code
* format code
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
a1fe8bf6cd
fix missing `updateMethodTemplateFile` ( #924 )
3 years ago
Kevin Wan
9c1ee50497
refactor ( #920 )
3 years ago
anqiansong
14ec29991c
fix #915 ( #917 )
3 years ago
Kevin Wan
f2612db4b1
add stringx.FirstN ( #914 )
3 years ago
anqiansong
dc43430812
optimize grpc generation env check ( #900 )
...
* optimize grpc generation env check
* optimize grpc generation env check
* format code
* fix postgresql data type convert error
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan
00c5734021
format coding style ( #905 )
3 years ago
lovelly
33f87cf1f0
带下划线的项目,配置文件名字错误。 ( #733 )
3 years ago
Kevin Wan
69935c1ba3
refactor goctl, fix golint issues ( #903 )
3 years ago
Kevin Wan
1fb356f328
refactor goctl ( #902 )
3 years ago
市民233
0b0406f41a
fix: 解决golint 部分警告 ( #897 )
...
* feat: 解决goreportcard的警报
ps: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
* feat: 优化golint警告,将processFieldPrimitiveWithJsonNumber 改成 processFieldPrimitiveWithJSONNumber
unmarshaler.go:248:23: method processFieldPrimitiveWithJsonNumber should be processFieldPrimitiveWithJSONNumber
* feat: 添加 WithCanonicalKeyFunc 注释
* feat: 添加DisableStat的注释
* feat: 添加 RegisterGoctlHome 注释
* feat: 添加 PostgreSqlJoin 注释
* feat: 解决goline警告should not use basic type string as key in context.WithValue问题
* feat: 解决golint警告信息: should not use basic type string as key in context.WithValue
* fix: 定义自定义字段类型,导致go test fail 问题
* update: 恢复原有测试用例
* fix golint warning
3 years ago
_ksco
cc264dcf55
refactor ( #878 )
...
* refactor(tools ): refactor cod
Improve code readability and performance
* fix(tools ): fix len bug
Co-authored-by: ksco <hyang@33.cn>
3 years ago
Kevin Wan
02adcccbf4
format code ( #884 )
3 years ago
anqiansong
a74aaf1823
optimize mongo generation without cache ( fix #881 ) ( #882 )
...
* fix #881
* fix #881
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan
f7f3730e1a
update goctl version to 1.1.10 ( #874 )
3 years ago
neosu
16cc990fdd
fix context missing ( #872 )
...
Co-authored-by: suzhenpeng <suzhenpeng@ecoplants.tech>
3 years ago
neosu
00061c2e5b
add goctl rpc template home flag ( #871 )
...
Co-authored-by: suzhenpeng <suzhenpeng@ecoplants.tech>
3 years ago
Kevin Wan
6793f7a1de
fix bug that proc.SetTimeToForceQuit not working in windows ( #869 )
3 years ago
anqiansong
c8428a7f65
fix issue #861 ( #862 )
...
* fix issue #861
* fix issue #861
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
toutou_o
a5e1d0d0dc
add correct example for pg's url ( #857 )
3 years ago
anqiansong
8270c7deed
optimize typo ( #855 )
3 years ago
anqiansong
9f4a882a1b
fix issue #831 ( #850 )
...
* fix issue #831
* fix typo
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
cb7b7cb72e
fix issue #836 ( #849 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
089cdaa75f
Feature model postgresql ( #842 )
...
* Support postgresql generate
* Update template Var
* Support to generate postgresql model
* Support to generate postgresql model
* Update template
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
fangjianwei
476026e393
Added database prefix of cache key. ( #835 )
3 years ago
neosu
e481b63b21
Fix the error stream method name ( #826 )
3 years ago
Kevin Wan
e47079f0f4
go format with extra rules ( #821 )
3 years ago
anqiansong
9b2a279948
Fix issues: #725 , #740 ( #813 )
...
* Fix issues: #725 , #740
* Update filed sort
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
anqiansong
db87fd3239
To generate grpc stream, fix issue #616 ( #815 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Chen Quan
b0e335e7b0
Fix rpc generator bug ( #799 )
...
* Fix rpc自动生成generate bug
* Delete mock
3 years ago
anqiansong
efdf475da4
Add --go_opt flag to adapt to the version after 1.4.0 of protoc-gen-go ( #767 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan
60450bab02
disable load & stat logs for goctl ( #773 )
3 years ago
anqiansong
ea4f680052
Fix issue #747 ( #765 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
heyanfu
58cdba2c5d
remove useless annotation ( #761 )
3 years ago
anqiansong
453f949638
replace cache key with colon ( #746 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
kingxt
546fcd8bab
fix #736 ( #738 )
...
* optimize performance
* rename
* rename
* revert
4 years ago
anqiansong
94417be018
Add document & comment for spec ( #703 )
...
* Add document & comment for spec
* remove duplicate field
* use alias
4 years ago
Kevin Wan
f300408fc0
fix golint issues, and optimize code ( #705 )
4 years ago
Bo-Yi Wu
73906f996d
chore(format): change by gofumpt tool ( #697 )
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
4 years ago
Kevin Wan
73417f54db
update goctl version to 1.1.8 ( #696 )
4 years ago
anqiansong
9f6a574f97
resolve #610 ( #684 )
4 years ago
anqiansong
ea01cc78f0
Optimize model nl ( #686 )
4 years ago
anqiansong
d28ac35ff7
fix issue: https://github.com/zeromicro/goctl-swagger/issues/6 ( #680 )
4 years ago
anqiansong
df5ae9507f
replace antlr module ( #672 )
...
* replace antlr module
* refactor version of antlr
4 years ago
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
4 years ago
anqiansong
888551627c
optimize code ( #579 )
...
* optimize code
* optimize returns & unit test
4 years ago
Kevin Wan
155e6061cb
fix golint issues ( #561 )
4 years ago
anqiansong
dda7666097
Feature mongo gen ( #546 )
...
* add feature: mongo code generation
* upgrade version
* update doc
* format code
* update update.tpl of mysql
4 years ago
anqiansong
60c7edf8f8
fix spelling ( #551 )
4 years ago
kingxt
1e4e5a02b2
rename ( #543 )
4 years ago
Kevin Wan
f01472c9ea
fix golint issues ( #535 )
4 years ago
Kevin Wan
af531cf264
fix golint issues ( #533 )
4 years ago
anqiansong
dd393351cc
patch 1.1.5 ( #530 )
4 years ago
anqiansong
d894b88c3e
feature 1.1.5 ( #411 )
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
f14ab70035
Code optimized ( #474 )
...
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
4 years ago
Kevin Wan
211f3050e9
fix golint issues ( #459 )
4 years ago
Kevin Wan
03b5fd4a10
fix golint issues ( #458 )
4 years ago
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
4 years ago
Kevin Wan
42883d0899
fix golint issues, redis methods ( #455 )
4 years ago
Kevin Wan
06f6dc9937
fix golint issues, package comments ( #454 )
4 years ago
Kevin Wan
54414db91d
fix golint issues, exported doc ( #451 )
4 years ago
Kevin Wan
9b0625bb83
fix golint issues ( #450 )
4 years ago
kingxt
2b07f22672
optimize code ( #417 )
...
* optimize code
* optimize code
* optimize code
* optimize code
4 years ago
Kevin Wan
ebec5aafab
use env if necessary in loading config ( #409 )
4 years ago
Kevin Wan
572b32729f
update goctl version to 1.1.3 ( #402 )
4 years ago
kingxt
43e712d86a
fix type convert error ( #395 )
4 years ago
kingxt
4db20677f7
optimized ( #392 )
4 years ago
Kevin Wan
50fbdbcfd7
update readme ( #390 )
4 years ago
Kevin Wan
eca4ed2cc0
format code ( #386 )
4 years ago
文杰
3285436f75
f-fix spell ( #381 )
...
Co-authored-by: chenwenjie <chenwenjie@zzstc.cn>
4 years ago
kingxt
7f49bd8a31
code optimized ( #382 )
4 years ago
kingxt
9cd2015661
fix inner type generate error ( #377 )
...
* fix point type bug
* optimized
* fix inner type error
4 years ago
kingxt
cf3a1020b0
Java optimized ( #376 )
...
* optiimzed java gen
* optiimzed java gen
* fix
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
HarryWang29
e3fcdbf040
fix return in for ( #367 )
...
Co-authored-by: HarryWang29 <wrz890829@gmail.com>
4 years ago
Kevin Wan
2854ca03b4
update goctl version to 1.1.3 ( #364 )
4 years ago
anqiansong
6c624a6ed0
Feature model fix ( #362 )
...
* fix sql builderx adding raw string quotation marks incompatibility bug
* add unit test
* remove comments
* fix sql builderx adding raw string quotation marks incompatibility bug
4 years ago
kingxt
12e235efb0
optimized goctl format ( #336 )
...
* fix format
* refactor
* refactor
* optimized
* refactor
* refactor
* refactor
* add js path prefix
4 years ago
FengZhang
a926cb514f
modify the goctl gensvc template ( #323 )
4 years ago
kingxt
25cab2f273
Java ( #327 )
...
* add g4 file
* new define api by g4
* reactor parser to g4gen
* add syntax parser & test
* add syntax parser & test
* add syntax parser & test
* update g4 file
* add import parse & test
* ractor AT lexer
* panic with error
* revert AT
* update g4 file
* update g4 file
* update g4 file
* optimize parser
* update g4 file
* parse info
* optimized java generator
* revert
* optimize java generator
* update java generator
* update java generator
* update java generator
* update java generator
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
anqiansong
a3b525b50d
feature model fix ( #296 )
...
* add raw stirng quote for sql field
* remove unused code
4 years ago
Kevin Wan
acd48f0abb
optimize dockerfile generation ( #284 )
4 years ago
kingxt
f919bc6713
refactor ( #283 )
4 years ago
Kevin Wan
a0030b8f45
format dockerfile on non-chinese mode ( #282 )
4 years ago
Kevin Wan
4d13dda605
add EXPOSE in dockerfile generation ( #281 )
4 years ago
songmeizi
b56cc8e459
optimize test case of TestRpcGenerate ( #279 )
...
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
Kevin Wan
c686c93fb5
fix dockerfile generation bug ( #277 )
4 years ago
Kevin Wan
da8f76e6bd
add category docker & kube ( #276 )
4 years ago
Kevin Wan
fd73ced6dc
optimize dockerfile ( #272 )
4 years ago
Kevin Wan
5071736ab4
fmt code ( #270 )
4 years ago
songmeizi
84ab11ac09
feature plugin custom flag ( #251 )
...
* support plugin custom flags
* add short name
* remove log
* remove log
4 years ago
kingxt
67804a6bb2
optimized parse tag ( #256 )
4 years ago
Kevin Wan
65ee877236
refactor & format code ( #255 )
4 years ago
songmeizi
4d53045c6b
improve data type conversion ( #236 )
...
* improve data type conversion
* update doc
4 years ago
kingxt
cecd4b1b75
goctl add plugin support ( #243 )
...
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* add plugin support
* remove no need
* add plugin support
* rename
* rename
* add plugin support
* refactor
* update plugin
* refactor
* refactor
* refactor
* update plugin
* newline
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
4 years ago
Kevin Wan
7cd0463953
fix lint errors ( #249 )
...
* 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
* support k8s deployment yaml generation
* fix lint errors
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
Kevin Wan
7a82cf80ce
support k8s deployment yaml generation ( #247 )
...
* 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
* support k8s deployment yaml generation
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
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
Kevin Wan
e5c560e8ba
simplify code, format makefile ( #233 )
4 years ago
Keson
2dfecda465
modify the service name from proto ( #230 )
4 years ago
voidint
3ebb1e0221
Improve Makefile robustness ( #224 )
4 years ago
kingxt
348184904c
set default handler value ( #228 )
...
* set default value
* set default value
4 years ago
Keson
7a27fa50a1
update version ( #226 )
4 years ago
Kevin Wan
8d4951c990
check go.mod before build docker image ( #225 )
4 years ago
Keson
6e57f6c527
feature model interface ( #222 )
...
* make variable declaration more concise
* add model interface
* optimize interface methods
* fix: go test failed
* warp returns
* optimize
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
95a9dabf8b
format import
4 years ago
kingxt
e0afe0b4bb
optimize api new ( #216 )
4 years ago
Keson
24fb29a356
patch model&rpc ( #207 )
...
* change column to read from information_schema
* reactor generate mode from datasource
* reactor generate mode from datasource
* add primary key check logic
* resolve rebase conflicts
* add naming style
* add filename test case
* resolve rebase conflicts
* reactor test
* add test case
* change shell script to makefile
* update rpc new
* update gen_test.go
* format code
* format code
* update test
* generates alias
4 years ago
kingxt
d6d8fc21d8
type should not define nested ( #212 )
...
* nest type should not supported
* nest type should not supported
* nest type should not supported
* nest type should not supported
* new test
* new test
4 years ago
kingxt
a92f65580c
support type def without struct token ( #210 )
...
* add comment support
* add comment support
* 1. group support multi level folder
2. remove force flag
* bug fix
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* support type def without struct token
* support type def without struct token
* support type def without struct token
* support type def without struct token
* support type def without struct token
* support type def without struct token
* support type def without struct token
* optimized
* optimized
* optimized
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
kingxt
88da8685dd
optimize parser ( #206 )
...
* add comment support
* add comment support
* 1. group support multi level folder
2. remove force flag
* bug fix
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* optimized parser
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
kevin
c7831ac96d
update goctl readme
4 years ago
kingxt
16bfb1b7be
refactor parser and remove deprecated code ( #204 )
...
* add comment support
* add comment support
* 1. group support multi level folder
2. remove force flag
* bug fix
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
* refactor parser and remove deprecated code
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
kingxt
ef4d4968d6
1. group support multi level folder 2. remove force flag ( #203 )
...
* add comment support
* add comment support
* 1. group support multi level folder
2. remove force flag
* bug fix
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
kingxt
7b4a5e3ec6
api support for comment double slash // ( #201 )
...
* add comment support
* add comment support
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
kevin
cb9075b737
add dockerfile into template
4 years ago
kingxt
3f389a55c2
format service and add test ( #197 )
...
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
kingxt
f32c6a9b28
rewrite ( #194 )
...
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
kevin
95aa65efb9
add dockerfile generator
4 years ago
Keson
48f4154ea8
update doc ( #193 )
4 years ago
kingxt
12327fa07d
break generator when happen error ( #192 )
...
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
kingxt
7f6eceb5a3
add more test ( #189 )
...
* new test
* import bug when with quotation
* new test
* add test condition
* rpc template command use -o param
Co-authored-by: kim <xutao@xiaoheiban.cn>
4 years ago
Keson
856b5aadb1
rpc generation fix ( #184 )
...
* reactor alert
* optimize
* add test case
* update the target directory in case proto contains option
* fix missing comments and format code
4 years ago
Keson
f7d778e0ed
fix duplicate alias ( #183 )
4 years ago
Keson
e76f44a35b
reactor rpc ( #179 )
...
* reactor rpc generation
* update flag
* update command
* update command
* update unit test
* delete test file
* optimize code
* update doc
* update gen pb
* rename target dir
* update mysql data type convert rule
* add done flag
* optimize req/reply parameter
* optimize req/reply parameter
* remove waste code
* remove duplicate parameter
* format code
* format code
* optimize naming
* reactor rpcv2 to rpc
* remove new line
* format code
* rename underline to snake
* reactor getParentPackage
* remove debug log
* reactor background
4 years ago
kingxt
b776468e69
route support no request and response ( #178 )
...
* add more test and support no request and response
* fix slash when run on windows
* optimize test
4 years ago
kevin
b144a2335c
update bookstore example for generation prototype
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
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
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
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
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
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
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
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
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