tokenModel

package
v0.0.0-...-fdfd418 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: Apache-2.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 UserToken

type UserToken struct {
	UserId     int64  `json:"userId" gorm:"primary_key; not null"`
	Token      string `json:"token" gorm:"type:varchar(200); not null; unique"`
	ExpireTime string `json:"expireTime" gorm:"type:varchar(50); not null"`
	UpdateTime string `json:"updateTime" gorm:"type:varchar(50);"`
}

用户model

func (*UserToken) Save

func (token *UserToken) Save(userId int64, tokenInfo map[string]string)

新增

func (*UserToken) Update

func (token *UserToken) Update(userId int64, tokenInfo map[string]string)

Jump to

Keyboard shortcuts

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