post

package
v0.0.0-...-82e7740 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

generated by xgen -- DO NOT EDIT

generated by xgen -- DO NOT EDIT

generated by xgen -- DO NOT EDIT

generated by xgen -- DO NOT EDIT

generated by xgen -- DO NOT EDIT

generated by xgen -- DO NOT EDIT

generated by xgen -- DO NOT EDIT

generated by xgen -- DO NOT EDIT

Index

Constants

This section is empty.

Variables

View Source
var (
	MENU_ENTITY           = schema.TABLE("sys_post_menu", "POST MENU")
	MENU_ENTITY_ID        = MENU_ENTITY.PRIMARY("id", "ID")
	MENU_ENTITY_MEMO      = MENU_ENTITY.COLUMN("memo", "MEMO")
	MENU_ENTITY_CREATES   = MENU_ENTITY.COLUMN("creates", "CREATES")
	MENU_ENTITY_CREATER   = MENU_ENTITY.CREATER("creater", "CREATER")
	MENU_ENTITY_CREATED   = MENU_ENTITY.CREATED("created", "CREATED")
	MENU_ENTITY_MODIFIER  = MENU_ENTITY.MODIFIER("modifier", "MODIFIER")
	MENU_ENTITY_MODIFIED  = MENU_ENTITY.MODIFIED("modified", "MODIFIED")
	MENU_ENTITY_VERSION   = MENU_ENTITY.VERSION("version", "VERSION")
	MENU_ENTITY_DELETION  = MENU_ENTITY.DELETION("deletion", "DELETION")
	MENU_ENTITY_ARTIFICAL = MENU_ENTITY.COLUMN("artifical", "ARTIFICAL")
	MENU_ENTITY_HISTORY   = MENU_ENTITY.COLUMN("history", "HISTORY")
	MENU_ENTITY_POST_ID   = MENU_ENTITY.COLUMN("post_id", "POST_ID")
	MENU_ENTITY_MENU_ID   = MENU_ENTITY.COLUMN("menu_id", "MENU_ID")
)
View Source
var (
	ENTITY              = schema.TABLE("sys_post", "POST")
	ENTITY_ID           = ENTITY.PRIMARY("id", "ID")
	ENTITY_CODE         = ENTITY.COLUMN("code", "CODE")
	ENTITY_NAME         = ENTITY.COLUMN("name", "NAME")
	ENTITY_FULLNAME     = ENTITY.COLUMN("fullname", "FULLNAME")
	ENTITY_GENRE        = ENTITY.COLUMN("genre", "GENRE")
	ENTITY_LEAF         = ENTITY.COLUMN("leaf", "LEAF")
	ENTITY_GRADE        = ENTITY.COLUMN("grade", "GRADE")
	ENTITY_ORDINAL      = ENTITY.COLUMN("ordinal", "ORDINAL")
	ENTITY_PARENT_ID    = ENTITY.COLUMN("parent_id", "PARENT_ID")
	ENTITY_PARENT_IDS   = ENTITY.COLUMN("parent_ids", "PARENT_IDS")
	ENTITY_PARENT_CODES = ENTITY.COLUMN("parent_codes", "PARENT_CODES")
	ENTITY_PARENT_NAMES = ENTITY.COLUMN("parent_names", "PARENT_NAMES")
	ENTITY_MEMO         = ENTITY.COLUMN("memo", "MEMO")
	ENTITY_CREATES      = ENTITY.COLUMN("creates", "CREATES")
	ENTITY_CREATER      = ENTITY.CREATER("creater", "CREATER")
	ENTITY_CREATED      = ENTITY.CREATED("created", "CREATED")
	ENTITY_MODIFIER     = ENTITY.MODIFIER("modifier", "MODIFIER")
	ENTITY_MODIFIED     = ENTITY.MODIFIED("modified", "MODIFIED")
	ENTITY_VERSION      = ENTITY.VERSION("version", "VERSION")
	ENTITY_DELETION     = ENTITY.DELETION("deletion", "DELETION")
	ENTITY_ARTIFICAL    = ENTITY.COLUMN("artifical", "ARTIFICAL")
	ENTITY_HISTORY      = ENTITY.COLUMN("history", "HISTORY")
	ENTITY_MENU_IDS     = ENTITY.TRANSIENT("menu_ids", "MENU IDS")
)
View Source
var MenuMgr = &MenuManager{
	Manager: service.Manager{
		Entity: func() entity.Interface {
			return NewMenuEntity()
		},
		Entities: func() entity.Interfaces {
			return NewMenuEntities(10)
		},
	},
}
View Source
var Mgr = &Manager{
	Manager: service.Manager{
		Entity: func() entity.Interface {
			return NewEntity()
		},
		Entities: func() entity.Interfaces {
			return NewEntities(10)
		},
	},
}

Functions

func SetPriority

func SetPriority(value int)

Types

type Controller

type Controller struct {
	controller.JSONTreeController
}

type Entities

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

func NewEntities

func NewEntities(v int) *Entities

func (*Entities) Append

func (me *Entities) Append(v entity.Interface)

func (*Entities) Cap

func (me *Entities) Cap() int

func (*Entities) Index

func (me *Entities) Index(v int) entity.Interface

func (*Entities) JSON

func (me *Entities) JSON() string

func (*Entities) Len

func (me *Entities) Len() int

func (*Entities) Make

func (me *Entities) Make(cap int)

func (*Entities) New

func (me *Entities) New() entity.Interface

func (*Entities) Slice

func (me *Entities) Slice() interface{}

func (*Entities) Value

func (me *Entities) Value(v int) *Entity

func (*Entities) Values

func (me *Entities) Values() []*Entity

type Entity

type Entity struct {
	entity.Tree
	// contains filtered or unexported fields
}

POST Entity. @entity(module:"post" project:"sys")

func NewEntity

func NewEntity() *Entity

func (*Entity) Column

func (me *Entity) Column(field string) (schema.Column, bool)

func (*Entity) Columns

func (me *Entity) Columns() []schema.Column

func (*Entity) ExcelColumns

func (me *Entity) ExcelColumns() []string

func (*Entity) Get

func (me *Entity) Get(column string) interface{}

func (*Entity) GetPtr

func (me *Entity) GetPtr(column string) interface{}

func (*Entity) GetString

func (me *Entity) GetString(field string) string

func (*Entity) JSON

func (me *Entity) JSON() string

func (*Entity) MenuIds

func (me *Entity) MenuIds() string

func (*Entity) Names

func (me *Entity) Names() []string

func (Entity) New

func (me Entity) New() entity.Interface

func (*Entity) SetMenuIds

func (me *Entity) SetMenuIds(v string)

func (*Entity) SetString

func (me *Entity) SetString(field, value string) error

func (*Entity) Table

func (me *Entity) Table() schema.Table

func (*Entity) Type

func (me *Entity) Type(column string) (entity.Type, bool)

func (*Entity) Validate

func (me *Entity) Validate() error

func (*Entity) Value

func (me *Entity) Value() *Entity

type Manager

type Manager struct {
	service.Manager
}

func (*Manager) Save

func (me *Manager) Save(p xtype.Principal, e entity.Interface) error
type MenuController struct {
	controller.JSONController
}
type MenuEntities struct {
	// contains filtered or unexported fields
}

func NewMenuEntities

func NewMenuEntities(v int) *MenuEntities
func (me *MenuEntities) Append(v entity.Interface)
func (me *MenuEntities) Cap() int
func (me *MenuEntities) Index(v int) entity.Interface
func (me *MenuEntities) JSON() string
func (me *MenuEntities) Len() int
func (me *MenuEntities) Make(cap int)
func (me *MenuEntities) New() entity.Interface
func (me *MenuEntities) Slice() interface{}
func (me *MenuEntities) Value(v int) *MenuEntity
func (me *MenuEntities) Values() []*MenuEntity
type MenuEntity struct {
	entity.Sys
	// contains filtered or unexported fields
}

POST MENU Entity. @entity(module:"post_menu" project:"sys" relationship:"slave")

func NewMenuEntity

func NewMenuEntity() *MenuEntity
func (me *MenuEntity) Column(field string) (schema.Column, bool)
func (me *MenuEntity) Columns() []schema.Column
func (me *MenuEntity) ExcelColumns() []string
func (me *MenuEntity) Get(column string) interface{}
func (me *MenuEntity) GetPtr(column string) interface{}
func (me *MenuEntity) GetString(field string) string
func (me *MenuEntity) JSON() string
func (me *MenuEntity) MenuId() string
func (me *MenuEntity) Names() []string
func (me MenuEntity) New() entity.Interface
func (me *MenuEntity) PostId() string
func (me *MenuEntity) SetMenuId(v string)
func (me *MenuEntity) SetPostId(v string)
func (me *MenuEntity) SetString(field, value string) error
func (me *MenuEntity) Table() schema.Table
func (me *MenuEntity) Type(column string) (entity.Type, bool)
func (me *MenuEntity) Validate() error
func (me *MenuEntity) Value() *MenuEntity
type MenuManager struct {
	service.Manager
}

Jump to

Keyboard shortcuts

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