model

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 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 Permission

type Permission struct {
	Id          int64  `json:"id" db:"permission_id"`
	Endpoint    string `json:"endpoint" db:"resource_name"`
	MinPriority int64  `json:"minPriority" db:"min_role_priority"`
}

type Role

type Role struct {
	Id       int64  `db:"role_id"`
	Name     string `db:"role_name"`
	Priority int64  `db:"priority"`
}

type User

type User struct {
	Id        int64
	Name      string
	Email     string
	Role      string
	Password  string
	UpdatedAt sql.NullTime
	CreatedAt time.Time
}

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	UserId    int64  `json:"userId"`
	UserLogin string `json:"userLogin"`
	Role      string `json:"role"`
}

type UserInfo

type UserInfo struct {
	Name     string
	Email    string
	Role     int
	Password string
}

UserInfo

type UserJwt

type UserJwt struct {
	UserId    int64  `json:"userId"`
	UserLogin string `json:"userLogin"`
	Role      string `json:"role"`
}

type UserName added in v0.0.5

type UserName struct {
	Id   int64
	Name string
}

Jump to

Keyboard shortcuts

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