Documentation ¶
Overview ¶
*
- @author John Aran (Ilyas Aranzhanovich Toxanbayev)
- @version 1.0.0
- @based on
- @email [email protected]
- @link
- @github https://github.com/ilyaran/github.com/ilyaran/Malina
- @license MIT License Copyright (c) 2017 John Aran (Ilyas Toxanbayev)
Index ¶
- type Account
- type Category
- func (s *Category) Appending(rows *sql.Rows, size int64) *[]Scanable
- func (this *Category) GetDescription() string
- func (this *Category) GetEnable() bool
- func (this *Category) GetId() int64
- func (this *Category) GetImg() []string
- func (this *Category) GetLang() string
- func (this *Category) GetLevel() int
- func (this *Category) GetLogo() string
- func (this *Category) GetParent() int64
- func (this *Category) GetQuantity() int64
- func (this *Category) GetSort() int64
- func (this *Category) GetTitle() string
- func (s *Category) Item(row *sql.Row) Scanable
- func (s *Category) Scanning(row *sql.Row, rows *sql.Rows) byte
- func (this *Category) SetAncestors(item Hierarchical)
- func (s *Category) SetAncestorsDescendants(parent int64, getDescendants bool) int
- func (this *Category) SetChildren(item Hierarchical)
- func (this *Category) SetDescendants(item Hierarchical)
- func (this *Category) SetId(id int64)
- func (this *Category) SetImg(img []string)
- func (this *Category) SetLevel(level int)
- func (s *Category) SetPublicBreadcrumbPathView()
- func (s *Category) SetPublicParametersListView(treeListParam *[]Parameter)
- type Hierarchical
- type Parameter
- func (s *Parameter) Appending(rows *sql.Rows, size int64) *[]Scanable
- func (s *Parameter) GetCreated() time.Time
- func (s *Parameter) GetDescription() string
- func (s *Parameter) GetEnable() bool
- func (s *Parameter) GetId() int64
- func (s *Parameter) GetLevel() int
- func (s *Parameter) GetParent() int64
- func (s *Parameter) GetSort() int64
- func (s *Parameter) GetTitle() string
- func (s *Parameter) GetUpdated() time.Time
- func (s *Parameter) GetValue() string
- func (s *Parameter) Item(row *sql.Row) Scanable
- func (s *Parameter) Scanning(row *sql.Row, rows *sql.Rows) byte
- func (this *Parameter) SetAncestors(item Hierarchical)
- func (s *Parameter) SetAncestorsDescendants(parent int64, getDescendants bool) int
- func (this *Parameter) SetChildren(item Hierarchical)
- func (this *Parameter) SetDescendants(item Hierarchical)
- func (s *Parameter) SetId(id int64)
- func (s *Parameter) SetLevel(level int)
- type Permission
- func (s *Permission) Appending(rows *sql.Rows, size int64) *[]Scanable
- func (s *Permission) GetCategory() int64
- func (s *Permission) GetCode() string
- func (s *Permission) GetCreated() time.Time
- func (s *Permission) GetDescription() string
- func (s *Permission) GetEnable() bool
- func (s *Permission) GetId() int64
- func (s *Permission) GetImg() []string
- func (s *Permission) GetParameter() []int64
- func (s *Permission) GetPrice() float64
- func (s *Permission) GetPrice1() float64
- func (s *Permission) GetQuantity() float64
- func (s *Permission) GetSold() int64
- func (s *Permission) GetTitle() string
- func (s *Permission) GetUpdated() time.Time
- func (s *Permission) GetViews() int64
- func (s *Permission) Item(row *sql.Row) Scanable
- func (s *Permission) Scanning(row *sql.Row, rows *sql.Rows) byte
- func (s *Permission) SetId(id int64)
- type Product
- func (s *Product) Appending(rows *sql.Rows, size int64) *[]Scanable
- func (s *Product) GetCategory() int64
- func (s *Product) GetCode() string
- func (s *Product) GetCreated() time.Time
- func (s *Product) GetDescription() string
- func (s *Product) GetEnable() bool
- func (s *Product) GetId() int64
- func (s *Product) GetImg() []string
- func (s *Product) GetParameter() []int64
- func (s *Product) GetPrice() float64
- func (s *Product) GetPrice1() float64
- func (s *Product) GetQuantity() float64
- func (s *Product) GetSold() int64
- func (s *Product) GetTitle() string
- func (s *Product) GetUpdated() time.Time
- func (s *Product) GetViews() int64
- func (s *Product) Item(row *sql.Row) Scanable
- func (s *Product) Scanning(row *sql.Row, rows *sql.Rows) byte
- func (s *Product) SetId(id int64)
- type Scanable
- type Session
- type State
- func (s *State) Appending(rows *sql.Rows, size int64) *[]Scanable
- func (s *State) GetCode() string
- func (s *State) GetId() int64
- func (s *State) GetImg() []string
- func (s *State) GetPhone() string
- func (s *State) GetSort() int64
- func (s *State) GetTitle() string
- func (s *State) Item(row *sql.Row) Scanable
- func (s *State) Scanning(row *sql.Row, rows *sql.Rows) byte
- func (s *State) SetFlag()
- func (s *State) SetId(id int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { Id int64 `json:"id"` Role int64 `json:"role"` Email string `json:"email"` Phone string `json:"phone"` Nick string `json:"nick"` FirstName string `json:"first_name"` LastName string `json:"last_name"` Sex bool `json:"sex"` Skype string `json:"skype"` Steam string `json:"steam"` Trade string `json:"trade"` Game int64 `json:"game"` State int64 `json:"state"` Img string `json:"img"` Ban bool `json:"ban"` BanReason string `json:"ban_reason"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` LastLogged time.Time `json:"last_logged"` Team []int64 `json:"team"` Balance float64 `json:"-"` LastIp string `json:"-"` Provider string `json:"-"` Token string `json:"-"` Password string `json:"-"` Newpass string `json:"-"` }
type Category ¶
type Category struct { Id int64 `json:"id"` Parent int64 `json:"parent"` Level int `json:"level"` Sort int64 `json:"sort"` Title string `json:"title"` Description string `json:"description"` Lang string `json:"lang"` Enable bool `json:"enable"` Img []string `json:"img"` Parameter []int64 `json:"parameter"` Quantity int64 `json:"quantity"` Children []*Category `json:"-"` Ancestors []*Category `json:"-"` Descendants []*Category `json:"-"` ParametersListView template.HTML `json:"-"` DescendantsString string `json:"descendants_string"` PublicBreadcrumbPathView string `json:"-"` }
func (*Category) GetDescription ¶
func (*Category) GetQuantity ¶
func (*Category) SetAncestors ¶
func (this *Category) SetAncestors(item Hierarchical)
func (*Category) SetAncestorsDescendants ¶
func (*Category) SetChildren ¶
func (this *Category) SetChildren(item Hierarchical)
func (*Category) SetDescendants ¶
func (this *Category) SetDescendants(item Hierarchical)
func (*Category) SetPublicBreadcrumbPathView ¶
func (s *Category) SetPublicBreadcrumbPathView()
func (*Category) SetPublicParametersListView ¶
type Hierarchical ¶
type Hierarchical interface { Scanable GetParent() int64 SetLevel(level int) SetChildren(item Hierarchical) SetDescendants(item Hierarchical) SetAncestors(item Hierarchical) }
type Parameter ¶
type Parameter struct { Id int64 `json:"id"` Parent int64 `json:"parent"` Title string `json:"title"` Description string `json:"description"` Sort int64 `json:"sort"` Value string `json:"value"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Enable bool `json:"enable"` Level int `json:"level"` Children []*Parameter `json:"-"` Ancestors []*Parameter `json:"-"` Descendants []*Parameter `json:"-"` }
func (*Parameter) GetCreated ¶
func (*Parameter) GetDescription ¶
func (*Parameter) GetUpdated ¶
func (*Parameter) SetAncestors ¶
func (this *Parameter) SetAncestors(item Hierarchical)
func (*Parameter) SetAncestorsDescendants ¶
func (*Parameter) SetChildren ¶
func (this *Parameter) SetChildren(item Hierarchical)
func (*Parameter) SetDescendants ¶
func (this *Parameter) SetDescendants(item Hierarchical)
type Permission ¶
type Permission struct { Id int64 `json:"id"` Code string `json:"code"` Category int64 `json:"category"` Parameter []int64 `json:"parameter"` Img []string `json:"img"` Title string `json:"title"` Description string `json:"description"` Price float64 `json:"price"` Price1 float64 `json:"price1"` Price2 float64 `json:"price2"` Quantity float64 `json:"quantity"` Sold int64 `json:"sold"` Views int64 `json:"views"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Enable bool `json:"enable"` }
func (*Permission) Appending ¶
func (s *Permission) Appending(rows *sql.Rows, size int64) *[]Scanable
func (*Permission) GetCategory ¶
func (s *Permission) GetCategory() int64
func (*Permission) GetCode ¶
func (s *Permission) GetCode() string
func (*Permission) GetCreated ¶
func (s *Permission) GetCreated() time.Time
func (*Permission) GetDescription ¶
func (s *Permission) GetDescription() string
func (*Permission) GetEnable ¶
func (s *Permission) GetEnable() bool
func (*Permission) GetId ¶
func (s *Permission) GetId() int64
func (*Permission) GetImg ¶
func (s *Permission) GetImg() []string
func (*Permission) GetParameter ¶
func (s *Permission) GetParameter() []int64
func (*Permission) GetPrice ¶
func (s *Permission) GetPrice() float64
func (*Permission) GetPrice1 ¶
func (s *Permission) GetPrice1() float64
func (*Permission) GetQuantity ¶
func (s *Permission) GetQuantity() float64
func (*Permission) GetSold ¶
func (s *Permission) GetSold() int64
func (*Permission) GetTitle ¶
func (s *Permission) GetTitle() string
func (*Permission) GetUpdated ¶
func (s *Permission) GetUpdated() time.Time
func (*Permission) GetViews ¶
func (s *Permission) GetViews() int64
func (*Permission) SetId ¶
func (s *Permission) SetId(id int64)
type Product ¶
type Product struct { Id int64 `json:"id"` Code string `json:"code"` Category int64 `json:"category"` Parameter []int64 `json:"parameter"` Img []string `json:"img"` Title string `json:"title"` Description string `json:"description"` Price float64 `json:"price"` Price1 float64 `json:"price1"` Price2 float64 `json:"price2"` Quantity float64 `json:"quantity"` Sold int64 `json:"sold"` Views int64 `json:"views"` Created time.Time `json:"created"` Updated time.Time `json:"updated"` Enable bool `json:"enable"` }
func (*Product) GetCategory ¶
func (*Product) GetCreated ¶
func (*Product) GetDescription ¶
func (*Product) GetParameter ¶
func (*Product) GetQuantity ¶
func (*Product) GetUpdated ¶
Click to show internal directories.
Click to hide internal directories.