auth

package
v0.0.0-...-035d22f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Code generated by jzero. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeLoginRequest

type CodeLoginRequest struct {
	Email            string `json:"email"`
	VerificationUuid string `json:"verificationUuid"`
	VerificationCode string `json:"verificationCode"`
}

type ErrorRequest

type ErrorRequest struct {
}

type ErrorResponse

type ErrorResponse struct {
}

type GetUserInfoRequest

type GetUserInfoRequest struct {
}

type GetUserInfoResponse

type GetUserInfoResponse struct {
	UserId   string   `json:"userId"`
	Username string   `json:"username"`
	Roles    []string `json:"roles"`
	Buttons  []string `json:"buttons"`
}

type LoginResponse

type LoginResponse struct {
	Token        string `json:"token"`
	RefreshToken string `json:"refreshToken"`
}

type PwdLoginRequest

type PwdLoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type RefreshTokenRequest

type RefreshTokenRequest struct {
}

type RefreshTokenResponse

type RefreshTokenResponse struct {
}

type RegisterRequest

type RegisterRequest struct {
	Email            string `json:"email"`
	VerificationUuid string `json:"verificationUuid"`
	VerificationCode string `json:"verificationCode"`
	Username         string `json:"username"`
	Password         string `json:"password"`
}

type RegisterResponse

type RegisterResponse struct {
}

type ResetPasswordRequest

type ResetPasswordRequest struct {
	Email            string `json:"email"`
	VerificationUuid string `json:"verificationUuid"`
	VerificationCode string `json:"verificationCode"`
	Password         string `json:"password"`
}

type ResetPasswordResponse

type ResetPasswordResponse struct {
}

type SendVerificationCodeRequest

type SendVerificationCodeRequest struct {
	Email            string `form:"email" validate:"email"`
	VerificationType string `form:"verificationType,option=email|phone"`
}

type SendVerificationCodeResponse

type SendVerificationCodeResponse struct {
	VerificationUuid string `json:"verificationUuid"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL