model

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	StatusCode int    `json:"status_code"`
	MinCursor  int    `json:"min_cursor"`
	MaxCursor  int    `json:"max_cursor"`
	HasMore    int    `json:"has_more"`
	AwemeList  []Item `json:"aweme_list"`
}

type Item

type Item struct {
	AwemeId      string      `json:"aweme_id"`
	Desc         string      `json:"desc"`
	CreateTime   int         `json:"create_time"`
	Author       author      `json:"author"`
	Video        video       `json:"video"`
	IsAds        bool        `json:"is_ads"`
	Duration     int         `json:"duration"`
	GroupId      string      `json:"group_id"`
	AuthorUserId int64       `json:"author_user_id"`
	LongVideo    []longVideo `json:"long_video"`
	Statistics   statistics  `json:"statistics"`
	ShareInfo    shareInfo   `json:"share_info"`
}

type Video

type Video struct {
	gorm.Model
	AwemeId      string `gorm:"unique;not null"`
	AuthorId     string `gorm:"varchar(64)"`
	Nickname     string `gorm:"varchar(64)"`
	Avatar       string `gorm:"varchar(64)"`
	Desc         string `gorm:"varchar(255)"`
	DiggCount    string `gorm:"varchar(32)"`
	CommentCount string `gorm:"varchar(32)"`
	CoverPath    string `gorm:"varchar(255)"`
	VideoPath    string `gorm:"varchar(255)"`
	ShareUrl     string `gorm:"varchar(255)"`
	IsDownload   int    `gorm:"default(0);type:tinyint(1)"`
	Status       int    `gorm:"default(0);type:tinyint(1)"`
}

Jump to

Keyboard shortcuts

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