You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
794 B
Go
21 lines
794 B
Go
package http
|
|
|
|
// RegisterUserRequest is the POST /users/register payload.
|
|
type RegisterUserRequest struct {
|
|
DisplayName string `json:"display_name" validate:"required,player_name"`
|
|
ConsentVersion string `json:"consent_version" validate:"required,min=1,max=32"`
|
|
ConsentSource string `json:"consent_source" validate:"omitempty,max=32"`
|
|
}
|
|
|
|
// UpdateUserRequest is the PUT /users/:id payload.
|
|
type UpdateUserRequest struct {
|
|
DisplayName string `json:"display_name" validate:"required,player_name"`
|
|
ConsentVersion string `json:"consent_version" validate:"required,min=1,max=32"`
|
|
ConsentSource string `json:"consent_source" validate:"omitempty,max=32"`
|
|
}
|
|
|
|
// VerifyEmailRequest allows request-time verification hints.
|
|
type VerifyEmailRequest struct {
|
|
Verified bool `json:"verified"`
|
|
}
|