models

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

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

Go to latest
Published: Feb 18, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyswarnAdd

func SyswarnAdd(msg string, clientIp string)

Types

type User

type User struct {
	orm.BaseModel

	ID                  int64     `json:"id"`
	UserName            string    `json:"userName"`
	Password            string    `json:"password"`
	Role                int       `json:"role"`
	Denied              bool      `json:"denied"`
	Email               string    `json:"email"`
	LastErrorLoginTime  time.Time `json:"last_error_login_time,int64"`
	LastErrorLoginTimer int       `json:"last_error_login_timer"`
	CreateTime          time.Time `json:"createTime,int64" orm:"auto_now_add"`
	UpdateTime          time.Time `json:"updateTime,int64" orm:"auto_now"`
}

func (*User) FilterValue

func (this *User) FilterValue()

func (*User) TableName

func (this *User) TableName() string

type UserContext

type UserContext struct {
	orm.BaseModel
	ID         int64     `json:"id"`
	UserId     int64     `json:"userId"`
	UserName   string    `json:"userName"`
	Ip         string    `json:"ip"`
	Role       int       `json:"role"`
	CreateTime time.Time `json:"createTime,int64" orm:"auto_now_add"`
	UpdateTime time.Time `json:"updateTime,int64" orm:"auto_now"`
}

func (*UserContext) TableName

func (this *UserContext) TableName() string

Jump to

Keyboard shortcuts

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