Documentation ¶
Overview ¶
*
- Copyright 2015 @ 56x.net.
- name : article
- author : jarryliu
- date : 2016-06-27 15:57
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : content
- author : jarryliu
- date : -- :
- description :
- history :
*
- Copyright 2015 @ 56x.net.
- name : pag
- author : jarryliu
- date : -- :
- description :
- history :
Index ¶
- func NewArticle(v *content.Article, m content.IArticleManager, rep content.IArchiveRepo) content.IArticle
- func NewCategory(v *content.ArticleCategory, m *articleManagerImpl, rep content.IArchiveRepo) content.ICategory
- func NewContent(userId int64, rep content.IArchiveRepo) content.IContentAggregateRoot
- type Content
- func (c *Content) ArticleManager() content.IArticleManager
- func (c *Content) CreatePage(v *content.Page) content.IPage
- func (c *Content) DeletePage(id int32) error
- func (c *Content) GetAggregateRootId() int
- func (c *Content) GetPage(id int32) content.IPage
- func (c *Content) GetPageByCode(indent string) content.IPage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArticle ¶
func NewArticle(v *content.Article, m content.IArticleManager, rep content.IArchiveRepo) content.IArticle
func NewCategory ¶
func NewCategory(v *content.ArticleCategory, m *articleManagerImpl, rep content.IArchiveRepo) content.ICategory
func NewContent ¶
func NewContent(userId int64, rep content.IArchiveRepo) content.IContentAggregateRoot
Types ¶
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
func (*Content) ArticleManager ¶
func (c *Content) ArticleManager() content.IArticleManager
ArticleManager 文章服务
func (*Content) CreatePage ¶
CreatePage 创建页面
func (*Content) GetAggregateRootId ¶
GetAggregateRootId 获取聚合根编号
Click to show internal directories.
Click to hide internal directories.