admin

package
v0.0.0-...-2ad5e84 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID         = 0
	UserID     = 10
	Name       = 11
	UpdateName = 100
	UpdateAll  = 101
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	gorm.Model
	UserID   uint   `json:"user_id"`
	FullName string `json:"full_name"`
	NickName string `json:"nick_name"`
	Active   bool   `json:"active"`
	Debug    string `json:"debug"`
}

type Result

type Result struct {
	Status bool    `json:"status"`
	Error  string  `json:"error"`
	Admin  []Admin `json:"admin"`
}

type ResultDatabase

type ResultDatabase struct {
	Err   error
	Admin []Admin
}

type ResultTmpToken

type ResultTmpToken struct {
	Status bool   `json:"status"`
	Error  string `json:"error"`
	Admin  string `json:"admin"`
}

Jump to

Keyboard shortcuts

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