entity

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUserKey

type AuthUserKey string
const (
	AuthUser AuthUserKey = "user"
)

type Pagination

type Pagination struct {
	TotalItems   int  `json:"total_items"`
	TotalPages   int  `json:"total_pages"`
	CurrentPage  int  `json:"current_page"`
	NextPage     *int `json:"next_page,omitempty"`
	PreviousPage *int `json:"prev_page,omitempty"`
	FirstPage    int  `json:"first_page"`
	LastPage     int  `json:"last_page"`
}

type Role

type Role string

Role represents the role of a user

const (
	// Admin role
	AdminRole   Role = "admin"
	ManagerRole Role = "manager"
	UserRole    Role = "user"
)

type Status

type Status string
const (
	// Active status
	Active Status = "active"
	// Inactive status
	Inactive Status = "inactive"
	// Pending status
	Pending Status = "pending"
	// Deleted status
	Deleted Status = "deleted"
)

Jump to

Keyboard shortcuts

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