Documentation ¶
Index ¶
- type CountRequest
- type DBSCHEMA
- type FormItem
- type Formula
- type GridRelation
- type LineRequest
- type MSTableMata
- type Microservice
- type MySQLTableMata
- type OracleTableMata
- type PKColumn
- type Permissions
- type PieRequest
- type PostgresEnum
- type PostgresTableMata
- type ProjectSettings
- type ProjectVBSchema
- type Projects
- type SCHEMA
- type SCHEMAGRID
- type TableMeta
- type TableRequest
- type Target
- type UserRoles
- type VBSchema
- type VBSchemaAdmin
- type VBSchemaAdminMSSQL
- type VBSchemaAdminOracle
- type VBSchemaList
- type VBSchemaListOracle
- type VBSchemaMSSQL
- type VBSchemaOracle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountRequest ¶
type CountRequest struct { CountFields []struct { Name string `json:"name"` Title string `json:"title"` Type string `json:"type"` Table string `json:"table"` Alias string `json:"alias"` Output bool `json:"output"` SortType string `json:"sortType"` SortOrder int `json:"sortOrder"` GroupBy bool `json:"groupBy"` GroupOrder int `json:"groupOrder"` Aggregate string `json:"aggregate"` Editing bool `json:"editing"` } `json:"countFields"` }
type FormItem ¶
type FormItem struct { Model string `json:"model"` Title string `json:"title"` DbType string `json:"dbType"` Table string `json:"table,omitempty"` Key string `json:"key"` Extra string `json:"extra,omitempty"` ID string `json:"id"` Type string `json:"type"` Identity string `json:"identity"` Label string `json:"label"` PlaceHolder string `json:"placeHolder"` Hidden bool `json:"hidden"` Disabled bool `json:"disabled"` Default interface{} `json:"default"` Prefix string `json:"prefix"` Ifshowhide string `json:"ifshowhide"` Rules []struct { Type string `json:"type"` Msg string `json:"msg"` } `json:"rules"` HasTranslation bool `json:"hasTranslation"` HasUserID bool `json:"hasUserId"` HasEquation bool `json:"hasEquation"` Equations string `json:"equations"` IsGridSearch bool `json:"isGridSearch"` GridSearch struct { Grid interface{} `json:"grid"` Key interface{} `json:"key"` Labels interface{} `json:"labels"` Multiple bool `json:"multiple"` } `json:"gridSearch"` IsFkey bool `json:"isFkey"` InfoUrl string `json:"info_url"` Relation struct { Table string `json:"table"` Key interface{} `json:"key"` Fields []interface{} `json:"fields"` FilterWithUser []interface{} `json:"filterWithUser"` SortField interface{} `json:"sortField"` SortOrder string `json:"sortOrder"` Multiple bool `json:"multiple"` Filter string `json:"filter"` ParentFieldOfForm string `json:"parentFieldOfForm"` ParentFieldOfTable string `json:"parentFieldOfTable"` } `json:"relation,omitempty"` Span struct { Xs int `json:"xs"` Sm int `json:"sm"` Md int `json:"md"` Lg int `json:"lg"` } `json:"span"` Trigger string `json:"trigger"` TriggerTimeout int `json:"triggerTimeout"` File struct { IsMultiple bool `json:"isMultiple"` Count int `json:"count"` MaxSize int `json:"maxSize"` Type string `json:"type"` } `json:"file,omitempty"` Options []interface{} `json:"options"` PasswordOption interface{} `json:"passwordOption"` GeographicOption interface{} `json:"GeographicOption"` EditorType interface{} `json:"editorType"` SchemaID string `json:"schemaID,omitempty"` //subForm data Name string `json:"name"` SubType string `json:"subtype"` Parent string `json:"parent"` FormId uint64 `json:"formId"` FormType string `json:"formType"` MinHeight string `json:"min_height"` DisableDelete bool `json:"disableDelete"` DisableEdit bool `json:"disableEdit"` DisableCreate bool `json:"disableCreate"` ShowRowNumber bool `json:"showRowNumber"` UseTableType bool `json:"useTableType"` CheckEmpty bool `json:"checkEmpty"` AddFromGrid bool `json:"addFromGrid"` NoFormat bool `json:"no_format"` Precision interface{} `json:"precision"` TableTypeColumn string `json:"tableTypeColumn"` TableTypeValue string `json:"tableTypeValue"` EmptyErrorMsg string `json:"EmptyErrorMsg"` SourceGridModalTitle string `json:"sourceGridModalTitle"` SourceGridParentBasedCondition string `json:"sourceGridParentBasedCondition"` GSOption map[string]interface{} `json:"GSOption"` SourceGridTitle string `json:"sourceGridTitle"` SourceGridDescription string `json:"sourceGridDescription"` SourceGridUserCondition string `json:"sourceGridUserCondition"` SourceUniqueField string `json:"sourceUniqueField"` SourceMicroserviceID interface{} `json:"sourceMicroserviceID"` SourceGridID interface{} `json:"sourceGridID"` SourceGridTargetColumns []interface{} `json:"sourceGridTargetColumns"` Schema []FormItem `json:"schema"` }
type GridRelation ¶
type LineRequest ¶
type LineRequest struct { Axis []struct { Name string `json:"name"` Title string `json:"title"` Type string `json:"type"` Table string `json:"table"` Alias string `json:"alias"` Output bool `json:"output"` SortType string `json:"sortType"` SortOrder int `json:"sortOrder"` GroupBy bool `json:"groupBy"` GroupOrder int `json:"groupOrder"` Aggregate string `json:"aggregate"` } `json:"axis"` Lines []struct { Name string `json:"name"` Title string `json:"title"` Type string `json:"type"` Table string `json:"table"` Alias string `json:"alias"` Output bool `json:"output"` SortType string `json:"sortType"` SortOrder int `json:"sortOrder"` GroupBy bool `json:"groupBy"` GroupOrder int `json:"groupOrder"` Aggregate string `json:"aggregate"` } `json:"lines"` }
type MSTableMata ¶
type Microservice ¶
type MySQLTableMata ¶
type MySQLTableMata struct { ColumnName string `gorm:"column:column_name" json:"column_name"` DataType string `gorm:"column:data_type" json:"data_type"` ColumnKey string `gorm:"column:column_key" json:"column_key"` ISNullAble string `gorm:"column:is_nullable" json:"is_nullable"` DefaultValue *string `gorm:"column:default_value" json:"default_value"` }
type OracleTableMata ¶
type OracleTableMata struct { ColumnName string `gorm:"column:COLUMN_NAME" json:"COLUMN_NAME"` DataType string `gorm:"column:DATA_TYPE" json:"DATA_TYPE"` IdentityColumn string `gorm:"column:IDENTITY_COLUMN" json:"IDENTITY_COLUMN"` NullAble string `gorm:"column:NULLABLE" json:"NULLABLE"` DataDefault *string `gorm:"column:DATA_DEFAULT" json:"DATA_DEFAULT"` }
type PKColumn ¶
type PKColumn struct {
ColumnName string `gorm:"column:COLUMN_NAME" json:"COLUMN_NAME"`
}
type Permissions ¶
type PieRequest ¶
type PieRequest struct { Value []struct { Name string `json:"name"` Title string `json:"title"` Type string `json:"type"` Table string `json:"table"` Alias string `json:"alias"` Output bool `json:"output"` SortType string `json:"sortType"` SortOrder int `json:"sortOrder"` GroupBy bool `json:"groupBy"` GroupOrder int `json:"groupOrder"` Aggregate string `json:"aggregate"` } `json:"value"` Title []struct { Name string `json:"name"` Title string `json:"title"` Type string `json:"type"` Table string `json:"table"` Alias string `json:"alias"` Output bool `json:"output"` SortType string `json:"sortType"` SortOrder int `json:"sortOrder"` GroupBy bool `json:"groupBy"` GroupOrder int `json:"groupOrder"` Aggregate string `json:"aggregate"` } `json:"title"` Filter []interface{} `json:"filter"` }
type PostgresEnum ¶
type PostgresEnum struct {
Typname string
}
type PostgresTableMata ¶
type PostgresTableMata struct { ColumnName string `gorm:"column:column_name" json:"column_name"` DataType string `gorm:"column:udt_name" json:"udt_name"` IsIdentity string `gorm:"column:is_identity" json:"is_identity"` ISNullAble string `gorm:"column:is_nullable" json:"is_nullable"` ColumnDefault *string `gorm:"column:column_default" json:"column_default"` NumericScale *int `gorm:"column:numeric_scale" json:"numeric_scale"` TableSchema string `json:"table_schema"` }
type ProjectSettings ¶
type ProjectSettings struct { GRPCURL string `gorm:"column:grpc_url" json:"grpc_url"` ID int `gorm:"column:id" json:"id"` ProductionURL string `gorm:"column:production_url" json:"production_url"` DevUrl string `gorm:"column:dev_url" json:"dev_url"` ProjectID int `gorm:"column:project_id" json:"project_id"` }
func (*ProjectSettings) TableName ¶
func (p *ProjectSettings) TableName() string
type ProjectVBSchema ¶
type ProjectVBSchema struct { ID uint64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` ProjectID int `gorm:"column:projects_id" json:"projects_id"` Name string `gorm:"column:name" json:"name"` Schema string `gorm:"column:schema;type:TEXT" json:"schema"` //type:LONGTEXT Type string `gorm:"column:type" json:"type"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*ProjectVBSchema) TableName ¶
func (v *ProjectVBSchema) TableName() string
type Projects ¶
type Projects struct { CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` DbSchemaPath string `gorm:"column:db_schema_path" json:"db_schema_path"` ID int `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Name string `gorm:"column:name" json:"name"` ProjectType string `gorm:"column:project_type" json:"project_type"` OrganizationsID int `gorm:"column:organizations_id" json:"organizations_id"` ProjectKey string `gorm:"column:project_key" json:"project_key"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` UsersID int `gorm:"column:users_id" json:"users_id"` }
type SCHEMA ¶
type SCHEMA struct { FormType string `json:"formType"` FormSubName string `json:"formSubName"` Model string `json:"model"` Identity string `json:"identity"` Timestamp bool `json:"timestamp"` LabelPosition string `json:"labelPosition"` LabelWidth interface{} `json:"labelWidth"` ExtraButtons []interface{} `json:"extraButtons"` Width string `json:"width"` Padding int `json:"padding"` Schema []FormItem `json:"schema"` UI interface{} `json:"ui"` Formula []Formula `json:"formula"` Triggers struct { Namespace string `json:"namespace"` Insert struct { Before string `json:"before"` After string `json:"after"` } `json:"insert"` Update struct { Before string `json:"before"` After string `json:"after"` } `json:"update"` } `json:"triggers"` SortField string `json:"sortField"` SordOrder string `json:"sordOrder"` Use2ColumnLayout bool `json:"use2ColumnLayout"` WithBackButton bool `json:"withBackButton"` SaveBtnText string `json:"save_btn_text"` IsWarnText bool `json:"isWarnText"` WarnText string `json:"warnText"` FormValidationCustomText string `json:"formValidationCustomText"` DisableReset bool `json:"disableReset"` }
type SCHEMAGRID ¶
type SCHEMAGRID struct { Model string `json:"model"` IsView bool `json:"isView"` Identity string `json:"identity"` Actions []string `json:"actions"` ActionPosition int `json:"actionPosition"` IsContextMenu bool `json:"isContextMenu"` StaticWidth bool `json:"staticWidth"` FullWidth bool `json:"fullWidth"` HasCheckbox bool `json:"hasCheckbox"` IsClient bool `json:"isClient"` Width int `json:"width"` Sort string `json:"sort"` SortOrder string `json:"sortOrder"` SoftDelete bool `json:"softDelete"` Paging int `json:"paging"` Template int `json:"template"` Schema []struct { VirtualColumn bool `json:"virtualColumn"` Model string `json:"model"` Title string `json:"title"` DbType string `json:"dbType"` Table string `json:"table"` Key string `json:"key"` Extra string `json:"extra"` Label string `json:"label"` GridType string `json:"gridType"` Width int `json:"width"` Hide bool `json:"hide"` Sortable bool `json:"sortable"` Printable bool `json:"printable"` Pinned bool `json:"pinned"` PinPosition string `json:"pinPosition"` Link string `json:"link"` LinkTarget string `json:"linkTarget"` Relation GridRelation `json:"relation"` Filterable bool `json:"filterable"` Filter struct { Type string `json:"type"` Param interface{} `json:"param"` ParamCompareType string `json:"paramCompareType"` Default interface{} `json:"default"` Relation struct { Table string `json:"table"` Key interface{} `json:"key"` Fields []interface{} `json:"fields"` SortField interface{} `json:"sortField"` SortOrder string `json:"sortOrder"` } `json:"relation"` } `json:"filter"` Editable struct { Status bool `json:"status"` Type string `json:"type"` ShouldUpdate bool `json:"shouldUpdate"` ShouldPost bool `json:"shouldPost"` } `json:"editable"` Searchable bool `json:"searchable"` HasTranslation bool `json:"hasTranslation"` Options []interface{} `json:"options"` } `json:"schema"` Filter []interface{} `json:"filter"` Formula []interface{} `json:"formula"` Condition string `json:"condition"` ColumnAggregations []map[string]string `json:"columnAggregations"` ColumnAggregationsFormula []interface{} `json:"columnAggregationsFormula"` Header struct { Render bool `json:"render"` Preview bool `json:"preview"` Structure []interface{} `json:"structure"` } `json:"header"` Triggers struct { Namespace string `json:"namespace"` BeforeFetch string `json:"beforeFetch"` AfterFetch string `json:"afterFetch"` BeforeDelete string `json:"beforeDelete"` AfterDelete string `json:"afterDelete"` BeforePrint string `json:"beforePrint"` } `json:"triggers"` Theme string `json:"theme"` FullText bool `json:"fullText"` EditableAction interface{} `json:"editableAction"` EditFullRow bool `json:"editFullRow"` EditableShouldSubmit bool `json:"editableShouldSubmit"` SingleClickEdit bool `json:"singleClickEdit"` FlashChanges bool `json:"flashChanges"` ColMenu bool `json:"colMenu"` ColFilterButton bool `json:"colFilterButton"` ShowGrid bool `json:"showGrid"` SordOrder string `json:"sordOrder"` MainTable string `json:"mainTable"` IsPivot bool `json:"isPivot"` IsPrint bool `json:"isPrint"` PrintSize string `json:"printSize"` IsExcel bool `json:"isExcel"` IsExcelUpload bool `json:"isExcelUpload"` ExcelUploadCustomNamespace string `json:"excelUploadCustomNamespace"` ExcelUploadCustomTrigger string `json:"excelUploadCustomTrigger"` IsRefresh bool `json:"isRefresh"` IsNumbered bool `json:"isNumbered"` Microservices []Microservice `json:"microservices"` }
type TableMeta ¶
type TableMeta struct { Model string `json:"model"` Title string `json:"title"` DbType string `json:"dbType"` Table string `json:"table"` Key string `json:"key"` Extra string `json:"extra"` Nullable string `json:"nullable"` Scale string `json:"scale"` DefaultValue *string `json:"default_value"` TableSchema string `json:"table_schema"` }
type TableRequest ¶
type TableRequest struct { Values []struct { Name string `json:"name"` Title string `json:"title"` Type string `json:"type"` Table string `json:"table"` Alias string `json:"alias"` Output bool `json:"output"` SortType string `json:"sortType"` SortOrder int `json:"sortOrder"` GroupBy bool `json:"groupBy"` GroupOrder int `json:"groupOrder"` Aggregate string `json:"aggregate"` } `json:"values"` }
type UserRoles ¶
type VBSchema ¶
type VBSchema struct { ID uint64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Name string `gorm:"column:name" json:"name"` Schema string `gorm:"column:schema;type:TEXT" json:"schema"` //type:LONGTEXT Type string `gorm:"column:type" json:"type"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` }
type VBSchemaAdmin ¶
type VBSchemaAdmin struct { VbId uint64 `gorm:"column:vb_id;primaryKey;autoIncrement" json:"vb_id"` Name string `gorm:"column:name" json:"name"` Schema string `gorm:"column:schema;type:TEXT" json:"schema"` Type string `gorm:"column:type" json:"type"` Id string `gorm:"column:id" json:"id"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*VBSchemaAdmin) TableName ¶
func (v *VBSchemaAdmin) TableName() string
TableName sets the insert table name for this struct type
type VBSchemaAdminMSSQL ¶
type VBSchemaAdminMSSQL struct { VbId uint64 `gorm:"column:vb_id;primaryKey;autoIncrement" json:"vb_id"` Name string `gorm:"column:name" json:"name"` Schema string `gorm:"column:schema;type:NTEXT" json:"schema"` Type string `gorm:"column:type" json:"type"` Id string `gorm:"column:id" json:"id"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*VBSchemaAdminMSSQL) TableName ¶
func (v *VBSchemaAdminMSSQL) TableName() string
TableName sets the insert table name for this struct type
type VBSchemaAdminOracle ¶
type VBSchemaAdminOracle struct { VbID int `gorm:"column:VB_ID;primaryKey;autoIncrement" json:"vb_id"` ID string `gorm:"column:ID" json:"id"` Name string `gorm:"column:NAME" json:"name"` Schema string `gorm:"column:SCHEMA;type:LONG" json:"schema"` Type string `gorm:"column:TYPE" json:"type"` CreatedAt *time.Time `gorm:"column:CREATED_AT" json:"created_at"` UpdatedAt *time.Time `gorm:"column:UPDATED_AT" json:"updated_at"` }
func (*VBSchemaAdminOracle) TableName ¶
func (v *VBSchemaAdminOracle) TableName() string
TableName sets the insert table name for this struct type
type VBSchemaList ¶
type VBSchemaList struct { ID uint64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Name string `gorm:"column:name" json:"name"` Type string `gorm:"column:type" json:"type"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*VBSchemaList) TableName ¶
func (v *VBSchemaList) TableName() string
type VBSchemaListOracle ¶
type VBSchemaListOracle struct { ID uint64 `gorm:"column:ID;primaryKey;autoIncrement" json:"id"` Name string `gorm:"column:NAME" json:"name"` Type string `gorm:"column:TYPE" json:"type"` CreatedAt *time.Time `gorm:"column:CREATED_AT" json:"created_at"` UpdatedAt *time.Time `gorm:"column:UPDATED_AT" json:"updated_at"` }
func (*VBSchemaListOracle) TableName ¶
func (v *VBSchemaListOracle) TableName() string
type VBSchemaMSSQL ¶
type VBSchemaMSSQL struct { ID uint64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"` Name string `gorm:"column:name" json:"name"` Schema string `gorm:"column:schema;type:NTEXT" json:"schema"` //type:LONGTEXT Type string `gorm:"column:type" json:"type"` CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"` UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at"` }
func (*VBSchemaMSSQL) TableName ¶
func (v *VBSchemaMSSQL) TableName() string
TableName sets the insert table name for this struct type
type VBSchemaOracle ¶
type VBSchemaOracle struct { ID int `gorm:"column:ID;primaryKey;autoIncrement" json:"id"` Name string `gorm:"column:NAME" json:"name"` Schema string `gorm:"column:SCHEMA;type:LONG" json:"schema"` Type string `gorm:"column:TYPE" json:"type"` CreatedAt *time.Time `gorm:"column:CREATED_AT" json:"created_at"` UpdatedAt *time.Time `gorm:"column:UPDATED_AT" json:"updated_at"` }
func (*VBSchemaOracle) TableName ¶
func (v *VBSchemaOracle) TableName() string
Click to show internal directories.
Click to hide internal directories.