Files
ezbookkeeping/pkg/models/auth_response.go
T
2025-06-29 20:25:21 +08:00

18 lines
742 B
Go

package models
// AuthResponse returns a view-object of user authorization
type AuthResponse struct {
Token string `json:"token"`
Need2FA bool `json:"need2FA"`
User *UserBasicInfo `json:"user"`
ApplicationCloudSettings *ApplicationCloudSettingSlice `json:"applicationCloudSettings,omitempty"`
NotificationContent string `json:"notificationContent,omitempty"`
}
// RegisterResponse returns a view-object of user register response
type RegisterResponse struct {
AuthResponse
NeedVerifyEmail bool `json:"needVerifyEmail"`
PresetCategoriesSaved bool `json:"presetCategoriesSaved"`
}