Documentation ¶
Index ¶
- type ArticleSrv
- func (this *ArticleSrv) Add(article *domain.Article) (err error)
- func (this *ArticleSrv) AddChapter(article string, chapter *domain.Article) (err error)
- func (this *ArticleSrv) Delete(typeName, articleName string) (err error)
- func (this *ArticleSrv) DeleteChapter(typeName, articleName, chapterName string) (err error)
- func (this *ArticleSrv) Edit(oldType, oldName string, article *domain.Article) (err error)
- func (this *ArticleSrv) EditChapter(oldType, oldName, oldChapter string, chapter *domain.Article) (err error)
- func (this *ArticleSrv) Get(ty, article, chapter string) (a *domain.Article, err error)
- type ArticleTypeSrv
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) 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)
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)
Click to show internal directories.
Click to hide internal directories.