model

package
v0.0.0-...-452647d Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`

	UUID string `json:"uuid" xorm:"'uuid' index"`
	SN   string `json:"sn" xorm:"'sn' index"`
	CPU  string `json:"cpu" xorm:"'cpu' index"`
	MAC  string `json:"mac" xorm:"'mac' index"`

	Disabled bool      `json:"disabled"`
	Updated  time.Time `json:"updated" xorm:"updated"`
	Created  time.Time `json:"created" xorm:"created"`
}

type JsonTime

type JsonTime time.Time

func (JsonTime) MarshalJSON

func (t JsonTime) MarshalJSON() ([]byte, error)

type Password

type Password struct {
	Id       int64  `json:"id" xorm:"pk"`
	Password string `json:"password"`
}

Password 密码

type User

type User struct {
	Id       int64     `json:"id"`
	Username string    `json:"username" xorm:"unique"`
	Nickname string    `json:"nickname,omitempty"`
	Email    string    `json:"email,omitempty"`
	Disabled bool      `json:"disabled"`
	Updated  time.Time `json:"updated" xorm:"updated"`
	Created  time.Time `json:"created" xorm:"created"`
}

User 用户

Jump to

Keyboard shortcuts

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