models

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	ID        uint64
	Name      string
	Roles     []Role
	System    bool
	CreatedAt customdate.CustomDate
}

type Role

type Role struct {
	ID          uint64
	Name        string
	Permissions string
	System      bool
	CreatedAt   customdate.CustomDate
}

type User

type User struct {
	ID       string
	Name     string
	Email    string
	Avatar   string
	Password string
	Salt     string
	Blocked  bool
	// PrivateKey string
	// PublicKey  string
	Groups []Group
}

func (*User) Roles

func (a *User) Roles() string

Jump to

Keyboard shortcuts

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