model

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	Name string `json:"name"`
	Size int64  `json:"size"`
	Type string `json:"type"`
	Md5  string `json:"md5"`
	URL  string `json:"url"`
}

FileInfo : the uploaded file information

type PushMsg

type PushMsg struct {
	ResID   int    `json:"res_id" gorm:"column:id"`
	ModID   int    `json:"mod_id" gorm:"column:pool_id"`
	ModName string `json:"mod_name" gorm:"column:name"`
}

PushMsg is used to push to the mobile clients to indicate the mod name to request

type Resource

type Resource struct {
	ID      int64     `json:"id" params:"id"`
	Name    string    `json:"name" params:"name"`
	Version int64     `json:"version" params:"version"`
	PoolID  int64     `json:"pool_id" params:"pool_id"`
	Ctime   time.Time `json:"ctime" params:"ctime"`
	Mtime   time.Time `json:"mtime" params:"mtime"`
}

Resource reprensents the resource table

type ResourceFile

type ResourceFile struct {
	ID         int       `json:"id"`
	Name       string    `json:"name"`
	Type       string    `json:"type"`
	Md5        string    `json:"md5"`
	Size       int       `json:"size"`
	URL        string    `json:"url"`
	ResourceID int       `json:"resource_id"`
	Ctime      time.Time `json:"ctime"`
	Mtime      time.Time `json:"mtime"`
	FileType   int8      `json:"file_type"`
	FromVer    int64     `json:"from_ver"`
	IsDeleted  int8      `json:"is_deleted"`
}

ResourceFile represents the table structure

Jump to

Keyboard shortcuts

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