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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeSeason ...
	TypeSeason = "season"
	// TypeItems ...
	TypeItems = "items"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPResponse

type HTTPResponse struct {
	Code int       `json:"code"`
	Data ItemsList `json:"data"`
}

HTTPResponse .

type Item

type Item struct {
	ItemsID int64
	Name    string
	Brief   string
	Img     string
}

Item .

type Items

type Items struct {
	ItemsID int64    `json:"itemsId"`
	Name    string   `json:"name"`
	Img     []string `json:"img"`
}

Items .

type ItemsList

type ItemsList struct {
	Total    int     `json:"total"`
	PageNum  int     `json:"pageNum"`
	PageSize int     `json:"pageSize"`
	List     []Items `json:"list"`
}

ItemsList .

type Match

type Match struct {
	SeasonID int64
	ItemsID  int64
	Type     int
}

Match .

type MatchOperate

type MatchOperate struct {
	OpType   int8  `form:"op_type"`
	SeasonID int64 `form:"season_id"`
	ItemsID  int64 `form:"items_id"`
}

MatchOperate params

type Search struct {
	SeasonID int64 `form:"season_id"`
	ItemsID  int64 `form:"items_id"`
}

Search params

type Season

type Season struct {
	ID    int64  `json:"id"`
	Title string `json:"title"`
}

Season .

type SourceSearch

type SourceSearch struct {
	Type     string `form:"type"`
	Keyword  string `form:"keyword"`
	PageSize int    `form:"pageSize"`
	PageNum  int    `form:"pageNum"`
}

SourceSearch params

type SugList

type SugList struct {
	SeasonId   int64   `json:"season_id"`
	SeasonName string  `json:"season_name"`
	ItemsID    int64   `json:"items_id"`
	ItemsName  string  `json:"items_name"`
	PicURL     string  `json:"head_url"`
	Score      float64 `json:"score"`
	SugURL     string  `json:"pic_url"`
}

SugList sug list

Jump to

Keyboard shortcuts

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