content

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentService

type ContentService struct {
	dao.BaseDao
	Journal journal.JournalService
}

func (ContentService) AddContent

func (service ContentService) AddContent(article *dao.Content) *result.ActionResult

func (ContentService) AddContentConfig

func (service ContentService) AddContentConfig(db *gorm.DB, company *dao.Organization) error

func (ContentService) AddContentItem

func (service ContentService) AddContentItem(company *dao.Organization, item *dao.ContentItem) *result.ActionResult

func (ContentService) AddSpiderContent

func (service ContentService) AddSpiderContent(OID uint64, ContentName string, ContentSubTypeName string, Author, Title string, FromUrl string, Introduce string, Picture string, Content string, CreatedAt time.Time)

-----------------------

func (ContentService) ChangeContent

func (service ContentService) ChangeContent(article *dao.Content) error

func (ContentService) ChangeContentConfig

func (service ContentService) ChangeContentConfig(OID uint64, fieldName, fieldValue string) error

func (ContentService) DelContent

func (service ContentService) DelContent(ID uint64) error

func (ContentService) FindAllContentSubType

func (service ContentService) FindAllContentSubType(OID uint64) []dao.ContentItemContentSubType

func (ContentService) FindContentByContentItemIDAndContentSubTypeID

func (service ContentService) FindContentByContentItemIDAndContentSubTypeID(ContentItemID uint64, ContentSubTypeID uint64) dao.Content

func (ContentService) FindContentByContentSubTypeID

func (service ContentService) FindContentByContentSubTypeID(ContentSubTypeID uint64) []dao.Content

func (ContentService) FindContentByIDAndNum

func (service ContentService) FindContentByIDAndNum(contentItemIDList []uint64, num int) []dao.Content

func (ContentService) FindContentByTypeID

func (service ContentService) FindContentByTypeID(menusData *dao.MenusData, ContentItemID, ContentSubTypeID, ContentSubTypeChildID uint64) dao.Content

ContentItemID ContentSubTypeID ContentSubTypeChildID

func (ContentService) FindContentItemByType

func (service ContentService) FindContentItemByType(Type dao.ContentTypeType, OID uint64) []dao.ContentItem

func (ContentService) FindContentListByTypeID

func (service ContentService) FindContentListByTypeID(menusData *dao.MenusData, ContentItemID, ContentSubTypeID, ContentSubTypeChildID uint64, _Page int, _Limit int) result.Pager

func (ContentService) FindContentListForLeftRight

func (service ContentService) FindContentListForLeftRight(ContentItemID, ContentSubTypeID, ContentSubTypeChildID uint64, ContentID uint64, ContentCreatedAt time.Time) [2]dao.Content

func (ContentService) FindContentSubTypesByContentItemID

func (service ContentService) FindContentSubTypesByContentItemID(ContentItemID uint64) []dao.ContentSubType

func (ContentService) FindContentSubTypesByContentItemIDAndParentContentSubTypeID

func (service ContentService) FindContentSubTypesByContentItemIDAndParentContentSubTypeID(ContentItemID, ParentContentSubTypeID uint64) []dao.ContentSubType

func (ContentService) FindContentSubTypesByContentItemIDs

func (service ContentService) FindContentSubTypesByContentItemIDs(ContentItemIDs []uint64) []dao.ContentSubType

func (ContentService) FindContentSubTypesByNameAndContentItemID

func (service ContentService) FindContentSubTypesByNameAndContentItemID(Name string, ContentItemID uint64) dao.ContentSubType

func (ContentService) FindContentSubTypesByParentContentSubTypeID

func (service ContentService) FindContentSubTypesByParentContentSubTypeID(ParentContentSubTypeID uint64) []dao.ContentSubType

func (ContentService) GalleryBlock

func (service ContentService) GalleryBlock(OID uint64, num int) ([]dao.ContentItem, []dao.Content)

func (ContentService) GetClassifyByName

func (service ContentService) GetClassifyByName(Name string, ContentItemID, ParentContentSubTypeID uint64) dao.ContentSubType

func (ContentService) GetContentAndAddLook

func (service ContentService) GetContentAndAddLook(context *gweb.Context, ArticleID uint64) *dao.Content

func (ContentService) GetContentByContentItemID

func (service ContentService) GetContentByContentItemID(ContentItemID uint64) *dao.Content

func (ContentService) GetContentByContentItemIDAndContentSubTypeID

func (service ContentService) GetContentByContentItemIDAndContentSubTypeID(ContentItemID, ContentSubTypeID uint64) *dao.Content

func (ContentService) GetContentByContentItemIDAndTitle

func (service ContentService) GetContentByContentItemIDAndTitle(ContentItemID uint64, Title string) *dao.Content

func (ContentService) GetContentByID

func (service ContentService) GetContentByID(ID uint64) *dao.Content

func (ContentService) GetContentByTitle

func (service ContentService) GetContentByTitle(Orm *gorm.DB, Title string) *dao.Content

func (ContentService) GetContentConfig

func (service ContentService) GetContentConfig(db *gorm.DB, OID uint64) *dao.ContentConfig

func (ContentService) GetContentItemByID

func (service ContentService) GetContentItemByID(ID uint64) dao.ContentItem

func (ContentService) GetContentItemByIDAndOID

func (service ContentService) GetContentItemByIDAndOID(ID, OID uint64) dao.ContentItem

func (ContentService) GetContentItemByNameAndOID

func (service ContentService) GetContentItemByNameAndOID(Name string, OID uint64) dao.ContentItem

func (ContentService) GetContentItemDefault

func (service ContentService) GetContentItemDefault(db *gorm.DB, OID uint64) *dao.ContentItem

func (ContentService) GetContentItemIDs

func (service ContentService) GetContentItemIDs(OID uint64) []uint64

func (ContentService) GetContentSubTypeAllIDByID

func (service ContentService) GetContentSubTypeAllIDByID(ContentItemID, ContentSubTypeID uint64) []uint64

获取ID,返回子类ID,包括本身

func (ContentService) GetContentSubTypeByID

func (service ContentService) GetContentSubTypeByID(ID uint64) dao.ContentSubType

func (ContentService) GetContentSubTypeByNameContentItemIDParentContentSubTypeID

func (service ContentService) GetContentSubTypeByNameContentItemIDParentContentSubTypeID(Name string, ContentItemID, ParentContentSubTypeID uint64) dao.ContentSubType

func (ContentService) HaveContentByTitle

func (service ContentService) HaveContentByTitle(ContentItemID, ContentSubTypeID uint64, Title string) bool

func (ContentService) ListContentItemByOID

func (service ContentService) ListContentItemByOID(OID uint64) []dao.ContentItem

func (ContentService) ListContentType

func (service ContentService) ListContentType() []dao.ContentType

func (ContentService) ListContentTypeByType

func (service ContentService) ListContentTypeByType(Type string) dao.ContentType

Jump to

Keyboard shortcuts

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