entity

package
v0.0.0-...-ac9090e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoGenerated

type AutoGenerated []struct {
	ID                     string        `json:"id"`
	CreatedAt              string        `json:"created_at"`
	UpdatedAt              string        `json:"updated_at"`
	PromotedAt             string        `json:"promoted_at"`
	Width                  int           `json:"width"`
	Height                 int           `json:"height"`
	Color                  string        `json:"color"`
	BlurHash               string        `json:"blur_hash"`
	Description            string        `json:"description"`
	AltDescription         string        `json:"alt_description"`
	Urls                   Urls          `json:"urls"`
	Links                  Links         `json:"links"`
	Categories             []interface{} `json:"categories"`
	Likes                  int           `json:"likes"`
	LikedByUser            bool          `json:"liked_by_user"`
	CurrentUserCollections []interface{} `json:"current_user_collections"`
	User                   User          `json:"user"`
}
type Links struct {
	Self             string `json:"self"`
	HTML             string `json:"html"`
	Download         string `json:"download"`
	DownloadLocation string `json:"download_location"`
}

type Resources

type Resources struct {
	ID       string    `json:"id"`
	Icon     string    `json:"icon"`
	Name     string    `json:"name"`
	Tag      string    `json:"tag"`
	Desc     string    `json:"desc"`
	Explain  string    `json:"explain"` //说明
	Url      string    `json:"url"`
	Topping  bool      `json:"topping"` //是否置顶
	CreateAt time.Time `json:"createAt"`
	UpdateAt time.Time `json:"updateAt"`
}

Resources 工具资源

type RotationImage

type RotationImage struct {
	ID          string `json:"id"`
	Url         string `json:"url"`
	ResourcesID string `json:"resourcesId"`
}

type Urls

type Urls struct {
	Raw     string `json:"raw"`
	Full    string `json:"full"`
	Regular string `json:"regular"`
	Small   string `json:"small"`
	Thumb   string `json:"thumb"`
}

type User

type User struct {
	ID       string   `json:"id"`
	Name     string   `json:"Name"`
	Password string   `json:"password"`
	UserType UserType `json:"userType"`
}

type UserType

type UserType int
const (
	UserTypePublisher UserType = iota + 1 //publisher
	UserTypeWechat                        //wechat
	UserTypeLogin                         //login
	UserTypeTourist                       //touristt

)

func (UserType) String

func (i UserType) String() string

type Wallpaper

type Wallpaper struct {
	Links []string `json:"links"`
}

Jump to

Keyboard shortcuts

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