代码拉取完成,页面将自动刷新
package interceptor
/**
* 登录缓存对象
* 非数据库实体
*/
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"` //与登录相关的附属信息
}
/**
* 复制
* @return
*/
func (this *LoginUser) Clone() LoginUser {
result := LoginUser{}
result.GsId = this.GsId
result.GsName = this.GsName
result.GsNo = this.GsNo
result.GsPass = this.GsPass
result.GsSignPass = this.GsSignPass
result.GsType = this.GsType
result.GsOwner = this.GsOwner
result.GiState = this.GiState
result.GdLastDate = this.GdLastDate
result.GsCookie = this.GsCookie
if len(this.Gattached) > 0 {
result.Gattached = map[string]string{}
for key, val := range this.Gattached {
result.Gattached[key] = val
}
}
return result
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。