post

package
Version: v0.0.0-...-2b5e5cc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	ID      uint        `json:"id"`
	Title   string      `json:"title"`
	Summary string      `json:"summary"`
	Detail  string      `json:"detail"`
	Files   interface{} `json:"files"`

	PageNum  int `form:"page_num" json:"page_num"`   //頁數*筆數,從0(代表第一頁)開始
	PageSize int `form:"page_size" json:"page_size"` //從PageNum之後取出的筆數
}

func (*Post) Add

func (p *Post) Add() (Post, error)

func (*Post) Get

func (p *Post) Get() ([]Post, error)

type Posts

type Posts []Post

Source Files

Jump to

Keyboard shortcuts

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