model

package
v0.0.0-...-0a7425d Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type ImgPool

type ImgPool struct {
	Id          int64     `db:"id"`
	Identity    string    `db:"identity"`
	Hash        string    `db:"hash"`
	Ext         string    `db:"ext"`
	Size        int64     `db:"size"`
	DownloadUrl string    `db:"download_url"`
	CreateTime  time.Time `db:"create_time"`
}

type ImgPoolModel

type ImgPoolModel interface {
	// contains filtered or unexported methods
}

ImgPoolModel is an interface to be customized, add more methods here, and implement the added methods in customImgPoolModel.

func NewImgPoolModel

func NewImgPoolModel(conn sqlx.SqlConn, c cache.CacheConf) ImgPoolModel

NewImgPoolModel returns a model for the database table.

type ShortUrlPool

type ShortUrlPool struct {
	Id          int64     `db:"id"`
	ImgIdentity string    `db:"img_identity"`
	ShortUrl    string    `db:"short_url"`
	DownloadUrl string    `db:"download_url"`
	CreateTime  time.Time `db:"create_time"`
}

type ShortUrlPoolModel

type ShortUrlPoolModel interface {
	// contains filtered or unexported methods
}

ShortUrlPoolModel is an interface to be customized, add more methods here, and implement the added methods in customShortUrlPoolModel.

func NewShortUrlPoolModel

func NewShortUrlPoolModel(conn sqlx.SqlConn, c cache.CacheConf) ShortUrlPoolModel

NewShortUrlPoolModel returns a model for the database table.

Jump to

Keyboard shortcuts

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