Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

传入int,被解析为int64 #277

Open
63isOK opened this issue Sep 7, 2021 · 3 comments
Open

传入int,被解析为int64 #277

63isOK opened this issue Sep 7, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@63isOK
Copy link

63isOK commented Sep 7, 2021

What happened:
go客户端的参数为int,在go服务端被解析为int64

	//	return "C"
	case int:
		return "J"
	case []int:
		return "[J"
	case int32:
		return "I"
	case []int32:
		return "[I"
	case int64:
		return "J"

他们都被映射为J,但反向的却是错的.

What you expected to happen:

int被解析正确

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
测试环境 v2

@wongoo
Copy link
Contributor

wongoo commented Sep 8, 2021

@63isOK 建议参数定义的时候都定义为 int64

@63isOK
Copy link
Author

63isOK commented Sep 17, 2021

ok

@63isOK 63isOK closed this as completed Sep 17, 2021
@AlexStocks AlexStocks reopened this Sep 17, 2021
@AlexStocks AlexStocks added the good first issue Good for newcomers label Sep 17, 2021
@RAJASHEKARGUNAGANTI
Copy link

Hello folks..!
I am Interested in resolving this issue so please explain the issue some more detail .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants