model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileModel added in v0.1.7

type FileModel struct {
	Id         int64  `gorm:"id" json:"id"`
	UUID       int64  `gorm:"uuid" json:"uuid,string"`
	SHA1       string `gorm:"sha1" json:"sha1"`
	UserId     int64  `gorm:"user_id" json:"user_id,string"`
	Name       string `gorm:"name" json:"name"`
	Path       string `gorm:"path" json:"path"`
	Size       int64  `gorm:"size" json:"size"`
	Status     int    `gorm:"status" json:"status"`
	CreateTime string `gorm:"create_time" json:"create_time"`
	UpdateTime string `gorm:"update_time" json:"update_time"`
	Ex1        int    `gorm:"ex1" json:"ex1"`
	Ex2        string `gorm:"ex2" json:"ex2"`
}

type UserFileModel added in v0.1.7

type UserFileModel struct {
	Id       int64  `gorm:"id" json:"id"`
	UserId   int64  `gorm:"user_id" json:"user_id,string"`
	FileId   int64  `gorm:"file_id" json:"file_id,string"`
	FileName string `gorm:"file_name" json:"file_name"`
}

type UserModel

type UserModel struct {
	Id         int64  `gorm:"id" json:"id"`
	UUID       int64  `gorm:"uuid" json:"uuid,string"`
	Username   string `gorm:"username" json:"username"`
	Password   string `gorm:"password" json:"-"`
	CreateTime string `gorm:"create_time" json:"create_time"`
	UpdateTime string `gorm:"update_time" json:"update_time"`
}

Jump to

Keyboard shortcuts

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