model

package
v0.0.0-...-26cf1d4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	gorm.Model

	ArticleId string `gorm:"column:article_id"`
	UserId    string `gorm:"column:user_id"`

	Subject     string `gorm:"column:subject"`
	SubSubject  string `gorm:"column:sub_subject"`
	Keywords    string `gorm:"column:keywords"`
	Description string `gorm:"column:description"`
	Content     string `gorm:"column:content"`
}

func (*Article) TableName

func (*Article) TableName() string

type Attachment

type Attachment struct {
	gorm.Model

	Path        string // 物理路径
	RelativeUrl string // 相对网站的URL
}

Attachment 附件表

func (*Attachment) TableName

func (*Attachment) TableName() string

type Id

type Id struct {
	gorm.Model
}

type User

type User struct {
	gorm.Model

	UserID   string
	Mail     string
	Password string

	HeadImg  string
	Nickname string
	Sex      int64
	Age      int64
	Height   int64
	Weight   int64

	RegisterTime  *time.Time
	LastLoginTime *time.Time
}

User 用户信息表

func (*User) TableName

func (*User) TableName() string

type UserActionLog

type UserActionLog struct {
	gorm.Model
	Date       string `gorm:"column:date"`
	UserId     string `gorm:"column:user_id"`
	Action     int64  `gorm:"column:action"`
	ActionDesc string `gorm:"column:action_desc"`
}

UserActionLog 用户操作日志表

func (*UserActionLog) TableName

func (*UserActionLog) TableName() string

Jump to

Keyboard shortcuts

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