Kevin Wan
5d4e7c84ee
revert postgres package refactor ( #1796 )
...
* Revert "refactor: move postgres to pg package (#1781 )"
This reverts commit ba8ac974aa
.
* remove pg, use postgres
3 years ago
Kevin Wan
cb4fcf2c6c
fix marshal ptr in httpc ( #1789 )
...
* fix marshal ptr in httpc
* add more tests
* add more tests
* add more tests
* fix issue on options and optional both provided
3 years ago
Fyn
ee88abce14
fix(goctl): api/new/api.tpl ( #1788 )
3 years ago
Kevin Wan
ecc3653d44
fix #1729 ( #1783 )
3 years ago
Kevin Wan
ba8ac974aa
refactor: move postgres to pg package ( #1781 )
3 years ago
Kevin Wan
50de01fb49
feat: add httpc.Do & httpc.Service.Do ( #1775 )
...
* backup
* backup
* backup
* feat: add httpc.Do & httpc.Service.Do
* fix: not using strings.Cut, it's from Go 1.18
* chore: remove redudant code
* feat: httpc.Do finished
* chore: fix reviewdog
* chore: break loop if found
* add more tests
3 years ago
方航
fabea4c448
fix bug: crash when generate model with goctl. ( #1777 )
...
* fix bug: crash when generate model with goctl.
situation: column name with line.
CREATE TABLE test (
id int NOT NULL AUTO_INCREMENT,
zh-cn text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '中文简体',
PRIMARY KEY (id) USING BTREE,
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
* group imports
group imports
* Use
go-zero/tools/goctl/util/string.go
func SafeString(in string) string {
instead of ReplaceAll
Co-authored-by: 方航 <fanghang@tange.ai>
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
Kevin Wan
415c4c91fc
fix: model unique keys generated differently in each re-generation ( #1771 )
3 years ago
fang duan
0cc9d4ff8d
show help when running goctl rpc template without any flags ( #1685 )
...
close #1684
3 years ago
Kevin Wan
8bc34defc4
chore: avoid deadlock after stopping TimingWheel ( #1768 )
3 years ago
anqiansong
8dd764679c
Fix #1765 ( #1767 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
9fe868ade9
chore: remove legacy code ( #1766 )
3 years ago
Kevin Wan
4e48286838
chore: add doc ( #1764 )
3 years ago
Kevin Wan
ab01442d46
add more tests ( #1763 )
...
* feat: add goctl docker build scripts
* chore: add more tests
3 years ago
Kevin Wan
8694e38384
feat: add goctl docker build scripts ( #1760 )
3 years ago
Kevin Wan
d5e550e79b
Update readme-cn.md
3 years ago
Kevin Wan
affdab660e
Update readme.md
3 years ago
Kevin Wan
7d5858e83a
Update readme.md
3 years ago
Kevin Wan
815a6a6485
Update readme-cn.md
3 years ago
benqi
475d17e17d
feat: support ctx in kv methods ( #1759 )
3 years ago
Kevin Wan
8472415472
fix #1754 ( #1757 )
3 years ago
Kevin Wan
faad6e27e3
feat: use go:embed to embed templates ( #1756 )
3 years ago
anqiansong
58a0b17451
Support `goctl env install` ( #1752 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
89eccfdb97
chore: update go-zero to v1.3.2 in goctl ( #1750 )
3 years ago
Kevin Wan
78ea0769fd
feat: simplify httpc ( #1748 )
...
* feat: simplify httpc
* chore: fix lint errors
* chore: fix log url issue
* chore: fix log url issue
* refactor: handle resp & err in ResponseHandler
* chore: remove unnecessary var names in return clause
3 years ago
Kevin Wan
e0fa8d820d
feat: return original value of setbit in redis ( #1746 )
3 years ago
Kevin Wan
dfd58c213c
fix: model generation bug on with cache ( #1743 )
...
* fix: model generation bug on with cache
* chore: refine template
* chore: fix test failure
3 years ago
Kevin Wan
83cacf51b7
chore: update goctl version to 1.3.4 ( #1742 )
3 years ago
Kevin Wan
6dccfa29fd
feat: let model customizable ( #1738 )
3 years ago
anqiansong
7e0b0ab0b1
Fix zrpc code generation error with --remote ( #1739 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
ac18cc470d
chore: refactor to use const instead of var ( #1731 )
3 years ago
Fyn
f4471846ff
feat(goctl): supports model code 'DO NOT EDIT' ( #1728 )
...
Resolves : #1710
3 years ago
anqiansong
9c2d526a11
Fix unit test ( #1730 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
3 years ago
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
3 years ago
Fyn
500bd87c85
fix(goctl): api format with reader input ( #1722 )
...
resolves #1721
3 years ago
Kevin Wan
e9620c8c05
chore: refactor code ( #1708 )
3 years ago
aimuz
70e51bb352
fix: empty slice are set to nil ( #1702 )
...
support for empty slce, Same behavior as json.Unmarshal
3 years ago
Kevin Wan
278cd123c8
feat: remove reentrance in redislock, timeout bug ( #1704 )
3 years ago
Kevin Wan
3febb1a5d0
chore: refactor code ( #1700 )
3 years ago
Mikael
d8054d8def
fix -cache=true insert no clean cache ( #1672 )
...
* fix -cache=true insert no clean cache
* fix -cache=true insert no clean cache
3 years ago
Kevin Wan
ec271db7a0
chore: refactor code ( #1699 )
3 years ago
benqi
bbac994c8a
feat: add getset command in redis and kv ( #1693 )
3 years ago
Kevin Wan
c1d9e6a00b
feat: add httpc.Parse ( #1698 )
3 years ago
anqiansong
0aeb49a6b0
Add verbose flag ( #1696 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan
fe262766b4
chore: fix lint issue ( #1694 )
3 years ago
Kevin Wan
7181505c8a
Update LICENSE
3 years ago
Kevin Wan
f060a226bc
refactor: simplify the code ( #1670 )
3 years ago