1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-12 02:28:05 +02:00
Commit Graph

64 Commits

Author SHA1 Message Date
jessetang
c0a7935bb1
faat(encoding/form): allow change the default form encoder and decoder tag name (#3328) 2024-06-01 16:07:17 +08:00
ChenYurun
75711092ab
fix: com patile both map[kratos] and map.kratos for a map type in the query parameters (#3284)
Co-authored-by: chenyurun01 <chenyurun01@bilibili.com>
2024-04-16 20:39:13 +08:00
jessetang
aeecf3cdcc
fix(encoding/form): Timestamp use local time and fix test wrong mock time zone (#3257)
* fix(form/test): wrong mock time zone

* fix lint
2024-03-22 23:41:41 +08:00
jessetang
bfafeca13d
fix(encoding/form): optimize EncodeField and add test cases (#3234)
* test(encoding/form): supplementary encode map test cases

* remove string kind convert
2024-03-22 23:40:52 +08:00
oyk666
f566bdc2e6
fix: use .MapKey to get key's FieldDescriptor (#3196)
Co-authored-by: 欧阳凯 <990951775@qq.com>
2024-03-11 20:55:37 +08:00
kvii
d9f390cdbb
fix: test failed on other timezone.(#3181) (#3183) 2024-02-02 10:38:20 +08:00
jessetang
856bc9a17b
fix(encoding/form): time with the location set to local time (#2885) 2023-12-16 17:21:43 +08:00
Tony Chen
6c026bce56
bugfix: fix map decode (#2979)
* fix map decode

* fix lint

* fix lint
2023-08-30 21:14:53 +08:00
jessetang
fcd3b18e83
fix(encoding/form): failed to decode the map type (#2468) 2023-06-16 19:54:56 +08:00
Fengbin Shi
49ffd95a0c
fix: http parse pb message body panic (#2847)
* fix: issue #2782

* fix: issue #2782 rename

* fix: make fix
2023-05-29 11:17:56 +08:00
jessetang
9a973d29c2
fix: rectification of non-standard lint codes (#2746) 2023-03-21 15:33:08 +08:00
cui fliter
9cc1047c75
chore: fix a few function names on comments (#2430) 2023-01-09 21:16:43 +08:00
jessetang
3393990cd8
test(encoding/form/encode): add test and fix code style (#2539)
* test(encoding/form/encode): add test and fix code style

Signed-off-by: demoManito <1430482733@qq.com>

* fix lint

Signed-off-by: demoManito <1430482733@qq.com>

Signed-off-by: demoManito <1430482733@qq.com>
2022-11-30 12:17:19 +08:00
jessetang
a1a2b9dbd9
test(encoding/form): add unit test and code style modift (#2467)
* test(encoding/form): add unit test and code style modift

* fix test

* add populateRepeatedField test
2022-11-08 09:13:35 +08:00
jesse.tang
9f65c1a03d
cleanup: remove redundancy type conversion and golangci add unconvert (#2409)
* cleanup: remove redundancy type conversion

* golangci add unconvert check
2022-10-10 11:19:39 +08:00
Tony Chen
a680321309
add custom binding (#2428)
* add custom binding

* fix test

* fix empty value
2022-10-10 10:51:06 +08:00
jesse.tang
4d95050747
fix: fmt import (#2379) 2022-09-27 14:08:08 +08:00
Tony Chen
2d325fd386
fix(http/binding): fix http encode url (#2392)
* fix(http/binding): fix http encode url
2022-09-21 11:31:51 +08:00
jesse.tang
9737a3c5e4
fix: typo and grammatical errors (#2368)
* fix: grammar

* fix: grammar

* fix overrode

* translate to English

* translate to English
2022-09-19 10:39:54 +08:00
Astone
205aa88d86
fix: encoding form decode field mask from well-know (#2285)
Co-authored-by: Astone <caliburn_marco@163.com>
2022-08-17 14:32:18 +08:00
Tony Chen
0bcdb8d59c
fix(encoding/form): encode optional value (#2155)
* fix form encode optional value

* fix test

Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
2022-07-07 22:53:28 +08:00
shengzhou
5df19c47d8
test(encoding/form): well konw types test (#2147) (#2160) 2022-07-07 22:06:56 +08:00
haiyux
25c5996360
fix:fix url ptr not encode (#2117) 2022-06-26 00:25:31 +08:00
Tony Chen
a0e624c0b8
fix(binding): fix bind field mask (#2112)
* fix bind field mask


Co-authored-by: chenzhihui <chenzhihui@bilibili.com>
2022-06-19 20:16:58 +08:00
Comolli
ec78198050
feat: decode google.protobuf.BytesValue compatible base64.URLEncoding. (#1991) 2022-05-19 22:37:44 +08:00
qi
c8c870b77f
fix: query params: parse list failed, unsupported message type: "google.protobuf.Struct" #1967 (#1989)
* feat: Support google.protobuf.Struct in query parameters.

* style: add a blank line in test proto file.
2022-05-17 22:58:28 +08:00
haiyux
9dec67bddd
update contrib readme (#1831) 2022-02-21 18:37:20 +08:00
haiyux
00c05e82a3
test:remove testify go mod (#1766)
* test:remove testify go mod

* tidy go mdo

* fix test
2022-01-14 10:02:42 +08:00
Tony Chen
11a6120a2e
fix FieldMask are converted to/from lower-camel naming conventions. (#1724) 2021-12-28 20:31:23 +08:00
Soul
0fad751032
feat(form/form): add support google.protobuf.Struct; (#1617)
Co-authored-by: soul <chenzhiag@163.com>
2021-11-10 23:21:44 +08:00
海雨
eb0730a1b0
feat: add encodeing test (#1573) 2021-10-21 12:47:00 +08:00
海雨
fecfb7dc86
test: arrangement test proto and add test (#1567)
* arrangement test proto and add test
2021-10-20 21:43:44 +08:00
海雨
ad7df8d4bc
fix: fix encode form well known message bug (#1568)
fix: fix encode form well known message bug
2021-10-20 17:00:55 +08:00
longxboy
210e414e6f
fix: fix encode proto well known types in form and url query (#1559)
* fix encode proto well known types
2021-10-17 15:36:43 +08:00
Kagaya
f7588a47de
fix: ci lint error (#1391)
* fix lint check

* fix lll lint error

* fix build error

* fix gomnd

* fix shadow declaration

* add make test command

* update
2021-08-31 10:14:57 +08:00
包子
7b6332ee75
deps: middleware add separate go.mod and removes framework deps (#1385)
* deps: middleware add separate go.mod and removes framework deps
2021-08-30 23:07:31 +08:00
yuemoxi
0dfab173f9
fix:modify encoding test proto path (#1388)
* fix:modify encoding test proto  path

* fix

* fix

* fix
2021-08-28 22:39:51 +08:00
yuemoxi
a67ec16bf0
test(internal/context,internal/host) add test (#1334)
* test(internal/context,internal/host) add test
2021-08-25 23:56:28 +08:00
aiscrm
0b09fcd76d
refactor(encoding): optimize json encoding (#1339)
* fix(encoding): optimize json encoding, add support for other encoding implementation such as easyjson etc.

Co-authored-by: corel <corelchen@qq.com>
2021-08-17 09:19:57 +08:00
zwhyb
d4ac341bc8
http get方法 url 参数带中括号 (#1226)
* fix url query array problem

* use TrimSuffix
2021-07-23 22:37:17 +08:00
Yongzheng Lai
97222012e4
fix: using rv directly (#1213) 2021-07-23 09:22:39 +08:00
喵喵大人
4780b6e1fd
ci(github action): use golangci-lint to replace the deprecated golint (#1175)
* ci: use golangci-lint to replace the deprecated golint

Co-authored-by: ymh199478 <yumenghan@bilibili.com>
2021-07-12 18:09:38 +08:00
longxboy
23a7f15541
add form for codec (#1158)
* add form for http codec
2021-07-08 13:05:21 +08:00
youn
c268f98404
add form encoding (#1138)
* add form encoding

* update examples go mod
2021-07-01 20:36:12 +08:00
IMTTX
0cdeb6c16b
fix typos (#1128) 2021-06-30 11:55:01 +08:00
Windfarer
4e96e08471
config test (#1063)
* init test

* reader test
2021-06-16 15:28:54 +08:00
Tony Chen
00088f644a
examples: clean examples (#1036)
* clean examples

* update yaml to v3
2021-06-12 20:20:18 +08:00
Tony Chen
1b13abd136
transport/http: add http route (#1029)
* add http route

* fix http context

* add HTTP middleware

Co-authored-by: longXboy <longxboyhi@gmail.com>
2021-06-12 18:30:17 +08:00
Tony Chen
4a257c1a34
Revert "add json test (#1031)" (#1033)
This reverts commit 6ca3c788dd.
2021-06-12 11:52:48 +08:00
Tony Chen
6ca3c788dd
add json test (#1031) 2021-06-12 11:19:43 +08:00