vo

package
v0.0.0-...-1500949 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBBSArticles

func GetBBSArticles() (preForumPost []po.PreForumPost)

func QueryBBSByKeyword

func QueryBBSByKeyword(keyword string) []*po.MinaArticle

Types

type Article

type Article struct {
	ID        uint      `json:"id"`
	Title     string    `json:"title"`
	Content   string    `json:"content"`
	Flag      uint      `json:"flag"`
	CreatedBy uint      `json:"created_by"`
	CreatedAt time.Time `json:"created_at"`
}

func FromPoArticle

func FromPoArticle(pArticle *po.Article) *Article

func FromPoArticles

func FromPoArticles(pArticles []*po.Article) (articles []*Article)
type Carousel struct {
	ID     uint   `json:"id"`
	Href   string `json:"href"`
	Image  string `json:"image"`
	Title  string `json:"title"`
	Flag   uint   `json:"flag"`
	Status uint   `json:"status"`
}

func FromPoCarousel

func FromPoCarousel(pCarousel *po.Carousel) *Carousel

func FromPoCarousels

func FromPoCarousels(pCarousels []*po.Carousel) (vCarousels []*Carousel)

func ListCarousel

func ListCarousel() []*Carousel

type ListArticleReq

type ListArticleReq struct {
}

type ListArticleResp

type ListArticleResp struct {
	Result   []*Article `json:"result"`
	CurPage  uint       `json:"curPage"`
	PageSize uint       `json:"pageSize"`
	Totals   uint       `json:"totals"`
}

Article []*string `json:"Article"`

func ListArticle

func ListArticle() *ListArticleResp

type ListCarouselReq

type ListCarouselReq struct {
}

type ListCarouselResp

type ListCarouselResp struct {
	Square []Square
}

type ListNoticeReq

type ListNoticeReq struct {
}

type ListNoticeResp

type ListNoticeResp struct {
	Square []Square
}

type ListSquareReq

type ListSquareReq struct {
}

type ListSquareResp

type ListSquareResp struct {
	Square []Square
}

type Notice

type Notice struct {
	ID      uint   `json:"id"`
	Href    string `json:"href"`
	Content string `json:"content"`
	Flag    uint   `json:"flag"`
	Status  uint   `json:"status"`
}

func FromPoNotice

func FromPoNotice(pNotice *po.Notice) *Notice

func FromPoNotices

func FromPoNotices(pNotices []*po.Notice) (vNotices []*Notice)

func ListNotice

func ListNotice() []*Notice

type QQRobotQueryReq

type QQRobotQueryReq struct {
	QQ      uint   `form:"qq"`
	Group   uint   `form:"group"`
	Command string `form:"command"`
	Message string `form:"message"`
}

type QQRobotQueryResp

type QQRobotQueryResp string

type QueryArticleReq

type QueryArticleReq struct {
}

type QueryArticleResp

type QueryArticleResp struct {
	Article []*string `json:"Article"`
}

type Square

type Square struct {
	ID         uint   `json:"id"`
	TagTypeID  uint   `json:"tag_type_id"`
	Status     int    `json:"status"`
	Sort       uint   `json:"sort"`
	CreateUser uint   `json:"create_user"`
	Title      string `json:"Title"`
	Name       string `json:"name"`
	Image      string `json:"image"`
	Flag       uint   `json:"flag"`
}

func FromPoSquare

func FromPoSquare(square *po.Square) *Square

func FromPoSquares

func FromPoSquares(pSquares []*po.Square) (vSquares []*Square)

func ListSquare

func ListSquare() []*Square

Jump to

Keyboard shortcuts

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