business

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TeacherAccountType = AccountType("TEACHER")
	StudentAccountType = AccountType("STUDENT")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountType

type AccountType string

type CreateCredentialsResponse

type CreateCredentialsResponse struct {
	CreatedCredentialsID uuid.UUID
}

type Credentials

type Credentials struct {
	ID          uuid.UUID
	Username    string
	Password    string
	AccountType AccountType
}

type TokenGenerateRequest

type TokenGenerateRequest struct {
	Username string
	Password string
}

type TokenGenerateResponse

type TokenGenerateResponse struct {
	AccessToken  string
	RefreshToken string
}

type TokenRefreshRequest

type TokenRefreshRequest struct {
	RefreshToken string
}

type TokenRefreshResponse

type TokenRefreshResponse struct {
	NewAccessToken string
}

type TokenValidateRequest

type TokenValidateRequest struct {
	AccessToken string
}

type TokenValidateResponse

type TokenValidateResponse struct {
	CredentialsID uuid.UUID
	Username      string
	AccountType   AccountType
}

Jump to

Keyboard shortcuts

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