query

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtworkSearch

type ArtworkSearch struct {
	Query               string
	Hybrid              bool
	HybridSemanticRatio float64
	R18                 shared.R18Type
	// [TODO] more filters, need to migrate data
	Paginate
}

需要其他设施

type ArtworkSimilar

type ArtworkSimilar struct {
	ArtworkID ouid.OUID
	R18       shared.R18Type
	Paginate
}

type ArtworksDB

type ArtworksDB struct {
	ArtworksFilter
	Paginate
	Random bool // 随机排序, 默认按 created_at 降序
}

只需要查数据库

type ArtworksFilter

type ArtworksFilter struct {
	Tags       [][]ouid.OUID
	Keywords   [][]string
	R18        shared.R18Type
	ArtistID   ouid.OUID
	HasPicture bool
	HasVideo   bool
	HasUgoira  bool
}

type Paginate

type Paginate struct {
	Limit  int
	Offset int
}

type PicturesPhash

type PicturesPhash struct {
	Input    string
	Distance int
	Limit    int
}

Jump to

Keyboard shortcuts

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