models

package
v0.0.0-...-59d3035 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePjArticle

func CreatePjArticle(m *PjArticleModel) (int, error)

func CreatePjType

func CreatePjType(m *PjTypeModel) (int, error)

func DeletePjArticleById

func DeletePjArticleById(id int) (int, error)

func DeletePjTypeById

func DeletePjTypeById(id int) (int, error)

func PjArticleAttributes

func PjArticleAttributes() map[string]string

func PjTypeAttributes

func PjTypeAttributes() map[string]string

func UpdatePjArticle

func UpdatePjArticle(m *PjArticleModel) error

func UpdatePjType

func UpdatePjType(m *PjTypeModel) error

Types

type PjArticleModel

type PjArticleModel struct {
	ID           int    `orm:"column(article_id);pk;auto"`
	ArticleTitle string `orm:"column(article_title)"`
	TypeId       int    `orm:"column(type_id)"`
}

func GetAllPjArticle

func GetAllPjArticle() (ms []PjArticleModel, err error)

func GetPjArticleById

func GetPjArticleById(id int) (PjArticleModel, error)

func SearchPjArticle

func SearchPjArticle(fields []string, limit int, offset int, orderby []string, sort string) []PjArticleModel

func (*PjArticleModel) TableName

func (t *PjArticleModel) TableName() string

type PjTypeModel

type PjTypeModel struct {
	ID       int    `orm:"column(type_id);pk;auto"`
	TypeName string `orm:"column(type_name)"`
}

func GetAllPjType

func GetAllPjType() (ms []PjTypeModel, err error)

func GetPjTypeById

func GetPjTypeById(id int) (PjTypeModel, error)

func SearchPjType

func SearchPjType(fields []string, limit int, offset int, orderby []string, sort string) []PjTypeModel

func (*PjTypeModel) TableName

func (t *PjTypeModel) TableName() string

Jump to

Keyboard shortcuts

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