service

package
v0.0.0-...-e2602fe Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBlog

func RegisterBlog(i IBlog)

Types

type IBlog

type IBlog interface {
	Create(ctx context.Context, title string, content string, nickname string) (blog *entity.Blog, err error)
	Edit(ctx context.Context, id uint64, title string, content string, nickname string) (err error)
	GetById(ctx context.Context, id uint64) (blog *entity.Blog, err error)
	GetList(ctx context.Context) (list []*entity.Blog, err error)
	Delete(ctx context.Context, id uint64) (err error)
	BatDelete(ctx context.Context, ids []uint64) (batNo string, err error)
	GetBatDeleteStatus(ctx context.Context, batNo string) (status string, err error)
	BatDeleteConsumer(ctx context.Context, parser *gcmd.Parser) (stopFunc func(), err error)
	Stats(ctx context.Context, param *xxl.RunReq) (msg string)
}

func Blog

func Blog() IBlog

Jump to

Keyboard shortcuts

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