models

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 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 MSTableMata struct {
	ColumnName string `gorm:"column:COLUMN_NAME" json:"COLUMN_NAME"`
	DataType   string `gorm:"column:DATA_TYPE" json:"DATA_TYPE"`
}

type PKColumn

type PKColumn struct {
	ColumnName string `gorm:"column:COLUMN_NAME" json:"COLUMN_NAME"`
}

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 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 UserRoles struct {
	ID          uint64 `gorm:"column:id;primary_key" json:"id"`
	DisplayName string `gorm:"column:display_name" json:"display_name"`
}

func (*UserRoles) TableName

func (v *UserRoles) TableName() string

type VBSchema

type VBSchema struct {
	ID        uint64    `gorm:"column:id;primary_key" 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"`
}

func (*VBSchema) TableName

func (v *VBSchema) TableName() string

type VBSchemaAdmin

type VBSchemaAdmin struct {
	VbId      uint64    `gorm:"column:vb_id;primary_key" json:"vb_id"`
	Name      string    `gorm:"column:name" json:"name"`
	Schema    string    `gorm:"column:schema;type:LONGTEXT" 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;primary_key" 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 VBSchemaList

type VBSchemaList struct {
	ID        uint64    `gorm:"column:id;primary_key" 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 VBSchemaMSSQL

type VBSchemaMSSQL struct {
	ID        uint64    `gorm:"column:id;primary_key" 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

Jump to

Keyboard shortcuts

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