21 lines
488 B
Go
21 lines
488 B
Go
package dto
|
|
|
|
type AuthDto struct {
|
|
Username string `json:"username" binding:"required"`
|
|
Password string `json:"password" binding:"required"`
|
|
}
|
|
|
|
type AccessTokenDto struct {
|
|
AccessToken string `json:"accessToken"`
|
|
}
|
|
|
|
type ChangePasswordDto struct {
|
|
UserID uint `json:"userId,omitempty"`
|
|
OldPassword string `json:"oldPassword"`
|
|
NewPassword string `json:"newPassword" binding:"required"`
|
|
}
|
|
|
|
type CheckTokenResultDto struct {
|
|
IsValid bool `json:"isValid"`
|
|
}
|