article

package
v0.0.0-...-70948f9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cre

func Cre(ctx context.Context, in *model.ArticleInput) (lastId model.Id, err error)

Cre 创建文章

func Del

func Del(ctx context.Context, id model.Id, isReal bool) (err error)

Del 删除文章

func Hist

func Hist(ctx context.Context, id model.Id) (err error)

Hist 为文章增加一个点击数

func IsExist

func IsExist(ctx context.Context, id model.Id) bool

IsExist 根据id判断一个文章是否存在

func List

func List(ctx context.Context, query *model.ArticleQuery) (list []entity.Article, total uint, err error)

List 读取文章列表

func ReCre

func ReCre(ctx context.Context, id model.Id) (err error)

ReCre 重新创建已经删除的文章

func Show

func Show(ctx context.Context, id model.Id) (info *entity.Article, err error)

Show 读取文章详情

func Upd

func Upd(ctx context.Context, id model.Id, in *model.ArticleInput) (err error)

Upd 更新文章

func UpdLastedAt

func UpdLastedAt(ctx context.Context, id model.Id) (err error)

UpdLastedAt 更新最后阅读时间

Types

This section is empty.

Jump to

Keyboard shortcuts

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