model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessRule

type AccessRule struct {
	Endpoint string
	Role     int32
}

type User

type User struct {
	ID                            int64
	Username, Email, PasswordHash string
	Role                          int32
	CreatedAt                     time.Time
	UpdatedAt                     sql.NullTime
}

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	Username string `json:"username"`
	Role     int32  `json:"role"`
}

type UserCreateInfo

type UserCreateInfo struct {
	Name            string
	Email           string
	Password        string
	PasswordConfirm string
	Role            int32
}

type UserUpdateInfo

type UserUpdateInfo struct {
	ID    int64
	Name  string
	Email string
}

Jump to

Keyboard shortcuts

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