post

package
v0.0.0-...-26336ce Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 4 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   []file.LinkFile `json:"files"`
}

func (*Post) Add

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

func (*Post) DelByID

func (p *Post) DelByID(id uint) error

func (*Post) FindById

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

func (*Post) Get

func (p *Post) Get(page service.Page) ([]Post, error)

func (*Post) GetTotalNumber

func (p *Post) GetTotalNumber() (int64, error)

func (*Post) UpdateByID

func (p *Post) UpdateByID(id uint) (*Post, error)

Jump to

Keyboard shortcuts

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