blob: 70ee1b64af890511ce8a7fc965416d1c7a8c7bc4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package models
type Response struct {
Success bool `json:"success"`
Message string `json:"message"`
Data any `json:"data"`
}
type LoginResponse struct {
Token string `json:"token"`
}
type ProfileResponse struct {
Profile bool `json:"profile"`
SteamID string `json:"steam_id"`
Username string `json:"username"`
AvatarLink string `json:"avatar_link"`
CountryCode string `json:"country_code"`
}
func ErrorResponse(message string) Response {
return Response{
Success: false,
Message: message,
Data: nil,
}
}
|