Documentation
¶
Index ¶
- Constants
- type AccountOutput
- type CreateMasterProfileInput
- type EmailVerifyCache
- type EmailVerifyTemplateArgs
- type FetchUserInfoInput
- type FindMasterProfilesFilterInput
- type FindMasterProfilesInput
- type GetConsentPageUrlOutput
- type HealthOutput
- type JwtTokensOutput
- type LoginInput
- type MasterProfileOutput
- type MasterProfilesOutput
- type OwnMasterProfileOutput
- type PaginationInput
- type PointOutput
- type RecoveryPasswordCache
- type RecoveryPasswordInput
- type RecoveryPasswordTemplateArgs
- type RegisterCache
- type RegisterConfirmInput
- type RegisterConfirmTemplateArgs
- type RegisterInput
- type ResetPasswordInput
- type SendEmailParams
- type SetPasswordInput
- type SocialLoginCallbackInput
- type SortInput
- type UpdateEmailInput
- type UpdateMasterProfileInput
- type UpdatePasswordInput
- type UpdateUsernameInput
- type UploadResourceInput
- type UploadResourceOutput
- type UploadResourcesInput
- type UploadResourcesOutput
- type VerifyEmailInput
- type VerifyRecoveryCodeInput
Constants ¶
View Source
const (
MaxPageSize = 100
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountOutput ¶
type AccountOutput struct { Username string `json:"username" binding:"required,max=255,min=1"` Email string `json:"email" format:"email" binding:"required,email"` IsEnabled bool `json:"isEnabled" binding:"required"` IsEmailVerified bool `json:"isEmailVerified" binding:"required"` IsPasswordTemp bool `json:"isPasswordTemp" binding:"required"` IsDeleted bool `json:"isDeleted" binding:"required"` }
type CreateMasterProfileInput ¶
type CreateMasterProfileInput struct { DisplayName string `json:"displayName" binding:"required"` Job string `json:"job" binding:"required"` Description *string `json:"description" binding:"omitempty"` Address *string `json:"address" binding:"omitempty"` Point string `json:"point" format:"lng,lat" binding:"required,point"` AvatarID *string `json:"avatarId" binding:"omitempty"` }
type EmailVerifyCache ¶
type EmailVerifyTemplateArgs ¶
type FetchUserInfoInput ¶
type FetchUserInfoInput struct {
Code string `json:"code" binding:"required"`
}
type FindMasterProfilesInput ¶
type FindMasterProfilesInput struct { *FindMasterProfilesFilterInput *SortInput *PaginationInput }
type GetConsentPageUrlOutput ¶
type HealthOutput ¶
type JwtTokensOutput ¶
type LoginInput ¶
type MasterProfileOutput ¶
type MasterProfileOutput struct { DisplayName string `json:"displayName" binding:"required"` Job string `json:"job" binding:"required"` Description *string `json:"description" binding:"omitempty"` Address *string `json:"address" binding:"omitempty"` Point PointOutput `json:"point" binding:"required"` AvatarID *string `json:"avatarId" binding:"omitempty"` }
type MasterProfilesOutput ¶
type MasterProfilesOutput struct { Count int `json:"count" binding:"required"` Data []MasterProfileOutput `json:"data" binding:"required"` }
type OwnMasterProfileOutput ¶
type OwnMasterProfileOutput struct { DisplayName string `json:"displayName" binding:"required"` Job string `json:"job" binding:"required"` Description *string `json:"description" binding:"omitempty"` Address *string `json:"address" binding:"omitempty"` Point PointOutput `json:"point" binding:"required"` AvatarID *string `json:"avatarId" binding:"omitempty"` IsEnabled bool `json:"isEnabled" binding:"required"` }
type PaginationInput ¶
type PointOutput ¶
type RecoveryPasswordCache ¶
type RecoveryPasswordInput ¶
type RecoveryPasswordInput struct {
Email string `json:"email" format:"email" binding:"required,email"`
}
type RegisterCache ¶
type RegisterCache struct { User RegisterInput `json:"user"` OTP string `json:"otp"` ExpiredAt time.Time `json:"expiredAt"` }
type RegisterConfirmInput ¶
type RegisterInput ¶
type ResetPasswordInput ¶
type SendEmailParams ¶
type SendEmailParams struct {
Email string `json:"email" format:"email" binding:"required,email"`
}
type SetPasswordInput ¶
type SetPasswordInput struct {
Password string `json:"password" format:"zxcvbn" binding:"required,zxcvbn"`
}
type UpdateEmailInput ¶
type UpdateEmailInput struct {
Email string `format:"email" json:"email" binding:"required,email"`
}
type UpdateMasterProfileInput ¶
type UpdateMasterProfileInput struct { DisplayName string `json:"displayName" binding:"required"` Job string `json:"job" binding:"required"` Description *string `json:"description" binding:"omitempty"` Address *string `json:"address" binding:"omitempty"` Point string `json:"point" format:"lng,lat" binding:"required,point"` AvatarID *string `json:"avatarId" binding:"omitempty"` IsEnabled *bool `json:"isEnabled" binding:"required"` }
type UpdatePasswordInput ¶
type UpdateUsernameInput ¶
type UpdateUsernameInput struct {
Username string `json:"username" format:"username" binding:"required,username"`
}
type UploadResourceInput ¶
type UploadResourceInput struct {
Resource *multipart.FileHeader `form:"redis" binding:"required"`
}
type UploadResourceOutput ¶
type UploadResourceOutput struct {
ObjectID string `json:"object_id"`
}
type UploadResourcesInput ¶
type UploadResourcesInput struct {
Resources []*multipart.FileHeader `form:"resources" binding:"required"`
}
type UploadResourcesOutput ¶
type UploadResourcesOutput struct { Count int `json:"count"` Data map[string]UploadResourceOutput `json:"data"` }
type VerifyEmailInput ¶
type VerifyRecoveryCodeInput ¶
Click to show internal directories.
Click to hide internal directories.