Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnalyticGridDatagrid datagrid.Datagrid = datagrid.Datagrid{ Name: "АНАЛИЗ", Identity: "id", DataTable: "analytic", MainTable: "analytic", DataModel: new(AnalyticGrid), Data: new([]AnalyticGrid), MainModel: new(AnalyticMainTable), Columns: []datagrid.Column{ datagrid.Column{ Model: "id", Label: "", }, datagrid.Column{ Model: "title", Label: "Нэр", }, datagrid.Column{ Model: "source", Label: "Хүснэгт", }, }, ColumnList: []string{"id", "title", "source"}, Filters: map[string]string{}, Relations: []models.GridRelation{}, Condition: "", Aggergation: "", Triggers: map[string]interface{}{ "beforeFetch": "", "beforeFetchStruct": new(interface{}), "afterFetch": "", "afterFetchStruct": new(interface{}), "beforeDelete": "", "beforeDeleteStruct": new(interface{}), "afterDelete": "", "afterDeleteStruct": new(interface{}), "beforePrint": "", "beforePrintStruct": new(interface{}), }, TriggerNameSpace: "", }
View Source
var CrudLogDatagrid datagrid.Datagrid = datagrid.Datagrid{ Name: "Cистем лог", Identity: "id", DataTable: "ds_crud_log", MainTable: "crud_log", DataModel: new(CrudLog), Data: new([]CrudLog), MainModel: new(CrudLogMainTable), Columns: []datagrid.Column{ datagrid.Column{Model: "name", Label: "Маягт"}, datagrid.Column{Model: "last_name", Label: "Хэрэглэгчийн овог"}, datagrid.Column{Model: "first_name", Label: "Хэрэглэгчийн нэр"}, datagrid.Column{Model: "ip", Label: "IP хаяг"}, datagrid.Column{Model: "user_agent", Label: "хэрэглэгчийн агент"}, datagrid.Column{Model: "action", Label: "Үйлдэл"}, datagrid.Column{Model: "row_id", Label: "бүртгэлийн ID"}, datagrid.Column{Model: "input", Label: "Оролтын мэдээлэл"}, datagrid.Column{Model: "created_at", Label: "Огноо"}, }, ColumnList: []string{"name", "last_name", "first_name", "ip", "user_agent", "action", "row_id", "input", "created_at"}, Filters: map[string]string{ "user_id": "Select", "schemaId": "Select", }, Relations: []models.GridRelation{}, Condition: "", Aggergation: "", Triggers: map[string]interface{}{ "beforeFetch": "", "beforeFetchStruct": new(interface{}), "afterFetch": "", "afterFetchStruct": new(interface{}), "beforeDelete": "", "beforeDeleteStruct": new(interface{}), "afterDelete": "", "afterDeleteStruct": new(interface{}), "beforePrint": "", "beforePrintStruct": new(interface{}), }, TriggerNameSpace: "", }
View Source
var KrudGridDatagrid datagrid.Datagrid = datagrid.Datagrid{ Name: "Крүд тохиргоо", Identity: "id", DataTable: "krud", MainTable: "krud", DataModel: new(KrudGrid), Data: new([]KrudGrid), MainModel: new(KrudGridMain), Columns: []datagrid.Column{ datagrid.Column{ Model: "title", Label: "Гарчиг", }, }, ColumnList: []string{"title"}, Filters: map[string]string{}, Relations: []models.GridRelation{}, Condition: "", Aggergation: "", Triggers: map[string]interface{}{ "beforeFetch": "", "beforeFetchStruct": new(interface{}), "afterFetch": "", "afterFetchStruct": new(interface{}), "beforeDelete": "", "beforeDeleteStruct": new(interface{}), "afterDelete": "", "afterDeleteStruct": new(interface{}), "beforePrint": "", "beforePrintStruct": new(interface{}), }, TriggerNameSpace: "", }
View Source
var MenuGridDatagrid datagrid.Datagrid = datagrid.Datagrid{ Name: "Цэсний тохиргоо", Identity: "id", DataTable: "vb_schemas", MainTable: "vb_schemas", DataModel: new(MenuGrid), Data: new([]MenuGrid), MainModel: new(MenuGridMain), Columns: []datagrid.Column{ datagrid.Column{Model: "name", Label: "Нэр"}, datagrid.Column{Model: "created_at", Label: "Огноо"}, }, ColumnList: []string{"name", "created_at"}, Filters: map[string]string{}, Relations: []models.GridRelation{}, Condition: "type = 'menu'", Aggergation: "", Triggers: map[string]interface{}{ "beforeFetch": "", "beforeFetchStruct": new(interface{}), "afterFetch": "", "afterFetchStruct": new(interface{}), "beforeDelete": "", "beforeDeleteStruct": new(interface{}), "afterDelete": "", "afterDeleteStruct": new(interface{}), "beforePrint": "", "beforePrintStruct": new(interface{}), }, TriggerNameSpace: "", }
View Source
var NotificationTargetDatagrid datagrid.Datagrid = datagrid.Datagrid{ Name: "Зорилтод мэдэгдэл", Identity: "id", DataTable: "notification_targets", MainTable: "notification_targets", DataModel: new(NotificationTarget), Data: new([]NotificationTarget), MainModel: new(NotificationTargetMainTable), Columns: []datagrid.Column{ datagrid.Column{Model: "title", Label: "Нэр"}, }, ColumnList: []string{"title"}, Filters: map[string]string{}, Relations: []models.GridRelation{}, Condition: "", Aggergation: "", Triggers: map[string]interface{}{ "beforeFetch": "", "beforeFetchStruct": new(interface{}), "afterFetch": "", "afterFetchStruct": new(interface{}), "beforeDelete": "", "beforeDeleteStruct": new(interface{}), "afterDelete": "", "afterDeleteStruct": new(interface{}), "beforePrint": "", "beforePrintStruct": new(interface{}), }, TriggerNameSpace: "", }
Functions ¶
This section is empty.
Types ¶
type AnalyticGrid ¶
type AnalyticGrid struct { ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Source string `gorm:"column:source" json:"source"` Title string `gorm:"column:title" json:"title"` }
func (*AnalyticGrid) TableName ¶
func (a *AnalyticGrid) TableName() string
TableName sets the insert table name for this struct type
type AnalyticMainTable ¶
type AnalyticMainTable struct { ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Source string `gorm:"column:source" json:"source"` Title string `gorm:"column:title" json:"title"` }
func (*AnalyticMainTable) TableName ¶
func (a *AnalyticMainTable) TableName() string
type CrudLog ¶
type CrudLog struct { Action string `gorm:"column:action" json:"action"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` FirstName string `gorm:"column:first_name" json:"first_name"` ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Input string `gorm:"column:input" json:"input"` IP string `gorm:"column:ip" json:"ip"` LastName string `gorm:"column:last_name" json:"last_name"` Name string `gorm:"column:name" json:"name"` RowID string `gorm:"column:row_id" json:"row_id"` UserAgent string `gorm:"column:user_agent" json:"user_agent"` }
type CrudLogMainTable ¶
type CrudLogMainTable struct { Action string `gorm:"column:action" json:"action"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Input string `gorm:"column:input" json:"input"` IP string `gorm:"column:ip" json:"ip"` RowID string `gorm:"column:row_id" json:"row_id"` SchemaID int `gorm:"column:schemaId" json:"schemaId"` UserAgent string `gorm:"column:user_agent" json:"user_agent"` UserID int `gorm:"column:user_id" json:"user_id"` }
func (*CrudLogMainTable) TableName ¶
func (m *CrudLogMainTable) TableName() string
type KrudGrid ¶
type KrudGrid struct { ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedAt *time.Time `gorm:"column:deleted_at" json:"-"` Form int `gorm:"column:form" json:"form"` Grid int `gorm:"column:grid" json:"grid"` Actions string `gorm:"column:actions" json:"actions"` Template string `gorm:"column:template" json:"template"` Title string `gorm:"column:title" json:"title"` }
type KrudGridMain ¶
type KrudGridMain struct { ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` DeletedAt *time.Time `gorm:"column:deleted_at" json:"-"` Form int `gorm:"column:form" json:"form"` Grid int `gorm:"column:grid" json:"grid"` Actions string `gorm:"column:actions" json:"actions"` Template string `gorm:"column:template" json:"template"` Title string `gorm:"column:title" json:"title"` }
func (*KrudGridMain) TableName ¶
func (k *KrudGridMain) TableName() string
type MenuGrid ¶
type MenuGrid struct { CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Name string `gorm:"column:name" json:"name"` Schema string `gorm:"column:schema" json:"schema"` Type string `gorm:"column:type" json:"type"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
type MenuGridMain ¶
type MenuGridMain struct { CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Name string `gorm:"column:name" json:"name"` Schema string `gorm:"column:schema" json:"schema"` Type string `gorm:"column:type" json:"type"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*MenuGridMain) TableName ¶
func (v *MenuGridMain) TableName() string
TableName sets the insert table name for this struct type
type NotificationTarget ¶
type NotificationTarget struct { ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Title string `gorm:"column:title" json:"title"` }
func (*NotificationTarget) TableName ¶
func (n *NotificationTarget) TableName() string
TableName sets the insert table name for this struct type
type NotificationTargetMainTable ¶
type NotificationTargetMainTable struct { Body string `gorm:"column:body" json:"body"` Condition string `gorm:"column:condition" json:"condition"` ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Link string `gorm:"column:link" json:"link"` SchemaID int `gorm:"column:schema_id" json:"schema_id"` TargetRole int `gorm:"column:target_role" json:"target_role"` Title string `gorm:"column:title" json:"title"` }
func (*NotificationTargetMainTable) TableName ¶
func (n *NotificationTargetMainTable) TableName() string
Click to show internal directories.
Click to hide internal directories.