interceptor

package module
v0.0.0-...-27d9aec Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor struct{}

--拦截器--//

func (Interceptor) Check

func (inter Interceptor) Check(ctx ginutil.Context) bool

*

  • 拦截操作
  • @param ctx
  • @return

func (Interceptor) Import

func (ic Interceptor) Import()

引入操作

type LoginUser

type LoginUser struct {
	Id       string            `json:"id" gorm:"column:Id; type:varchar"`       //用户编号
	Name     string            `json:"name" gorm:"column:Name; type:varchar"`   //姓名
	No       string            `json:"no" gorm:"column:No; type:varchar"`       //工号
	Pass     string            `json:"-" gorm:"column:Pass; type:varchar"`      //密码
	SignPass string            `json:"-" gorm:"column:SignPass; type:varchar"`  //手势密码
	Type     string            `json:"type" gorm:"column:Type; type:varchar"`   //用户类型编号
	Owner    string            `json:"owner" gorm:"column:Owner; type:varchar"` //用户来源
	State    int               `json:"state" gorm:"column:State; type:int"`     //状态(-1,人员表人员被删除,1表示正常状态,2人员停用,)
	LastDate int64             `json:"lastDate"`                                //最后访问时间
	Token    string            `json:"token"`                                   //分配的Token
	Device   int               `json:"device"`                                  //设备类型,1:PC,2:手机,3:平板,4.....
	Attached map[string]string `json:"attached"`                                //与登录相关的附属信息
}

*

  • 登录缓存对象
  • 非数据库实体

func (*LoginUser) Clone

func (o *LoginUser) Clone() LoginUser

*

  • 复制
  • @return

Jump to

Keyboard shortcuts

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