refactor(interface): Move the PlayerPresent impl to service
Summary
This PR refactores the api_player_present_service.go. It makes no implementation at interface directly, and make more easy to read the codes.
Related Issues
Changes Made
- Refactor
internal/application/service/player_present_service.go
-
internal/interfaces/api_player_present_service.go
- Deleted unused usecase dependency
- Use the sparkleError model instead error type switch
-
internal/application/service/player_gacha_service.go
- Fix the error variable name
- Other
-
internal/infrastructure/wires/wire_gen.go
- Recreated the wires.
-
Testing
-
Build success
Checklist
-
No extra unnecessary files are included. -
No extra fmt.Println() or fmt.Printf() statements are present.
Edited by Dosugamea