service.xpcool.com/internal/model/dto/auth.go

10 lines
323 B
Go

package dto
type UserLoginInput struct{ LoginType, Code, Mobile, VerifyCode, Account, Password, Terminal string }
type AdminLoginInput struct{ Username, Password string }
type TokenPair struct {
AccessToken string `json:"accessToken"`
RefreshToken string `json:"refreshToken"`
ExpiresIn int64 `json:"expiresIn"`
}