user

package
v5.0.0-...-67dc7c3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const MODULE = "user"

Variables

This section is empty.

Functions

func Startup

func Startup() error

func Table

func Table() *table.Table

Types

type Password

type Password struct {
	Id       string `json:"_id" bson:"_id"`
	Password string `json:"password"`
}

Password 密码

type Role

type Role struct {
	Id          string    `json:"id" xorm:"pk"`
	Name        string    `json:"name,omitempty"`        //名称
	Description string    `json:"description,omitempty"` //说明
	Privileges  []string  `json:"privileges,omitempty"`
	Disabled    bool      `json:"disabled,omitempty"`
	Created     time.Time `json:"created" xorm:"created"`
}

type User

type User struct {
	Id       string    `json:"_id" bson:"_id"`
	Name     string    `json:"name,omitempty"`
	Username string    `json:"username,omitempty"`
	Admin    bool      `json:"admin,omitempty"`
	Disabled bool      `json:"disabled,omitempty"`
	Created  time.Time `json:"created,omitempty" xorm:"created"`
}

User 用户

Jump to

Keyboard shortcuts

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