Documentation ¶
Index ¶
- type Bus
- type ComponentProp
- type ConvertSchemas
- type CreateTableReq
- type DeleteTableReq
- type DeleteTableResp
- type DoResponse
- type FindTableReq
- type FindTableResp
- type GetTableInfoReq
- type GetTableInfoResp
- type GetTableReq
- type GetTableResp
- type Guidance
- type Table
- type UpdateConfigReq
- type UpdateConfigResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus struct { UserID string `json:"user_id"` UserName string `json:"user_name"` AppID string `json:"app_id"` TableID string `json:"tableID" binding:"required"` Schema models.WebSchema `json:"schema"` Source models.SourceType `json:"source"` // source 1 是表单驱动,2是模型驱动 Update bool `json:"update"` ConvertSchemas }
type ComponentProp ¶
type ComponentProp struct { AppID string `json:"appID"` TableID string `json:"tableID"` Columns []string `json:"columns"` // 'sub_table | foreign_table' Subordination string `json:"subordination"` // 关联表schema AssociatedTable interface{} `json:"associatedTable"` Multiple bool `json:"multiple"` FieldName string `json:"fieldName"` AggType string `json:"aggType"` Conditions map[string]interface{} `json:"condition"` FilterConfig map[string]interface{} `json:"filterConfig"` Template string `json:"template"` }
ComponentProp schema中 x-component-props 结构.
type ConvertSchemas ¶
type ConvertSchemas struct { ConvertSchema models.SchemaProperties `json:"convertSchema"` Title string FieldLen int64 Description string }
type CreateTableReq ¶
type DeleteTableReq ¶
type DeleteTableResp ¶
type DeleteTableResp struct{}
type DoResponse ¶
type DoResponse struct{}
type FindTableReq ¶
type FindTableResp ¶
type FindTableResp struct { List []*tableVo `json:"list"` Total int64 `json:"total"` }
type GetTableInfoReq ¶
type GetTableInfoResp ¶
type GetTableReq ¶
type GetTableResp ¶
type Table ¶
type Table interface { GetTable(ctx context.Context, req *GetTableReq) (*GetTableResp, error) DeleteTable(ctx context.Context, req *DeleteTableReq) (*DeleteTableResp, error) FindTable(ctx context.Context, req *FindTableReq) (*FindTableResp, error) UpdateConfig(ctx context.Context, req *UpdateConfigReq) (*UpdateConfigResp, error) GetTableInfo(ctx context.Context, req *GetTableInfoReq) (*GetTableInfoResp, error) }
type UpdateConfigReq ¶
type UpdateConfigResp ¶
type UpdateConfigResp struct{}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.