response

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RES_POST

type RES_POST struct {
	ID       int    `json:"id"`
	Name     string `json:"name"`
	Title    string `json:"title"`
	Date     string `json:"date"`
	Abstract string `json:"abstract"`
	Tags     string `json:"tags"`
}

RES_POST 专用于响应的结构体

type RES_POST_BROTHER

type RES_POST_BROTHER struct {
	Name  string `json:"name"`
	Title string `json:"title"`
	Pin   int    `json:"pin"`
}

RES_POST_BROTHER 仅用于获取上下篇

type RES_POST_MORE

type RES_POST_MORE struct {
	Name       string `json:"name"`
	Title      string `json:"title"`
	Date       string `json:"date"`
	Abstract   string `json:"abstract"`
	Content    string `json:"content"`
	Tags       string `json:"tags"`
	Categories string `json:"categories"`
}

RES_POST_MORE 文章详情

type RES_TAG

type RES_TAG struct {
	Tag string `json:"tag"`
}

RES_TAG 全部标签

type RES_ZHUANLAN1

type RES_ZHUANLAN1 struct {
	Link    string   `json:"link"`
	Title   string   `json:"title"`
	Date    string   `json:"date"`
	Posts   []string `json:"posts"`
	Content string   `json:"content"` // 专栏的简要描述
}

RES_ZHUANLAN1 返回前端显示用

type RES_ZHUANLAN2

type RES_ZHUANLAN2 struct {
	Name    string   `json:"name"`
	Title   string   `json:"title"`
	Date    string   `json:"date"`
	Posts   []string `json:"posts"`
	Content string   `json:"content"` // 专栏的简要描述
}

RES_ZHUANLAN2 控制面板用

type RES_ZHUANLAN_DETAIL

type RES_ZHUANLAN_DETAIL struct {
	ID      int     `json:"id"`
	Title   string  `json:"title"`
	Date    string  `json:"date"`
	Posts   []Zpost `json:"posts"`
	Content string  `json:"content"` // 专栏的简要描述
}

type ViewPosts

type ViewPosts struct {
	Name  string `json:"name"`
	View  int    `json:"view"`
	Title string `json:"title"`
}

ViewPosts 访问量

type Zpost

type Zpost struct {
	Name     string `json:"name"`
	Title    string `json:"title"`
	Date     string `json:"date"`
	Abstract string `json:"abstract"`
	Tags     string `json:"tags"`
}

Zpost 专栏详情 包含文章信息

Jump to

Keyboard shortcuts

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