entity

package
v0.1.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	contenttype.ContentCommon `boil:",bind"`

	Body fieldtype.RichText `boil:"body" json:"body" toml:"body" yaml:"body"`

	Coverimage fieldtype.Text `boil:"coverimage" json:"coverimage" toml:"coverimage" yaml:"coverimage"`

	Editors fieldtype.Text `boil:"editors" json:"editors" toml:"editors" yaml:"editors"`

	Summary fieldtype.RichText `boil:"summary" json:"summary" toml:"summary" yaml:"summary"`

	Title fieldtype.Text `boil:"title" json:"title" toml:"title" yaml:"title"`

	contenttype.Location `boil:"location,bind"`
}

func (*Article) ContentType

func (c *Article) ContentType() string

func (*Article) Definition

func (c *Article) Definition(language ...string) definition.ContentType

func (*Article) Delete

func (c *Article) Delete(ctx context.Context, transaction ...*sql.Tx) error

Delete content only

func (*Article) GetLocation

func (c *Article) GetLocation() *contenttype.Location

func (*Article) GetName

func (c *Article) GetName() string

func (*Article) IdentifierList

func (c *Article) IdentifierList() []string

Get identifier list of fields(NOT including data_fields )

func (*Article) SetValue

func (c *Article) SetValue(identifier string, value interface{}) error

Set value to a field

func (*Article) Store

func (c *Article) Store(ctx context.Context, transaction ...*sql.Tx) error

Store content. Note: it will set id to CID after success

func (*Article) StoreWithLocation

func (c *Article) StoreWithLocation()

func (*Article) TableName

func (c *Article) TableName() string

func (*Article) ToDBValues

func (c *Article) ToDBValues() map[string]interface{}

Get map of the all fields(including data_fields) todo: cache this? (then you need a reload?)

func (*Article) ToMap

func (c *Article) ToMap() map[string]interface{}

func (*Article) Value

func (c *Article) Value(identifier string) interface{}

Get field value

type File

type File struct {
	contenttype.ContentEntity `boil:",bind"`

	Filetype fieldtype.Text `boil:"filetype" json:"filetype" toml:"filetype" yaml:"filetype"`

	Path fieldtype.Text `boil:"path" json:"path" toml:"path" yaml:"path"`

	Title fieldtype.Text `boil:"title" json:"title" toml:"title" yaml:"title"`
}

func (*File) ContentType

func (c *File) ContentType() string

func (*File) Definition

func (c *File) Definition(language ...string) definition.ContentType

func (*File) Delete

func (c *File) Delete(ctx context.Context, transaction ...*sql.Tx) error

Delete content only

func (*File) GetLocation

func (c *File) GetLocation() *contenttype.Location

func (*File) GetName

func (c *File) GetName() string

func (*File) IdentifierList

func (c *File) IdentifierList() []string

Get identifier list of fields(NOT including data_fields )

func (*File) SetValue

func (c *File) SetValue(identifier string, value interface{}) error

Set value to a field

func (*File) Store

func (c *File) Store(ctx context.Context, transaction ...*sql.Tx) error

Store content. Note: it will set id to ID after success

func (*File) StoreWithLocation

func (c *File) StoreWithLocation()

func (*File) TableName

func (c *File) TableName() string

func (*File) ToDBValues

func (c *File) ToDBValues() map[string]interface{}

Get map of the all fields(including data_fields) todo: cache this? (then you need a reload?)

func (*File) ToMap

func (c *File) ToMap() map[string]interface{}

func (*File) Value

func (c *File) Value(identifier string) interface{}

Get field value

type Folder

type Folder struct {
	contenttype.ContentCommon `boil:",bind"`

	FolderType fieldtype.Text `boil:"folder_type" json:"folder_type" toml:"folder_type" yaml:"folder_type"`

	Summary fieldtype.RichText `boil:"summary" json:"summary" toml:"summary" yaml:"summary"`

	Title fieldtype.Text `boil:"title" json:"title" toml:"title" yaml:"title"`

	contenttype.Location `boil:"location,bind"`
}

func (*Folder) ContentType

func (c *Folder) ContentType() string

func (*Folder) Definition

func (c *Folder) Definition(language ...string) definition.ContentType

func (*Folder) Delete

func (c *Folder) Delete(ctx context.Context, transaction ...*sql.Tx) error

Delete content only

func (*Folder) GetLocation

func (c *Folder) GetLocation() *contenttype.Location

func (*Folder) GetName

func (c *Folder) GetName() string

func (*Folder) IdentifierList

func (c *Folder) IdentifierList() []string

Get identifier list of fields(NOT including data_fields )

func (*Folder) SetValue

func (c *Folder) SetValue(identifier string, value interface{}) error

Set value to a field

func (*Folder) Store

func (c *Folder) Store(ctx context.Context, transaction ...*sql.Tx) error

Store content. Note: it will set id to CID after success

func (*Folder) StoreWithLocation

func (c *Folder) StoreWithLocation()

func (*Folder) TableName

func (c *Folder) TableName() string

func (*Folder) ToDBValues

func (c *Folder) ToDBValues() map[string]interface{}

Get map of the all fields(including data_fields) todo: cache this? (then you need a reload?)

func (*Folder) ToMap

func (c *Folder) ToMap() map[string]interface{}

func (*Folder) Value

func (c *Folder) Value(identifier string) interface{}

Get field value

type Image

type Image struct {
	contenttype.ContentEntity `boil:",bind"`

	Imagetype string `boil:"imagetype" json:"imagetype" toml:"imagetype" yaml:"imagetype"`

	ParentId int `boil:"parent_id" json:"parent_id" toml:"parent_id" yaml:"parent_id"`

	Path fieldtype.Text `boil:"path" json:"path" toml:"path" yaml:"path"`

	Title fieldtype.Text `boil:"title" json:"title" toml:"title" yaml:"title"`
}

func (*Image) ContentType

func (c *Image) ContentType() string

func (*Image) Definition

func (c *Image) Definition(language ...string) definition.ContentType

func (*Image) Delete

func (c *Image) Delete(ctx context.Context, transaction ...*sql.Tx) error

Delete content only

func (*Image) GetLocation

func (c *Image) GetLocation() *contenttype.Location

func (*Image) GetName

func (c *Image) GetName() string

func (*Image) IdentifierList

func (c *Image) IdentifierList() []string

Get identifier list of fields(NOT including data_fields )

func (*Image) SetValue

func (c *Image) SetValue(identifier string, value interface{}) error

Set value to a field

func (*Image) Store

func (c *Image) Store(ctx context.Context, transaction ...*sql.Tx) error

Store content. Note: it will set id to ID after success

func (*Image) StoreWithLocation

func (c *Image) StoreWithLocation()

func (*Image) TableName

func (c *Image) TableName() string

func (*Image) ToDBValues

func (c *Image) ToDBValues() map[string]interface{}

Get map of the all fields(including data_fields) todo: cache this? (then you need a reload?)

func (*Image) ToMap

func (c *Image) ToMap() map[string]interface{}

func (*Image) Value

func (c *Image) Value(identifier string) interface{}

Get field value

type Role

type Role struct {
	contenttype.ContentCommon `boil:",bind"`

	Identifier fieldtype.Text `boil:"identifier" json:"identifier" toml:"identifier" yaml:"identifier"`

	Summary fieldtype.RichText `boil:"summary" json:"summary" toml:"summary" yaml:"summary"`

	Title fieldtype.Text `boil:"title" json:"title" toml:"title" yaml:"title"`

	contenttype.Location `boil:"location,bind"`
}

func (*Role) ContentType

func (c *Role) ContentType() string

func (*Role) Definition

func (c *Role) Definition(language ...string) definition.ContentType

func (*Role) Delete

func (c *Role) Delete(ctx context.Context, transaction ...*sql.Tx) error

Delete content only

func (*Role) GetLocation

func (c *Role) GetLocation() *contenttype.Location

func (*Role) GetName

func (c *Role) GetName() string

func (*Role) IdentifierList

func (c *Role) IdentifierList() []string

Get identifier list of fields(NOT including data_fields )

func (*Role) SetValue

func (c *Role) SetValue(identifier string, value interface{}) error

Set value to a field

func (*Role) Store

func (c *Role) Store(ctx context.Context, transaction ...*sql.Tx) error

Store content. Note: it will set id to CID after success

func (*Role) StoreWithLocation

func (c *Role) StoreWithLocation()

func (*Role) TableName

func (c *Role) TableName() string

func (*Role) ToDBValues

func (c *Role) ToDBValues() map[string]interface{}

Get map of the all fields(including data_fields) todo: cache this? (then you need a reload?)

func (*Role) ToMap

func (c *Role) ToMap() map[string]interface{}

func (*Role) Value

func (c *Role) Value(identifier string) interface{}

Get field value

type User

type User struct {
	contenttype.ContentCommon `boil:",bind"`

	Email fieldtype.Text `boil:"email" json:"email" toml:"email" yaml:"email"`

	Firstname fieldtype.Text `boil:"firstname" json:"firstname" toml:"firstname" yaml:"firstname"`

	Lastname fieldtype.Text `boil:"lastname" json:"lastname" toml:"lastname" yaml:"lastname"`

	Login fieldtype.Text `boil:"login" json:"login" toml:"login" yaml:"login"`

	Password fieldtype.Password `boil:"password" json:"-" toml:"password" yaml:"password"`

	contenttype.Location `boil:"location,bind"`
}

func (*User) ContentType

func (c *User) ContentType() string

func (*User) Definition

func (c *User) Definition(language ...string) definition.ContentType

func (*User) Delete

func (c *User) Delete(ctx context.Context, transaction ...*sql.Tx) error

Delete content only

func (*User) GetLocation

func (c *User) GetLocation() *contenttype.Location

func (*User) GetName

func (c *User) GetName() string

func (*User) IdentifierList

func (c *User) IdentifierList() []string

Get identifier list of fields(NOT including data_fields )

func (*User) SetValue

func (c *User) SetValue(identifier string, value interface{}) error

Set value to a field

func (*User) Store

func (c *User) Store(ctx context.Context, transaction ...*sql.Tx) error

Store content. Note: it will set id to CID after success

func (*User) StoreWithLocation

func (c *User) StoreWithLocation()

func (*User) TableName

func (c *User) TableName() string

func (*User) ToDBValues

func (c *User) ToDBValues() map[string]interface{}

Get map of the all fields(including data_fields) todo: cache this? (then you need a reload?)

func (*User) ToMap

func (c *User) ToMap() map[string]interface{}

func (*User) Value

func (c *User) Value(identifier string) interface{}

Get field value

type Usergroup

type Usergroup struct {
	contenttype.ContentCommon `boil:",bind"`

	Summary fieldtype.RichText `boil:"summary" json:"summary" toml:"summary" yaml:"summary"`

	Title fieldtype.Text `boil:"title" json:"title" toml:"title" yaml:"title"`

	contenttype.Location `boil:"location,bind"`
}

func (*Usergroup) ContentType

func (c *Usergroup) ContentType() string

func (*Usergroup) Definition

func (c *Usergroup) Definition(language ...string) definition.ContentType

func (*Usergroup) Delete

func (c *Usergroup) Delete(ctx context.Context, transaction ...*sql.Tx) error

Delete content only

func (*Usergroup) GetLocation

func (c *Usergroup) GetLocation() *contenttype.Location

func (*Usergroup) GetName

func (c *Usergroup) GetName() string

func (*Usergroup) IdentifierList

func (c *Usergroup) IdentifierList() []string

Get identifier list of fields(NOT including data_fields )

func (*Usergroup) SetValue

func (c *Usergroup) SetValue(identifier string, value interface{}) error

Set value to a field

func (*Usergroup) Store

func (c *Usergroup) Store(ctx context.Context, transaction ...*sql.Tx) error

Store content. Note: it will set id to CID after success

func (*Usergroup) StoreWithLocation

func (c *Usergroup) StoreWithLocation()

func (*Usergroup) TableName

func (c *Usergroup) TableName() string

func (*Usergroup) ToDBValues

func (c *Usergroup) ToDBValues() map[string]interface{}

Get map of the all fields(including data_fields) todo: cache this? (then you need a reload?)

func (*Usergroup) ToMap

func (c *Usergroup) ToMap() map[string]interface{}

func (*Usergroup) Value

func (c *Usergroup) Value(identifier string) interface{}

Get field value

Jump to

Keyboard shortcuts

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