Commit Graph

285 Commits

Author SHA1 Message Date
Kevin Wan
1023800b02
fix: health check problem (#4590) 2025-01-22 19:32:28 +08:00
Devin
6138f85470
Implement #4442 , goctl generate unit test files for api handler and logic (#4443) 2025-01-22 06:52:49 +00:00
kesonan
6700910f64
(goctl)fix: api timeout limited during api generation (#4513) 2024-12-19 08:19:10 +00:00
Robin
cad243905f
fix ts request cli (#4461)
Co-authored-by: robinzhang <azhangrongbing@163.com>
2024-11-21 21:40:08 +08:00
kesonan
64e3aeda55
Add goctl version to code header (#4293) 2024-08-03 14:22:51 +00:00
kesonan
ee643a945e
(goctl): fix nested struct generation (#4281) 2024-07-28 15:40:25 +00:00
Kevin Wan
8f7aff558f
chore: refactor BuildTypes in tsgen. (#4266) 2024-07-22 21:17:59 +08:00
jaron
6e08d478fe
feat(tsgen): tsgen export buildTypes function (#4197) 2024-07-22 12:11:06 +00:00
kesonan
a012a9138f
(goctl): support nested struct (#4211) 2024-06-25 15:18:15 +00:00
Jayson Wang
f138cc792e
fix(goctl): multi imports the api cause redeclared error in types.go (#3988)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2024-04-04 11:39:24 +00:00
chentong
8c0bb27136
feat: add gen api @doc comment to logic handler routes (#3790)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2024-03-30 11:09:54 +00:00
Kevin Wan
45be48a4ee
chore: coding style (#3959) 2024-03-02 22:45:24 +08:00
Kevin Wan
9c1aa6da3d
chore: refact dart code generation (#3726) 2023-11-18 22:41:26 +08:00
anstns
da67ea2300
add map type (#3704) 2023-11-18 13:55:13 +00:00
kesonan
c8a8ff7cad
Feat/default new api parser (#3683) 2023-11-04 14:48:44 +00:00
7134g
117c3a9069
fix: multiple files import the same api file (#3642) 2023-10-23 04:04:52 +00:00
kesonan
d84dfe1b20
fix: goctl unit test (#3636) 2023-10-17 11:15:32 +00:00
Kevin Wan
ff230c4b1d
chore: refactor goctl api (#3605) 2023-10-07 22:58:29 +08:00
kesonan
02c95108b9
optimize: fix experimental api (#3604) 2023-10-07 19:48:41 +08:00
kesonan
c4ef9ceb68
Add api version (#3536) 2023-09-02 01:45:48 +00:00
Kevin Wan
14fcbd7658
fix #3499 (#3508) 2023-08-19 22:17:24 +08:00
me-cs
0217044900
update:Use the Milliseconds method of duration to get the number of milliseconds (#3285)
Co-authored-by: Kevin Wan <wanjunfeng@gmail.com>
2023-05-26 14:32:46 +00:00
guangwu
76a7a17e57
typo (#3281) 2023-05-25 15:58:11 +08:00
Kevin Wan
e4a1b7bb39
chore: format the code (#3243) 2023-05-12 10:38:05 +08:00
lchjczw
9fa98c2bd3
api imports take the form of relative paths (#3201)
Co-authored-by: 李春华 <lichunhua@threesoft.cn>
2023-05-10 03:40:07 +00:00
fondoger
c22bc1c8ea
[dart-gen] Fix lists containing atomic types (#3210) 2023-05-08 21:00:46 +00:00
guangwu
63368d8b0c
io/ioutil deprecated (#3217) 2023-05-06 09:50:54 +00:00
ALMAS
774e8d1d08
feat: replaced color package to support Windows (#3207) 2023-05-05 13:09:54 +00:00
fondoger
3a66fc038f
[dart-gen] Fix nullable list item issue (#3192) 2023-05-01 15:01:28 +08:00
chensy
c0f8a58ed7
no \t to space line (#3177)
Co-authored-by: chenjieping <chenjieping@kezaihui.com>
2023-04-29 08:35:04 +00:00
fondoger
078825b4eb
[dart-gen] Support Null-safe and omitempty json tag (#3134) 2023-04-17 05:06:52 +00:00
lchjczw
189e9bd9da
Fix the problem of package name for generated kt code. (#3082)
Co-authored-by: 李春华 <lichunhua@threesoft.cn>
2023-04-08 14:46:34 +00:00
anqiansong
1904af2323
feat(goctl): Support gateway sample generation (#3049) 2023-03-29 09:06:23 +00:00
Kevin Wan
9065eb90d9
chore: coding style (#3074) 2023-03-28 16:34:22 +00:00
anqiansong
50bc361430
feat(goctl): Add api parser (#2585) 2023-03-28 15:45:26 +00:00
Snake
a561048d59
Fix bug: replace int and float with num type in dart (#3042)
Co-authored-by: zhoumingji <zhoumingji@cmsr.chinamobile.com>
2023-03-18 14:49:22 +00:00
Snake
e136deb3a7
Update goclt dart gen: Add scheme config and content-type header (#2987)
Co-authored-by: zhoumingji <zhoumingji@cmsr.chinamobile.com>
2023-03-08 15:40:55 +00:00
zhoumingji
ba71964b16 Fix bug in dartgen: The property 'isEmpty' can't be unconditionally accessed because the receiver can be 'null' 2023-03-04 11:37:38 +00:00
zhoumingji
97ada59175 Fix bug in dartgen: Increase the processing logic when route.RequestType is empty 2023-03-04 04:31:27 +00:00
cui fliter
b41ccc5992 fix functiom name
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-03-04 04:29:19 +00:00
tanglihao
a40d8b0684 fix code format style use const config.DefaultFormat 2023-03-03 14:58:18 +00:00
anqiansong
0e040ec5b4 remove unused code 2023-03-03 07:11:13 +00:00
anqiansong
4bc1b78a91 Fix #2879 2023-03-03 07:11:13 +00:00
Kevin Wan
03fe036204
chore: reformat code (#2903) 2023-02-20 23:37:05 +08:00
anqiansong
03d073a884
feat: Add request.ts (#2901)
* Add request.ts

* Update comments

* Refactor request filename
2023-02-20 22:54:25 +08:00
fondoger
32e3116ee3 Fix bug in dart api gen: path parameter is not replaced 2023-02-16 15:24:51 +00:00
fondoger
5756627904
Fix Dart API generation bugs; Add ability to generate API for path parameters (#2887)
* Fix bug in dartgen: Import path should match the generated api filename

* Use Route.HandlerName as generated dart API function name

Reasons:
- There is bug when using url path name as function name, because it may have invalid characters such as ":"
- Switching to HandlerName aligns with other languages such as typescript generation

* [DartGen] Add ability to generate api for url path parameters such as /path/:param
2023-02-16 15:19:46 +08:00
Xiaoju Jiang
413ee919e6
support custom maxBytes in API file (#2822) 2023-01-29 10:43:00 +08:00
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
2023-01-24 16:32:02 +08:00
chensy
8157e2118d
fix: replace goctl ExactValidArgs to MatchAll (#2759)
Co-authored-by: chenjieping <chenjieping@kezaihui.com>
2023-01-07 17:07:40 +08:00