impl

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct {
	// contains filtered or unexported fields
}

依赖MySQL连接, 能与MySQL交互 负责实现Blog Service

func NewImpl

func NewImpl(blog blog.Service) *Impl

func (*Impl) AddTag

func (i *Impl) AddTag(ctx context.Context, req *tag.AddTagRequest) (
	*tag.TagSet, error)

文章添加Tag

func (*Impl) DB

func (i *Impl) DB() *gorm.DB

func (*Impl) Init

func (i *Impl) Init() error

当这个对象初始化的,会获取该对象需要的依赖 需要db这个依赖, 从配置文件中获取

func (*Impl) Name

func (i *Impl) Name() string

func (*Impl) QueryTag

func (i *Impl) QueryTag(ctx context.Context, req *tag.QueryTagRequest) (
	*tag.TagSet, error)

根据TagId查询 Tag的列表

func (*Impl) RemoveTag

func (i *Impl) RemoveTag(ctx context.Context, req *tag.RemoveTagRequest) (
	*tag.TagSet, error)

文章移除Tag

Jump to

Keyboard shortcuts

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