content

package
v0.0.0-...-33ecd2b Latest Latest
Warning

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

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

Documentation

Overview

*

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

*

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

*

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

*

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

*

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

*

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IArticle

type IArticle interface {
	// 获取领域编号
	GetDomainId() int

	// 获取值
	GetValue() *ValueArticle

	// 设置值
	SetValue(*ValueArticle) error

	// 保存
	Save() (int, error)
}

文章

type IContent

type IContent interface {
	// 获取聚合根编号
	GetAggregateRootId() int

	// 创建页面
	CreatePage(*ValuePage) IPage

	// 获取页面
	GetPage(id int) IPage

	// 根据字符串标识获取页面
	GetPageByStringIndent(indent string) IPage

	// 删除页面
	DeletePage(id int) error

	// 创建文章
	CreateArticle(*ValuePage) IArticle

	// 获取文章
	GetArticle(id int) IArticle

	// 获取文章列表
	GetArticleList(categoryId int, start, over int) []IArticle

	// 删除文章
	DeleteArticle(id int) error
}

type IContentRep

type IContentRep interface {
	// 获取内容
	GetContent(partnerId int) IContent

	// 根据编号获取页面
	GetPageById(partnerId, id int) *ValuePage

	// 根据标识获取页面
	GetPageByStringIndent(partnerId int, indent string) *ValuePage

	// 删除页面
	DeletePage(partnerId, id int) error

	// 保存页面
	SavePage(partnerId int, v *ValuePage) (int, error)
}

type IPage

type IPage interface {
	// 获取领域编号
	GetDomainId() int

	// 获取值
	GetValue() *ValuePage

	// 设置值
	SetValue(*ValuePage) error

	// 保存
	Save() (int, error)
}

type ValueArticle

type ValueArticle struct {
}

type ValuePage

type ValuePage struct {
	// 编号
	Id int `db:"id" pk:"yes" auto:"yes"`

	// 商户编号
	PartnerId int `db:"partner_id"`

	// 标题
	Title string `db:"title"`

	// 字符标识
	StrIndent string `db:"str_indent"`

	// 关键词
	KeyWord string `db:"keyword"`

	// 描述
	Description string `db:"description"`

	// 样式表地址
	CssPath string `db:"css_path"`

	// 内容
	Body string `db:"body"`

	// 修改时间
	UpdateTime int64 `db:"update_time"`

	// 是否启用
	Enabled int `db:"enabled"`
}

Jump to

Keyboard shortcuts

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