MarkJoyMa
f2caf9237a
fix goctl api clone template fail ( #1990 )
2022-06-09 23:35:03 +08:00
Kevin Wan
c6e2b4a43a
chore: coding style for quickstart ( #1902 )
2022-05-13 23:10:55 +08:00
过客龙门
3ae874d75d
fix ts tpl ( #1879 )
2022-05-11 23:45:32 +08:00
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
2022-05-07 15:40:11 +08:00
Kevin Wan
3bbc90ec24
refactor: move json related header vars to internal ( #1840 )
...
* refactor: move json related header vars to internal
* refactor: use header.ContentType
2022-04-28 15:12:04 +08:00
Kevin Wan
cef83efd4e
fix #1838 ( #1839 )
2022-04-28 11:25:26 +08:00
anqiansong
16c61c6657
chore: Embed unit test data ( #1812 )
...
* Embed unit test data
* Add testdata
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-21 21:49:09 +08:00
anqiansong
305587aa81
fix: Fix issue #1810 ( #1811 )
...
* Fix #1810
* Remove go embed
* Format code
* Remove useless code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-21 15:22:43 +08:00
fang duan
fadef0ccd9
goctl api new should given a service_name explictly ( #1688 )
2022-04-17 20:59:18 +08:00
fang duan
4382ec0e0d
show help when running goctl api without any flags ( #1678 )
...
close #1676
2022-04-17 20:58:12 +08:00
Fyn
ee88abce14
fix(goctl): api/new/api.tpl ( #1788 )
2022-04-14 23:43:48 +08:00
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
2022-04-09 23:26:57 +08:00
anqiansong
252fabcc4b
fix nil pointer if group not exists ( #1773 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-09 11:54:30 +08:00
Kevin Wan
9fe868ade9
chore: remove legacy code ( #1766 )
2022-04-06 23:24:20 +08:00
Kevin Wan
faad6e27e3
feat: use go:embed to embed templates ( #1756 )
2022-04-04 13:12:05 +08:00
anqiansong
9c2d526a11
Fix unit test ( #1730 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-01 14:46:12 +08:00
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
2022-03-31 21:39:02 +08:00
Xiaoju Jiang
321dc2d410
Added support for setting the parameter size accepted by the interface and custom timeout and maxbytes in API file ( #1713 )
...
* Added support for setting the parameter size accepted by the interface
* support custom timeout and maxbytes in API file
* support timeout used unit
* remove goctl maxBytes
2022-03-31 20:20:00 +08:00
Fyn
500bd87c85
fix(goctl): api format with reader input ( #1722 )
...
resolves #1721
2022-03-31 00:20:51 +08:00
ronething-bot
18916b5189
[fix] typo ( #1655 )
2022-03-17 10:00:29 +08:00
ronething-bot
56e1ecf2f3
fix: typo ( #1646 )
2022-03-15 17:46:13 +08:00
anqiansong
cc9d16f505
fix: Update unix-like path regex ( #1637 )
...
* Revert import value regex
* Update linux path regex
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-12 22:21:17 +08:00
chensy
c55694d957
Support for referencing types in different API files using format ( #1630 )
2022-03-12 15:17:31 +08:00
Ziyi Zhang
209ffb934b
fix(goctl): kotlin code generation ( #1632 )
...
Signed-off-by: Ziyi Zhang <soasurs@gmail.com>
2022-03-11 13:44:18 +08:00
Fyn
365c569d7c
fix(goctl): dart gen user defined struct array ( #1620 )
2022-03-07 14:11:47 +08:00
anqiansong
68a81fea8a
Fix #1609 ( #1617 )
2022-03-05 22:52:32 +08:00
Fyn
0c35f39a7d
fix: fix(gctl): apiparser_parser auto format ( #1607 )
2022-03-04 15:36:20 +08:00
Fyn
6a66dde0a1
feat(goctl): api dart support flutter v2 ( #1603 )
...
0. support null-safety code gen
1. supports -legacy flag for legacy code gen
2. supports -hostname flag for server hostname
3. use dart official format
4. fix some some bugs
Resolves : #1602
2022-03-04 15:34:13 +08:00
Kevin Wan
f15a4f9188
chore: update go-zero to v1.3.1 in goctl ( #1599 )
2022-03-01 20:56:57 +08:00
Fyn
fba6543b23
fix: goctl api dart support form
tag ( #1596 )
2022-03-01 16:17:37 +08:00
Fyn
db949e40f1
feat: supports importValue
for more path formats ( #1569 )
...
`importValueRegex` now can match more path formats
Resolves : #1568
2022-02-25 11:16:57 +08:00
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>
2022-02-24 13:58:53 +08:00
Kevin Wan
aa29036cb3
feat: support ctx in sql model generation ( #1551 )
2022-02-17 10:28:55 +08:00
Kevin Wan
607bae27fa
feat: support ctx in sqlx/sqlc, listed in ROADMAP ( #1535 )
...
* feat: support ctx in sqlx/sqlc
* chore: update roadmap
* fix: context.Canceled should be acceptable
* use %w to wrap errors
* chore: remove unused vars
2022-02-16 19:31:43 +08:00
mlr3000
50b1928502
chore:use struct pointer ( #1538 )
2022-02-15 11:34:48 +08:00
Kevin Wan
6deb80625d
fix issue of default migrate version ( #1536 )
...
* fix issue of default migrate version
* chore: update console colors
2022-02-14 23:09:32 +08:00
Kevin Wan
84ddc660c4
chore: goctl format issue ( #1531 )
2022-02-13 13:17:19 +08:00
Kevin Wan
a40254156f
refactor: refactor yaml unmarshaler ( #1517 )
2022-02-09 17:22:52 +08:00
Kevin Wan
c1d2634427
chore: update go version for goctl ( #1484 )
2022-01-26 14:27:43 +08:00
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
2022-01-25 23:15:07 +08:00
anqiansong
cdf7ec213c
fix #1468 ( #1478 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-24 22:23:20 +08:00
anqiansong
df0f8ed59e
Fix/issue#1289 ( #1460 )
...
* fix #1289
* Add unit test case
* fix `jwtTransKey`
* fix `jwtTransKey`
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-18 11:52:30 +08:00
anqiansong
c903966fc7
patch: save missing templates to disk ( #1463 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-18 10:45:05 +08:00
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>
2022-01-11 20:34:25 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
2022-01-04 15:51:32 +08:00
Kevin Wan
e267d94ee1
chore: update go-zero to v1.2.5 ( #1410 )
2022-01-03 21:54:53 +08:00
anqiansong
89ce5e492b
refactor file|path ( #1409 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-03 21:32:40 +08:00
Kevin Wan
d6ff30a570
chore: fix golint issues ( #1396 )
2021-12-30 17:44:15 +08:00
Kevin Wan
62266d8f91
fix #1070 ( #1389 )
...
* fix #1070
* test: add more tests
2021-12-29 21:34:28 +08:00
anqiansong
b8ea16a88e
feat: Add --remote ( #1387 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-12-29 18:16:42 +08:00