29 lines
557 B
Go
29 lines
557 B
Go
package identity
|
|
|
|
type AuthLoginRequestDTO struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type AuthLoginResponseDTO struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
type AuthRefreshTokenRequestDTO struct {
|
|
AccessToken string `json:"access_token"`
|
|
}
|
|
|
|
type AuthRefreshTokenResponseDTO struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
type AuthRegisterRequestDTO struct {
|
|
Email string `json:"email"`
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type AuthRegisterResponseDTO struct {
|
|
ID string `json:"id"`
|
|
}
|