Commit Graph

60 Commits (bc4187ca90c60d62eb081e18d0e83dde3c4ea359)

Author SHA1 Message Date
7134g 117c3a9069
fix: multiple files import the same api file (#3642) 1 year ago
kesonan d84dfe1b20
fix: goctl unit test (#3636) 1 year ago
Kevin Wan 14fcbd7658
fix #3499 (#3508) 1 year ago
guangwu 76a7a17e57
typo (#3281) 2 years ago
lchjczw 9fa98c2bd3
api imports take the form of relative paths (#3201)
Co-authored-by: 李春华 <lichunhua@threesoft.cn>
2 years ago
guangwu 63368d8b0c
io/ioutil deprecated (#3217) 2 years ago
cui fliter b41ccc5992 fix functiom name
Signed-off-by: cui fliter <imcusg@gmail.com>
2 years ago
anqiansong 0e040ec5b4 remove unused code 2 years ago
anqiansong 4bc1b78a91 Fix #2879 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 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
fisnone 685d14e662
fix:duplicate route check (#2154)
Co-authored-by: 黄志荣 <huangzhirong@shuinfo.com>
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
Kevin Wan 1c09db6d5d
chore: coding style (#2120) 2 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
Fyn 6d9dfc08f9
feat(goctl): supports api multi-level importing (#1747)
* feat(goctl): supports api  multi-level importing

Resolves: #1744

* fix(goctl): import-cycle, etc.

import-cycle will not be allowed
e.g., a.api -> b.api -> a.api
regular multiple-import will be allowed
e.g., a.api -> b.api -> c.api
                   -> c.api

* refactor(goctl): adds comments to exported var

* fix(goctl): typo in a comment
3 years ago
anqiansong 252fabcc4b
fix nil pointer if group not exists (#1773)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong 9c2d526a11
Fix unit test (#1730)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
ronething-bot 18916b5189
[fix] typo (#1655) 3 years ago
anqiansong cc9d16f505
fix: Update unix-like path regex (#1637)
* Revert import value regex

* Update linux path regex

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
chensy c55694d957
Support for referencing types in different API files using format (#1630) 3 years ago
Fyn 0c35f39a7d
fix: fix(gctl): apiparser_parser auto format (#1607) 3 years ago
Kevin Wan f15a4f9188
chore: update go-zero to v1.3.1 in goctl (#1599) 3 years ago
Fyn db949e40f1
feat: supports `importValue` for more path formats (#1569)
`importValueRegex` now can match more path formats

Resolves: #1568
3 years ago
Kevin Wan e0454138e0
update goctl to go 1.16 for io/fs usage (#1571)
* update goctl to go 1.16 for io/fs usage

* feat: support pg serial type for auto_increment (#1563)

* add correct example for pg's url

* 🐞 fix: merge

* 🐞 fix: pg default port

*  feat: support serial type

Co-authored-by: kurimi1 <d0n41df@gmail.com>

* chore: format code

Co-authored-by: toutou_o <33993460+kurimi1@users.noreply.github.com>
Co-authored-by: kurimi1 <d0n41df@gmail.com>
3 years ago
Kevin Wan aa29036cb3
feat: support ctx in sql model generation (#1551) 3 years ago
Kevin Wan 6deb80625d
fix issue of default migrate version (#1536)
* fix issue of default migrate version

* chore: update console colors
3 years ago
Kevin Wan a40254156f
refactor: refactor yaml unmarshaler (#1517) 3 years ago
Kevin Wan c1d2634427
chore: update go version for goctl (#1484) 3 years ago
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 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
anqiansong 89ce5e492b
refactor file|path (#1409)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan d6ff30a570
chore: fix golint issues (#1396) 3 years ago
Kevin Wan 1becaeb7be
chore: refactor (#1331) 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
Kevin Wan 0240fa131a
chore: rename service context from ctx to svcCtx (#1299) 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
anqiansong a944a7fd7e
Mark deprecated syntax (#1148) 3 years ago
Kevin Wan 65905b914d
ci: add reviewdog (#1096) 3 years ago
Kevin Wan 2e12cd2c99
coding style (#1083) 3 years ago
anqiansong 9a724fe907
Add MustTempDir (#1069) 3 years ago
Kevin Wan 1fb356f328
refactor goctl (#902) 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
anqiansong 94417be018
Add document & comment for spec (#703)
* Add document & comment for spec

* remove duplicate field

* use alias
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
anqiansong 9f6a574f97
resolve #610 (#684) 4 years ago