model

package
v0.0.0-...-f22805c Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type HotKeywords

type HotKeywords struct {
	Id        uint64    `db:"id"`         // 自增ID
	Keyword   string    `db:"keyword"`    // 关键�
	Count     int64     `db:"count"`      // �索次数
	IsManual  int64     `db:"is_manual"`  // 是å�¦æ‰‹åŠ¨æ·»åŠ
	Status    int64     `db:"status"`     // 状� 1:显示 2:��
	Sort      int64     `db:"sort"`       // 排�
	CreatedAt time.Time `db:"created_at"` // 创建时间
	UpdatedAt time.Time `db:"updated_at"` // 更新时间
}

type HotKeywordsModel

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

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

func NewHotKeywordsModel

func NewHotKeywordsModel(conn sqlx.SqlConn) HotKeywordsModel

NewHotKeywordsModel returns a model for the database table.

type ProductIndices

type ProductIndices struct {
	ProductId uint64    `db:"product_id"` // 商�ID
	Data      string    `db:"data"`       // 索引数�
	Status    int64     `db:"status"`     // 状� 1:正常 2:删除
	CreatedAt time.Time `db:"created_at"` // 创建时间
	UpdatedAt time.Time `db:"updated_at"` // 更新时间
}

type ProductIndicesModel

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

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

func NewProductIndicesModel

func NewProductIndicesModel(conn sqlx.SqlConn) ProductIndicesModel

NewProductIndicesModel returns a model for the database table.

type SearchHistories

type SearchHistories struct {
	Id        uint64    `db:"id"`         // 自增ID
	UserId    uint64    `db:"user_id"`    // 用户ID
	Keyword   string    `db:"keyword"`    // �索关键�
	CreatedAt time.Time `db:"created_at"` // 创建时间
}

type SearchHistoriesModel

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

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

func NewSearchHistoriesModel

func NewSearchHistoriesModel(conn sqlx.SqlConn) SearchHistoriesModel

NewSearchHistoriesModel returns a model for the database table.

type SearchStatistics

type SearchStatistics struct {
	Id          uint64    `db:"id"`           // 自增ID
	Keyword     string    `db:"keyword"`      // �索关键�
	Count       int64     `db:"count"`        // �索次数
	ResultCount int64     `db:"result_count"` // 结果数�
	Date        time.Time `db:"date"`         // 统计日期
	CreatedAt   time.Time `db:"created_at"`   // 创建时间
	UpdatedAt   time.Time `db:"updated_at"`   // 更新时间
}

type SearchStatisticsModel

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

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

func NewSearchStatisticsModel

func NewSearchStatisticsModel(conn sqlx.SqlConn) SearchStatisticsModel

NewSearchStatisticsModel 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