model

package
v0.0.0-...-96417ad Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Register

type Register struct {
	gorm.Model
	UserId   int64  `json:"user_id"`
	Phone    string `json:"phone"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Salt     string `json:"salt"`
}

注册表

func (*Register) TableName

func (r *Register) TableName() string

type UserInfo

type UserInfo struct {
	gorm.Model

	UserId   int64  `json:"user_id"`
	NickName string `json:"nick_name"` //昵称
	Avatar   string `json:"avatar"`    //头像
	Gender   int    `json:"gender"`    //性别
	Online   bool   `json:"online"`    //是否在线 0:false  1:true
	Status   int    `json:"status"`    //用户状态  0:异常  1:正常
}

用户信息表

func (*UserInfo) TableName

func (u *UserInfo) TableName() string

Jump to

Keyboard shortcuts

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