Documentation ¶
Index ¶
- type Datalicense
- func GetDataLicenseBySomeConditions(p *utils.Pagination, options ...func(option *gorm.DB)) (Datalicenses []Datalicense, err error)
- func GetDatalicensesByPage(p *utils.Pagination, t string) (Datalicenses []Datalicense, err error)
- func SetDatalicense(license LicenseUpload) (Data_license *Datalicense, err error)
- type Dataset
- type DatasetIndex
- type License4Create
- type LicenseBasic
- type LicenseData
- type LicenseData4Create
- type LicenseDataCan
- type LicenseDataCannot
- type LicenseDataLimitation
- type LicenseDataObligation
- type LicenseIndex
- type LicenseModel
- type LicenseModel4Create
- type LicenseModelCan
- type LicenseModelCannot
- type LicenseModelLimitation
- type LicenseModelObligation
- type LicenseOther
- type LicenseOthers4Create
- type LicenseUpload
- type Model
- type Option
- func DataAccessRights(name string) Option
- func DataRepresentRights(name string) Option
- func DataTaggingRights(name string) Option
- func ID(id int) Option
- func LicenseName(name string) Option
- func ModelBenchmarkRights(name string) Option
- func ModelComRights(name string) Option
- func ModelInternalRights(name string) Option
- func ModelOutputComRights(name string) Option
- func ModelPublishRights(name string) Option
- func ModelResearchRights(name string) Option
- func ValidVarchar(key string, value string) Option
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datalicense ¶
type Datalicense struct { Id int `gorm:"type:int;primary_key;autoIncrement" json:"id"` LicenseUuid string `gorm:"type:TEXT" json:"license_uuid,omitempty"` LicenseName string `gorm:"type:TEXT" json:"license_name,omitempty"` LicenseType string `gorm:"type:TEXT" json:"license_type,omitempty"` OsiApproved string `gorm:"type:TEXT" json:"osi_approved,omitempty"` ShortIdentifier string `gorm:"type:TEXT" json:"short_identifier,omitempty"` DataAccessRights string `gorm:"type:TEXT" json:"data_access_rights,omitempty"` DataAccessObligations string `gorm:"type:TEXT" json:"data_access_obligations,omitempty"` DataAccessLimitations string `gorm:"type:TEXT" json:"data_access_limitations,omitempty"` DataTaggingRights string `gorm:"type:TEXT" json:"data_tagging_rights,omitempty"` DataTaggingObligations string `gorm:"type:TEXT" json:"data_tagging_obligations,omitempty"` DataTaggingLimitations string `gorm:"type:TEXT" json:"data_tagging_limitations,omitempty"` DataDistributeRights string `gorm:"type:TEXT" json:"data_distribute_rights,omitempty"` DataDistributeObligations string `gorm:"type:TEXT" json:"data_distribute_obligations,omitempty"` DataDistributeLimitations string `gorm:"type:TEXT" json:"data_distribute_limitations,omitempty"` DataNetworkRights string `gorm:"type:TEXT" json:"data_network_rights,omitempty"` DataNetworkObligations string `gorm:"type:TEXT" json:"data_network_obligations,omitempty"` DataNetworkLimitations string `gorm:"type:TEXT" json:"data_network_limitations,omitempty"` DataRepresentRights string `gorm:"type:TEXT" json:"data_represent_rights,omitempty"` DataRepresentObligations string `gorm:"type:TEXT" json:"data_represent_obligations,omitempty"` DataRepresentLimitations string `gorm:"type:TEXT" json:"data_represent_limitations,omitempty"` DataModificationRights string `gorm:"type:TEXT" json:"data_modification_rights,omitempty"` DataModificationObligations string `gorm:"type:TEXT" json:"data_modification_obligations,omitempty"` DataModificationLimitations string `gorm:"type:TEXT" json:"data_modification_limitations,omitempty"` ModelBenchmarkRights string `gorm:"type:TEXT" json:"model_benchmark_rights,omitempty"` ModelBenchmarkObligations string `gorm:"type:TEXT" json:"model_benchmark_obligations,omitempty"` ModelBenchmarkLimitations string `gorm:"type:TEXT" json:"model_benchmark_limitations,omitempty"` ModelResearchRights string `gorm:"type:TEXT" json:"model_research_rights,omitempty"` ModelResearchObligations string `gorm:"type:TEXT" json:"model_research_obligations,omitempty"` ModelResearchLimitations string `gorm:"type:TEXT" json:"model_research_limitations,omitempty"` ModelPublishRights string `gorm:"type:TEXT" json:"model_publish_rights,omitempty"` ModelPublishObligations string `gorm:"type:TEXT" json:"model_publish_obligations,omitempty"` ModelPublishLimitations string `gorm:"type:TEXT" json:"model_publish_limitations,omitempty"` ModelInternalRights string `gorm:"type:TEXT" json:"model_internal_rights,omitempty"` ModelInternalObligations string `gorm:"type:TEXT" json:"model_internal_obligations,omitempty"` ModelInternalLimitations string `gorm:"type:TEXT" json:"model_internal_limitations,omitempty"` ModelOutputComRights string `gorm:"type:TEXT" json:"model_output_com_rights,omitempty"` ModelOutputComObligations string `gorm:"type:TEXT" json:"model_output_com_obligations,omitempty"` ModelOutputComLimitations string `gorm:"type:TEXT" json:"model_output_com_limitations,omitempty"` ModelComRights string `gorm:"type:TEXT" json:"model_com_rights,omitempty"` ModelComObligations string `gorm:"type:TEXT" json:"model_com_obligations,omitempty"` ModelComLimitations string `gorm:"type:TEXT" json:"model_com_limitations,omitempty"` ModelRevRights string `gorm:"type:TEXT" json:"model_rev_rights,omitempty"` ModelRevObligations string `gorm:"type:TEXT" json:"model_rev_obligations,omitempty"` ModelRevLimitations string `gorm:"type:TEXT" json:"model_rev_limitations,omitempty"` Credit string `gorm:"type:TEXT" json:"credit,omitempty"` ValidityPeriod int `gorm:"type:int" json:"validity_period,omitempty"` Liability string `gorm:"type:TEXT" json:"liability,omitempty"` Designated string `gorm:"type:TEXT" json:"designated,omitempty"` Additional string `gorm:"type:TEXT" json:"additional,omitempty"` Remark string `gorm:"type:TEXT" json:"remark,omitempty"` Available int `gorm:"type:int" json:"available,omitempty"` }
func GetDataLicenseBySomeConditions ¶
func GetDataLicenseBySomeConditions(p *utils.Pagination, options ...func(option *gorm.DB)) (Datalicenses []Datalicense, err error)
func GetDatalicensesByPage ¶
func GetDatalicensesByPage(p *utils.Pagination, t string) (Datalicenses []Datalicense, err error)
func SetDatalicense ¶
func SetDatalicense(license LicenseUpload) (Data_license *Datalicense, err error)
type Dataset ¶
type Dataset struct { Id int `gorm:"type:int;primary_key;autoIncrement" json:"id"` DatasetName string `gorm:"type:TEXT" json:"dataset_name,omitempty"` DatasetVersion string `gorm:"type:TEXT" json:"dataset_version,omitempty"` LicenseId int `gorm:"type:int" json:"license_id,omitempty"` LicenseName string `gorm:"type:TEXT" json:"license_name,omitempty"` Licensor string `gorm:"type:TEXT" json:"licensor,omitempty"` LicenseFrom string `gorm:"type:TEXT" json:"license_from,omitempty"` LicenseLocation string `gorm:"type:TEXT" json:"license_location,omitempty"` TaskType string `gorm:"type:TEXT" json:"task_type,omitempty"` LicenseContent string `gorm:"type:TEXT" json:"license_content,omitempty"` Origin string `gorm:"type:TEXT" json:"origin,omitempty"` DownloadedOutlet string `gorm:"type:TEXT" json:"downloaded_outlet,omitempty"` OutletLicensed string `gorm:"type:TEXT" json:"outlet_licensed,omitempty"` HashCode string `gorm:"type:TEXT" json:"hash_code,omitempty"` DataSize string `gorm:"type:TEXT" json:"data_size,omitempty"` Format string `gorm:"type:TEXT" json:"format,omitempty"` Description string `gorm:"type:TEXT" json:"description,omitempty"` IsPersonalData string `gorm:"type:TEXT" json:"is_personal_data,omitempty"` IsAdditionalVerify string `gorm:"type:TEXT" json:"is_additional_verify,omitempty"` IsOffensiveContent string `gorm:"type:TEXT" json:"is_offensive_content,omitempty"` CollectionProcess string `gorm:"type:TEXT" json:"collection_process,omitempty"` Restrictions string `gorm:"type:TEXT" json:"restrictions,omitempty"` IsComply string `gorm:"type:TEXT" json:"is_comply,omitempty"` RestrictionNotes string `gorm:"type:TEXT" json:"restriction_notes,omitempty"` DatasetCollectMethod string `gorm:"type:TEXT" json:"dataset_collect_method,omitempty"` AdditionalNotes string `gorm:"type:TEXT" json:"additional_notes,omitempty"` Challenges string `gorm:"type:TEXT" json:"challenges,omitempty"` Available int `gorm:"type:int" json:"available,omitempty"` }
func GetDatasetByID ¶
func GetDatasetByName ¶
func GetDatasetsByPage ¶
func GetDatasetsByPage(p *utils.Pagination) (Datasets []Dataset, err error)
func SearchDatasetByName ¶
type DatasetIndex ¶
type DatasetIndex struct { Id int `gorm:"type:int;primary_key;autoIncrement" json:"id"` DatasetName string `gorm:"type:TEXT" json:"dataset_name,omitempty"` }
func GetDatasetIndex ¶
func GetDatasetIndex() (Datasetindexes []DatasetIndex, err error)
type License4Create ¶
type License4Create struct { Name string `json:"name,omitempty"` Rights string `json:"rights,omitempty"` Limitations string `json:"limitations,omitempty"` Limitations_Text string `json:"limitations_text,omitempty"` Obligations string `json:"obligations,omitempty"` Obligations_Text string `json:"obligations_text,omitempty"` }
type LicenseBasic ¶
type LicenseBasic struct { Id int `json:"id,omitempty"` LicenseUuid string `json:"license_uuid,omitempty"` LicenseName string `json:"license_name,omitempty"` LicenseType string `json:"license_type,omitempty"` OsiApproved string `json:"osi_approved,omitempty"` ShortIdentifier string `json:"short_identifier,omitempty"` }
func GetDatalicenseBasicByID ¶
func GetDatalicenseBasicByID(id int) (Licensebasic *LicenseBasic, err error)
func GetDatalicenseBasicByName ¶
func GetDatalicenseBasicByName(name string) (Licensebasic *LicenseBasic, err error)
func SearchDatalicenseBasicByName ¶
func SearchDatalicenseBasicByName(name string, t string) (LicenseBasics []LicenseBasic, err error)
type LicenseData ¶
type LicenseData struct { Can []LicenseDataCan `json:"can,omitempty"` Cannot []LicenseDataCannot `json:"cannot,omitempty"` Obligation []LicenseDataObligation `json:"obligation,omitempty"` Limitation []LicenseDataLimitation `json:"limitation,omitempty"` }
func GetDatalicenseDataByID ¶
func GetDatalicenseDataByID(id int) (LicenseDataBoxs *LicenseData, err error)
type LicenseData4Create ¶
type LicenseData4Create struct { Access License4Create `json:"access,omitempty"` Tagging License4Create `json:"tagging,omitempty"` Distribute License4Create `json:"distribute,omitempty"` Network License4Create `json:"network,omitempty"` Represent License4Create `json:"represent,omitempty"` Modification License4Create `json:"modification,omitempty"` }
type LicenseDataCan ¶
type LicenseDataCannot ¶
type LicenseDataLimitation ¶
type LicenseDataObligation ¶
type LicenseIndex ¶
type LicenseIndex struct { Id int `gorm:"type:int;primary_key;autoIncrement" json:"id"` LicenseName string `gorm:"type:TEXT" json:"license_name,omitempty"` }
func GetDatalicenseIndex ¶
func GetDatalicenseIndex(t string) (Licenseindexes []LicenseIndex, err error)
type LicenseModel ¶
type LicenseModel struct { Can []LicenseModelCan `json:"can,omitempty"` Cannot []LicenseModelCannot `json:"cannot,omitempty"` Obligation []LicenseModelObligation `json:"obligation,omitempty"` Limitation []LicenseModelLimitation `json:"limitation,omitempty"` }
func GetDatalicenseModelByID ¶
func GetDatalicenseModelByID(id int) (LicenseModelBoxs *LicenseModel, err error)
type LicenseModel4Create ¶
type LicenseModel4Create struct { Benchmark License4Create `json:"benchmark,omitempty"` Research License4Create `json:"research,omitempty"` Publish License4Create `json:"publish,omitempty"` Internal License4Create `json:"internal,omitempty"` Output_com License4Create `json:"output_com,omitempty"` Com License4Create `json:"com,omitempty"` Rev License4Create `json:"rev,omitempty"` }
type LicenseModelCan ¶
type LicenseModelCannot ¶
type LicenseModelLimitation ¶
type LicenseModelObligation ¶
type LicenseOther ¶
type LicenseOther struct { Id int `json:"id"` Property string `json:"property,omitempty"` Value string `json:"value,omitempty"` }
func GetDatalicenseOtherByID ¶
func GetDatalicenseOtherByID(id int) (LicenseOtherBoxs []LicenseOther, err error)
type LicenseOthers4Create ¶
type LicenseUpload ¶
type LicenseUpload struct { Data LicenseData4Create `json:"data,omitempty"` Model LicenseModel4Create `json:"model,omitempty"` Basics LicenseBasic `json:"basics,omitempty"` Others LicenseOthers4Create `json:"others,omitempty"` }
type Option ¶
func DataAccessRights ¶
func DataRepresentRights ¶
func DataTaggingRights ¶
func LicenseName ¶
func ModelBenchmarkRights ¶
func ModelComRights ¶
func ModelInternalRights ¶
func ModelOutputComRights ¶
func ModelPublishRights ¶
func ModelResearchRights ¶
func ValidVarchar ¶
Click to show internal directories.
Click to hide internal directories.