content

package
v0.0.0-...-1960156 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

*

  • Copyright 2015 @ z3q.net.
  • name : content
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ z3q.net.
  • name : pag
  • author : jarryliu
  • date : -- :
  • description :
  • history :

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContent

func NewContent(partnerId int, rep content.IContentRep) content.IContent

func NewPage

func NewPage(partnerId int, rep content.IContentRep, v *content.ValuePage) content.IPage

Types

type Content

type Content struct {
	// contains filtered or unexported fields
}

func (*Content) CreateArticle

func (this *Content) CreateArticle(*content.ValuePage) content.IArticle

创建文章

func (*Content) CreatePage

func (this *Content) CreatePage(v *content.ValuePage) content.IPage

创建页面

func (*Content) DeleteArticle

func (this *Content) DeleteArticle(id int) error

删除文章

func (*Content) DeletePage

func (this *Content) DeletePage(id int) error

删除页面

func (*Content) GetAggregateRootId

func (this *Content) GetAggregateRootId() int

获取聚合根编号

func (*Content) GetArticle

func (this *Content) GetArticle(id int) content.IArticle

获取文章

func (*Content) GetArticleList

func (this *Content) GetArticleList(categoryId int, start, over int) []content.IArticle

获取文章列表

func (*Content) GetPage

func (this *Content) GetPage(id int) content.IPage

获取页面

func (*Content) GetPageByStringIndent

func (this *Content) GetPageByStringIndent(indent string) content.IPage

根据字符串标识获取页面

type Page

type Page struct {
	// contains filtered or unexported fields
}

func (*Page) GetDomainId

func (this *Page) GetDomainId() int

获取领域编号

func (*Page) GetValue

func (this *Page) GetValue() *content.ValuePage

获取值

func (*Page) Save

func (this *Page) Save() (int, error)

保存

func (*Page) SetValue

func (this *Page) SetValue(v *content.ValuePage) error

设置值

Jump to

Keyboard shortcuts

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