fix(interface): replace zero value at friend/get_all endpoint
Summary
This PR fixes the response at /player/friend/get_all
endpoint.
It had problem about zero values.
The response must be converted like below.
- If the character has no weapon -> the response must be
-1
- If the user has no namedType -> the response must be
1
Changes Made
- Fix
-
internal/interfaces/api_player_friend_service.go
- Force convert the namedType and weaponId zero values valid
-
Testing
-
Now the clients doesn't stuck at start quests
Checklist
-
No extra unnecessary files are included. -
No extra fmt.Println() or fmt.Printf() statements are present. -
Test codes are included, and works. -
The game client can accept the response (optional)
Additional Information
- Why...