user

package
v0.0.0-...-c7d208e Latest Latest
Warning

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

Go to latest
Published: May 10, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ID               = 0
	IDDetail         = 10
	GID              = 1
	Name             = 2
	Email            = 3
	MailToken        = 4
	GIDAndLevel      = 5
	IDGetGroup       = 6
	UpdateVerifyMail = 100
	UpdateGID        = 101
	UpdateInfo       = 102
	UpdateStatus     = 105
	UpdateLevel      = 106
	UpdateAll        = 150
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	Name   string `json:"name"`
	NameEn string `json:"name_en"`
	Email  string `json:"email"`
	Pass   string `json:"pass"`
	Level  uint   `json:"level"`
}

type Result

type Result struct {
	User []ResultOne `json:"user"`
}

type ResultAdmin

type ResultAdmin struct {
	User []core.User `json:"users"`
}

type ResultDatabase

type ResultDatabase struct {
	Err  error
	User []core.User
}

type ResultOne

type ResultOne struct {
	User  SimpleUser  `json:"user"`
	Group SimpleGroup `json:"group"`
	Info  []info.Info `json:"info"`
}

type SimpleGroup

type SimpleGroup struct {
	ID            uint  `json:"id"`
	Student       *bool `json:"student"`
	Pass          *bool `json:"pass"`
	Lock          *bool `json:"lock"`
	ExpiredStatus *uint `json:"expired_status"`
	Status        *uint `json:"status"`
}

type SimpleUser

type SimpleUser struct {
	ID         uint   `json:"id"`
	GroupID    uint   `json:"group_id"`
	Name       string `json:"name"`
	NameEn     string `json:"name_en"`
	Email      string `json:"email"`
	Status     uint   `json:"status"`
	Level      uint   `json:"level"`
	MailVerify *bool  `json:"mail_verify"`
}

type User

type User struct {
	ID            uint   `json:"id"`
	Name          string `json:"name"`
	NameEn        string `json:"name_en"`
	Email         string `json:"email"`
	Level         uint   `json:"level"`
	ExpiredStatus uint   `json:"expired_status"`
	MailVerify    *bool  `json:"mail_verify"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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