Documentation ¶
Index ¶
- func DataModelPOToDataModelDO(ctx context.Context, model *DataModel) *datamodel.DataModel
- func DataModelPOToDataModelDTO(ctx context.Context, d *DataModel, count int64) *query.DataModel
- func EntityGridPOToEntityGridDTO(ctx context.Context, e *EntityGrid) string
- func EntityGridPOToRowIDDTO(ctx context.Context, e *EntityGrid) string
- func EntityGridsPOToColumnDTO(ctx context.Context, e []*EntityGrid, rowIDs []string) []string
- func EntityGridsPOToRowIDsDTO(ctx context.Context, e []*EntityGrid) []string
- func EntityHeadersPOToHeadersDTO(ctx context.Context, h *EntityHeader) string
- func EntitySetRowPOToEntitySetRowDTO(ctx context.Context, e *EntitySetRow, m map[string][]string) map[string][]string
- func EntitySetRowPOToRowIDDTO(ctx context.Context, e *EntitySetRow) string
- func EntitySetRowsPOToEntitySetRowIDsDTO(ctx context.Context, e []*EntitySetRow) []string
- func EntitySetRowsPOToEntitySetRowsDTO(ctx context.Context, e []*EntitySetRow, rowIDs []string) [][]string
- func EntitySetRowsPOToRowIDsDTO(ctx context.Context, e []*EntitySetRow) []string
- func NewDataModelReadModel(ctx context.Context, db *gorm.DB) (query.DataModelReadModel, error)
- func NewDataModelRepository(ctx context.Context, db *gorm.DB) (datamodel.Repository, error)
- func WorkspaceRowPOToRowIDDTO(ctx context.Context, w *WorkspaceRow) string
- func WorkspaceRowPOToWorkspaceRowDTO(ctx context.Context, e *WorkspaceRow) []string
- func WorkspaceRowsPOToRowIDsDTO(ctx context.Context, e []*WorkspaceRow) []string
- func WorkspaceRowsPOToWorkspaceRowsDTO(ctx context.Context, e []*WorkspaceRow) [][]string
- type DataModel
- type EntityGrid
- type EntityHeader
- type EntitySetRow
- type WorkspaceRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntityGridPOToEntityGridDTO ¶
func EntityGridPOToEntityGridDTO(ctx context.Context, e *EntityGrid) string
func EntityGridPOToRowIDDTO ¶
func EntityGridPOToRowIDDTO(ctx context.Context, e *EntityGrid) string
func EntityGridsPOToColumnDTO ¶
func EntityGridsPOToColumnDTO(ctx context.Context, e []*EntityGrid, rowIDs []string) []string
func EntityGridsPOToRowIDsDTO ¶
func EntityGridsPOToRowIDsDTO(ctx context.Context, e []*EntityGrid) []string
func EntityHeadersPOToHeadersDTO ¶
func EntityHeadersPOToHeadersDTO(ctx context.Context, h *EntityHeader) string
func EntitySetRowPOToRowIDDTO ¶
func EntitySetRowPOToRowIDDTO(ctx context.Context, e *EntitySetRow) string
func EntitySetRowsPOToEntitySetRowIDsDTO ¶
func EntitySetRowsPOToEntitySetRowIDsDTO(ctx context.Context, e []*EntitySetRow) []string
func EntitySetRowsPOToEntitySetRowsDTO ¶
func EntitySetRowsPOToEntitySetRowsDTO(ctx context.Context, e []*EntitySetRow, rowIDs []string) [][]string
func EntitySetRowsPOToRowIDsDTO ¶
func EntitySetRowsPOToRowIDsDTO(ctx context.Context, e []*EntitySetRow) []string
func NewDataModelReadModel ¶
NewDataModelReadModel ...
func NewDataModelRepository ¶
NewDataModelRepository ...
func WorkspaceRowPOToRowIDDTO ¶
func WorkspaceRowPOToRowIDDTO(ctx context.Context, w *WorkspaceRow) string
func WorkspaceRowPOToWorkspaceRowDTO ¶
func WorkspaceRowPOToWorkspaceRowDTO(ctx context.Context, e *WorkspaceRow) []string
func WorkspaceRowsPOToRowIDsDTO ¶
func WorkspaceRowsPOToRowIDsDTO(ctx context.Context, e []*WorkspaceRow) []string
func WorkspaceRowsPOToWorkspaceRowsDTO ¶
func WorkspaceRowsPOToWorkspaceRowsDTO(ctx context.Context, e []*WorkspaceRow) [][]string
Types ¶
type DataModel ¶
type DataModel struct { ID string WorkspaceID string `gorm:"type:varchar(32);not null;uniqueIndex:data_ws"` Name string `gorm:"type:varchar(50) CHARACTER SET gbk COLLATE gbk_bin;not null;uniqueIndex:data_ws"` Type string `gorm:"type:varchar(32);not null"` CreatedAt time.Time UpdatedAt time.Time }
type EntityGrid ¶
type EntityGrid struct { RowID string `gorm:"primaryKey;type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"` ColumnIndex int `gorm:"primaryKey;not null"` DataModelID string `gorm:"primaryKey;type:varchar(32);not null;index"` Value string `gorm:"type:longtext CHARACTER SET gbk COLLATE gbk_bin;not null"` }
func DataModelDOtoEntityGridsPO ¶
func DataModelDOtoEntityGridsPO(ctx context.Context, model *datamodel.DataModel) []*EntityGrid
func (*EntityGrid) TableName ¶
func (d *EntityGrid) TableName() string
type EntityHeader ¶
type EntityHeader struct { ColumnIndex int `gorm:"primaryKey;not null"` DataModelID string `gorm:"primaryKey;type:varchar(32);not null;index"` Name string `gorm:"type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"` Type string `gorm:"type:varchar(32);not null"` }
func DataModelDOtoEntityHeadersPO ¶
func DataModelDOtoEntityHeadersPO(ctx context.Context, model *datamodel.DataModel) []*EntityHeader
func (*EntityHeader) TableName ¶
func (d *EntityHeader) TableName() string
type EntitySetRow ¶
type EntitySetRow struct { ID uint RowID string `gorm:"type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"` DataModelID string `gorm:"type:varchar(32);not null;index"` RefRowID string `gorm:"type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"` }
func (*EntitySetRow) TableName ¶
func (d *EntitySetRow) TableName() string
type WorkspaceRow ¶
type WorkspaceRow struct { Key string `gorm:"primaryKey;type:varchar(100) CHARACTER SET gbk COLLATE gbk_bin;not null"` DataModelID string `gorm:"primaryKey;type:varchar(32);not null;index"` Value string `gorm:"type:longtext CHARACTER SET gbk COLLATE gbk_bin;not null"` Type string `gorm:"type:varchar(32);not null"` }
func DataModelDOtoWorkspaceRowsPO ¶
func DataModelDOtoWorkspaceRowsPO(ctx context.Context, model *datamodel.DataModel) []*WorkspaceRow
func (*WorkspaceRow) TableName ¶
func (d *WorkspaceRow) TableName() string
Click to show internal directories.
Click to hide internal directories.