|
|
|
@@ -25,14 +25,14 @@ func (BlockChain) TableName() string { |
|
|
|
} |
|
|
|
|
|
|
|
type Binding struct { |
|
|
|
ID DataID `gorm:"column:id;primaryKey;autoIncrement" json:"ID"` |
|
|
|
UserID cdssdk.UserID `gorm:"column:user_id" json:"userID"` |
|
|
|
Name string `gorm:"column:name" json:"Name"` |
|
|
|
DataType string `gorm:"column:data_type" json:"dataType"` |
|
|
|
JsonData string `gorm:"column:json_data" json:"jsonData"` |
|
|
|
Content string `gorm:"column:content" json:"Content"` |
|
|
|
AccessLevel string `gorm:"column:access_level" json:"accessLevel"` |
|
|
|
CreateTime time.Time `gorm:"column:created_at" json:"createTime"` |
|
|
|
ID DataID `gorm:"column:id;primaryKey;autoIncrement" json:"ID"` |
|
|
|
UserID cdssdk.UserID `gorm:"column:user_id" json:"userID"` |
|
|
|
Name string `gorm:"column:name" json:"Name"` |
|
|
|
DataType string `gorm:"column:data_type" json:"dataType"` |
|
|
|
//JsonData string `gorm:"column:json_data" json:"jsonData"` |
|
|
|
Content string `gorm:"column:content" json:"Content"` |
|
|
|
AccessLevel string `gorm:"column:access_level" json:"accessLevel"` |
|
|
|
CreateTime time.Time `gorm:"column:created_at" json:"createTime"` |
|
|
|
} |
|
|
|
|
|
|
|
type BindingAccessData struct { |
|
|
|
@@ -66,6 +66,13 @@ func (Binding) TableName() string { |
|
|
|
return "BindingData" // 确保和数据库中的表名一致 |
|
|
|
} |
|
|
|
|
|
|
|
type BindingCluster struct { |
|
|
|
BindingID DataID `gorm:"column:binding_id" json:"bindingID"` |
|
|
|
ClusterID ClusterID `gorm:"column:cluster_id" json:"clusterID"` |
|
|
|
Status string `gorm:"column:status" json:"status"` |
|
|
|
JsonData string `gorm:"column:json_data" json:"jsonData"` |
|
|
|
} |
|
|
|
|
|
|
|
type Folder struct { |
|
|
|
PackageID cdssdk.PackageID `gorm:"column:package_id" json:"packageID"` |
|
|
|
Path string `gorm:"column:path_name" json:"path"` |
|
|
|
|