blog

package
v0.0.0-...-9b6a88f Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const USER_SEX_FEMALE = 0
View Source
const USER_SEX_MALE = 1
View Source
const USER_SEX_UNKNOWN = 2

Variables

View Source
var SEX2STR = map[int]string{
	USER_SEX_FEMALE:  "female",
	USER_SEX_MALE:    "male",
	USER_SEX_UNKNOWN: "unknown",
}
View Source
var STR2SEX = map[string]int{
	"female":  USER_SEX_FEMALE,
	"male":    USER_SEX_MALE,
	"unknown": USER_SEX_UNKNOWN,
	"":        USER_SEX_UNKNOWN,
}

Functions

This section is empty.

Types

type User

type User struct {
	eel.Model
	Unionid    string `gorm:"size:255"`
	IsActive   bool   `gorm:"default:true"`
	CorpUserId int    `gorm:"default:0"`
	Code       string `gorm:"size:32"`

	//基本信息
	Name     string `gorm:"size:52"`
	Avatar   string `gorm:"size:1024"`
	Password string `gorm:"size:52"`
	Sex      int

	//其他信息
	Source string `gorm:"size:52"`
}

User

func (*User) TableName

func (this *User) TableName() string

Jump to

Keyboard shortcuts

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