org

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: 14 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

Index

Constants

This section is empty.

Variables

View Source
var (
	ENTITY              = schema.TABLE("sys_org", "ORG")
	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_AREA_ID      = ENTITY.COLUMN("area_id", "AREA_ID")
)
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
}

ORG Entity. @entity(module:"org" project:"sys")

func NewEntity

func NewEntity() *Entity

func (*Entity) AreaId

func (me *Entity) AreaId() string

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) Names

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

func (Entity) New

func (me Entity) New() entity.Interface

func (*Entity) SetAreaId

func (me *Entity) SetAreaId(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
}

Jump to

Keyboard shortcuts

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