article

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtList

type ArtList struct {
	Articles []*Meta                 `json:"articles"`
	Type     *model.CreationArtsType `json:"type"`
	Page     *model.ArtPage          `json:"page"`
}

ArtList article for list.

type ArtParam

type ArtParam struct {
	AID             int64    `json:"aid"`
	MID             int64    `json:"mid"`
	Category        int64    `json:"category"`
	State           int32    `json:"state"`
	Reprint         int32    `json:"reprint"`
	TemplateID      int32    `json:"tid"`
	Title           string   `json:"title"`
	BannerURL       string   `json:"banner_url"`
	Content         string   `json:"content"`
	Summary         string   `json:"summary"`
	Tags            string   `json:"tags"`
	ImageURLs       []string `json:"image_urls"`
	OriginImageURLs []string `json:"origin_image_urls"`
	RealIP          string   `json:"-"`
	Action          int      `json:"action"`
	Words           int64    `json:"words"`
	DynamicIntro    string   `json:"dynamic_intro"`
	ActivityID      int64    `json:"activity_id"`
}

ArtParam param for article info input.

type DraftList

type DraftList struct {
	Drafts   []*Meta        `json:"drafts"`
	Page     *model.ArtPage `json:"page"`
	DraftURL string         `json:"draft_url"`
}

DraftList draft list.

type Meta

type Meta struct {
	ID              int64           `json:"id"`
	Title           string          `json:"title"`
	Content         string          `json:"content"`
	Summary         string          `json:"summary"`
	BannerURL       string          `json:"banner_url"`
	Reason          string          `json:"reason"`
	TemplateID      int32           `json:"template_id"`
	State           int32           `json:"state"`
	Reprint         int32           `json:"reprint"`
	ImageURLs       []string        `json:"image_urls"`
	OriginImageURLs []string        `json:"origin_image_urls"`
	Tags            []string        `json:"tags"`
	Category        *model.Category `json:"category"`
	Author          *model.Author   `json:"author"`
	Stats           *model.Stats    `json:"stats"`
	PTime           time.Time       `json:"publish_time"`
	CTime           time.Time       `json:"ctime"`
	MTime           time.Time       `json:"mtime"`
	ViewURL         string          `json:"view_url"`
	EditURL         string          `json:"edit_url"`
	IsPreview       int             `json:"is_preview"`
	DynamicIntro    string          `json:"dynamic_intro"`
}

Meta article detail.

Jump to

Keyboard shortcuts

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