model

package
v0.0.0-...-0fa5e1c Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 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 Group

type Group struct {
	Id        int64  `json:"id"`
	Groupname string `json:"groupname" gorm:"index"`
}

type Permission

type Permission struct {
	Id       int64  `json:"id"`
	Ptype    string `json:"ptype"` // g: group, p: permission
	Operator string `json:"operator" gorm:"index"`
	Object   string `json:"object" gorm:"index"`
	Action   string `json:"action"`
}

type Token

type Token struct {
	Id       int64  `json:"id"`
	Username string `json:"username" gorm:"index"`
	Value    string `json:"value"`
}

type User

type User struct {
	Id       int64  `json:"id"`
	Username string `json:"username" gorm:"index"`
}

type UserToken

type UserToken struct {
	Userid   int64  `json:"userid"`
	Username string `json:"username"`
	Token    string `json:"token"`
}

Jump to

Keyboard shortcuts

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