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