Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentManagementService ¶
type ContentManagementService struct {
ArticleService *article.ArticleService
ContentCategory *content_category.ContentCategoryService
ContentComment *content_comment.ContentCommentService
// contains filtered or unexported fields
}
func NewContentManagementService ¶
func NewContentManagementService(ctx *context.ERPContext) *ContentManagementService
NewContentManagementService creates a new instance of ContentManagementService.
It takes an ERPContext as parameter and returns a pointer to a ContentManagementService.
It uses the ERPContext to initialize the ArticleService, ContentCategoryService, and ContentCommentService. Additionally, it calls the Migrate method of the ContentManagementService to create the necessary database schema.
func (*ContentManagementService) Migrate ¶
func (cs *ContentManagementService) Migrate() error
Click to show internal directories.
Click to hide internal directories.