search

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

View Source
var (
	//NotDelete not delete
	NotDelete uint8
	//Delete delete
	Delete uint8 = 1
	//Business log business ID
	Business = 202
	//ActionAddBlack log action
	ActionAddBlack = "ActionAddBlack"
	//ActionDelBlack log action
	ActionDelBlack = "ActionDelBlack"
	//ActionAddInter log action
	ActionAddInter = "ActionAddInter"
	//ActionUpdateInter log action
	ActionUpdateInter = "ActionUpdateInter"
	//ActionUpdateSearch log action
	ActionUpdateSearch = "ActionUpdateSearch"
	//ActionPublishHot log action
	ActionPublishHot = "ActionPublishHot"
	//ActionPublishDark log action
	ActionPublishDark = "ActionPublishDark"
	//ActionOpenAddHot log action
	ActionOpenAddHot = "ActionOpenAddHot"
	//ActionDeleteHot delete hot word
	ActionDeleteHot = "ActionDeleteHot"
	//ActionOpenAddDark log action
	ActionOpenAddDark = "ActionOpenAddDark"
	//ActionDeleteDark action delete darkword
	ActionDeleteDark = "ActionDeleteDark"
	//HotAI hot word from AI
	HotAI uint8 = 1
	//HotOpe hot word from operate
	HotOpe uint8 = 2
)

Functions

This section is empty.

Types

type AddBlack

type AddBlack struct {
	Searchword string `json:"searchword" form:"searchword"  validate:"required"`
}

AddBlack add search Black

func (AddBlack) TableName

func (a AddBlack) TableName() string

TableName search_blacklist

type Black

type Black struct {
	Searchword string `json:"searchword" form:"searchword"  validate:"required"`
	ID         int    `json:"id"`
	Deleted    uint8  `json:"deleted"`
}

Black search Black

func (Black) TableName

func (a Black) TableName() string

TableName search_blacklist

type Dark

type Dark struct {
	ID         uint   `json:"id"`
	Searchword string `json:"searchword" form:"searchword"`
	PV         int64  `json:"pv" form:"pv"`
	Atime      string `json:"atime"`
	Deleted    uint8  `json:"deleted"`
}

Dark search dark list

func (Dark) TableName

func (a Dark) TableName() string

TableName search_darkword

type DarkPubLog

type DarkPubLog struct {
	ID         uint   `json:"id"`
	Searchword string `json:"searchword" form:"searchword"`
	Pv         int64  `json:"pv" form:"pv"`
	Atime      string `json:"atime"`
	Groupid    int64  `json:"groupid"`
}

DarkPubLog dark publish log

func (DarkPubLog) TableName

func (a DarkPubLog) TableName() string

TableName DarkPubLog dark word publish log

type DarkwordOut

type DarkwordOut struct {
	Darkword []Dark `json:"darkword"`
	State    uint8  `json:"state"`
}

DarkwordOut hotword out put with publish state

type History

type History struct {
	ID         int    `json:"id" form:"id"`
	Searchword string `json:"searchword"`
	Pv         int    `json:"pv"`
	Position   int    `json:"position"`
	Atime      string `json:"atime"`
	Tag        string `json:"tag"`
	Deleted    uint8  `json:"deleted"`
}

History search History

func (History) TableName

func (a History) TableName() string

TableName search_histories

type Hot

type Hot struct {
	ID         uint   `json:"-"`
	Searchword string `json:"searchword"`
	PV         int64  `json:"pv"`
	Atime      string
}

Hot search history from ai and search words

func (Hot) TableName

func (a Hot) TableName() string

TableName search box history

type HotPubLog

type HotPubLog struct {
	ID         int       `json:"id" form:"id"`
	Searchword string    `json:"searchword" form:"searchword"`
	Position   int       `json:"position" form:"position"`
	Pv         int       `json:"pv"`
	Tag        string    `json:"tag" form:"tag"`
	Stime      time.Time `json:"stime" form:"stime"`
	Etime      time.Time `json:"etime" form:"etime"`
	Atime      string    `json:"atime"`
	Groupid    int64     `json:"groupid"`
}

HotPubLog hotword publish log

func (HotPubLog) TableName

func (a HotPubLog) TableName() string

TableName DarkPubLog dark word publish log

type HotwordOut

type HotwordOut struct {
	Hotword []Intervene `json:"hotword"`
	State   uint8       `json:"state"`
}

HotwordOut hotword out put with publish state

type Intervene

type Intervene struct {
	ID         int       `json:"id" form:"id"`
	Searchword string    `json:"searchword" form:"searchword"`
	Rank       int       `json:"position" form:"position"`
	Pv         int       `json:"pv"`
	Tag        string    `json:"tag" form:"tag"`
	Stime      time.Time `json:"stime" form:"stime"`
	Etime      time.Time `json:"etime" form:"etime"`
	Deleted    uint8     `json:"deleted"`
}

Intervene search intervene word

func (Intervene) TableName

func (a Intervene) TableName() string

TableName search_intervene

type InterveneAdd

type InterveneAdd struct {
	ID         int       `json:"id" form:"id"`
	Searchword string    `json:"searchword" form:"searchword"`
	Rank       int       `json:"position" form:"position"`
	Tag        string    `json:"tag" form:"tag"`
	Stime      time.Time `json:"stime" form:"stime"`
	Etime      time.Time `json:"etime" form:"etime"`
}

InterveneAdd add search intervene word

func (InterveneAdd) TableName

func (a InterveneAdd) TableName() string

TableName InterveneAdd search_intervene

type OpenDark

type OpenDark struct {
	Date   string `json:"date"`
	Values []Dark `json:"values"`
}

OpenDark open api for search add dark word every day

type OpenHot

type OpenHot struct {
	Date   string `json:"date"`
	Values []Hot  `json:"values"`
}

OpenHot open api for searhc add hot every day

type PublishState

type PublishState struct {
	Date  string
	State bool
}

PublishState hot word publish state

Jump to

Keyboard shortcuts

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