interceptor

package
v0.0.0-...-0090c64 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 12 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 *gin.Context) bool

*

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

func (Interceptor) Import

func (ic Interceptor) Import()

引入操作

type LoginUser

type LoginUser struct {
	GsId       string            `json:"sId" gorm:"column:sId; type:varchar"`       //用户编号
	GsName     string            `json:"sName" gorm:"column:sName; type:varchar"`   //姓名
	GsNo       string            `json:"sNo" gorm:"column:sNo; type:varchar"`       //工号
	GsPass     string            `json:"-" gorm:"column:sPass; type:varchar"`       //密码
	GsSignPass string            `json:"-" gorm:"column:sSignPass; type:varchar"`   //手势密码
	GsType     string            `json:"sType" gorm:"column:sType; type:varchar"`   //用户类型编号
	GsOwner    string            `json:"sOwner" gorm:"column:sOwner; type:varchar"` //用户来源
	GiState    int               `json:"iState" gorm:"column:iState; type:int"`     //状态(-1,人员表人员被删除,1表示正常状态,2人员停用,)
	GdLastDate int64             `json:"dLastDate"`                                 //最后访问时间
	GsCookie   string            `json:"sCookie"`                                   //分配的Cookie
	GiDevice   int               `json:"iDevice"`                                   //设备类型,1:PC,2:手机,3:平板,4.....
	Gattached  map[string]string `json:"attached"`                                  //与登录相关的附属信息
}

*

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

func (*LoginUser) Clone

func (this *LoginUser) Clone() LoginUser

*

  • 复制
  • @return

type MonitorController

type MonitorController struct{}

@Controller 监控信息控制器

func (MonitorController) CreatePollCode

func (control MonitorController) CreatePollCode(ctx *gin.Context) interface{}

#region @Api {title=取系统序列号} @return {type=json explainType=MsgEmity<string> explain=返回对象} @RequestMapping {name=CreatePollCode type=POST value=/monitor/pollcode} #endregion

func (MonitorController) Load

func (control MonitorController) Load(ctx *gin.Context) interface{}

#region @Api {title=读取系统硬件信息} @return {type=json explainType=MsgEmity<map> explain=返回对象} @RequestMapping {name=Load type=POST value=/monitor/load} #endregion

func (MonitorController) Logs

func (control MonitorController) Logs(ctx *gin.Context) interface{}

#region @Api {title=读取系统日志} @return {type=json explainType=MsgEmity<string> explain=返回对象} @RequestMapping {name=Load type=POST value=/monitor/logs} #endregion

Jump to

Keyboard shortcuts

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