po

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstOrCreateArticleDataFrom

func FirstOrCreateArticleDataFrom(article MinaArticle) (id uint)

func UpdateArticle

func UpdateArticle(article MinaArticle)

Types

type Article

type Article struct {
	gorm.Model
	Name      string `json:"name"`
	Title     string `json:"title"`
	Flag      uint   `json:"flag"`
	Content   string `json:"content"`
	CreatedBy uint   `json:"created_by"`
}

func ListArticle

func ListArticle() (article []*Article)
type Carousel struct {
	gorm.Model
	Image  string
	Click  uint
	Href   string
	Title  string
	Flag   uint
	Status uint
}

func ListCarousel

func ListCarousel() (carousels []*Carousel)

type MinaArticle

type MinaArticle struct {
	gorm.Model
	UUID            string
	AvatarUrl       string
	Nickname        string
	Gender          uint
	Title           string
	Subject         string
	Characters      string
	Details         string
	DataFrom        string
	BirthedProvince string
	BirthedCity     string
	BirthedCountry  string
	BirthedAddress  string
	BirthedAt       time.Time `gorm:"type:datetime"`

	MissedCountry  string
	MissedProvince string
	MissedCity     string
	MissedAddress  string
	MissedAt       time.Time `gorm:"column:missed_at;type:datetime"`
	Handler        string
	Babyid         string
	Category       string
	Height         string
	SyncStatus     int `gorm:"column:syncstatus;default:0"`
}

func QueryBBSByKeywords

func QueryBBSByKeywords(keyword string) (articles []*MinaArticle)

type Notice

type Notice struct {
	gorm.Model
	ID      uint
	Href    string
	Content string
	Name    string `json:"name"`
	Flag    uint
	Status  uint
}

func ListNotice

func ListNotice() (notices []*Notice)

type PreForumPost

type PreForumPost struct {
	// gorm.Model
	Message  string `json:"message"`
	Subject  string `json:"subject"`
	Useip    string `json:"useip"`
	Pid      int64  `json:"pid"`
	Tid      int64  `json:"tid"`
	Authorid int64  `json:"authorid"`
}

func GetBBSArticles

func GetBBSArticles() (preForumPost []PreForumPost)

type Square

type Square struct {
	gorm.Model
	Name string `json:"name"`
}

func ListSquare

func ListSquare() (squares []*Square)

Jump to

Keyboard shortcuts

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