srv

package
v0.0.0-...-2d78729 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleSrv

type ArticleSrv struct {
}

func NewArticleSrv

func NewArticleSrv() *ArticleSrv

func (*ArticleSrv) Add

func (this *ArticleSrv) Add(article *domain.Article) (err error)

func (*ArticleSrv) AddChapter

func (this *ArticleSrv) AddChapter(article string, chapter *domain.Article) (err error)

func (*ArticleSrv) Delete

func (this *ArticleSrv) Delete(typeName, articleName string) (err error)

func (*ArticleSrv) DeleteChapter

func (this *ArticleSrv) DeleteChapter(typeName, articleName, chapterName string) (err error)

func (*ArticleSrv) Edit

func (this *ArticleSrv) Edit(oldType, oldName string, article *domain.Article) (err error)

func (*ArticleSrv) EditChapter

func (this *ArticleSrv) EditChapter(oldType, oldName, oldChapter string, chapter *domain.Article) (err error)

func (*ArticleSrv) Get

func (this *ArticleSrv) Get(ty, article, chapter string) (a *domain.Article, err error)

type ArticleTypeSrv

type ArticleTypeSrv struct {
}

func NewArticleTypeSrv

func NewArticleTypeSrv() *ArticleTypeSrv

func (*ArticleTypeSrv) Delete

func (this *ArticleTypeSrv) Delete(typeName string) (err error)

func (*ArticleTypeSrv) Edit

func (this *ArticleTypeSrv) Edit(typeName string, articleType *domain.ArticleType) (err error)

Jump to

Keyboard shortcuts

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