diff --git a/dbs/files.go b/dbs/files.go index 53d5e52..5e6f5cb 100644 --- a/dbs/files.go +++ b/dbs/files.go @@ -28,6 +28,12 @@ type Files struct { MODIFY_BY string `json:"modify_by" validate:"required"` } +// FileRecord represents input file record from HTTP request +type FileRecord struct { + File string `json:"file" validate:"required"` + Dataset string `json:"dataset" validate:"required"` +} + // Files DBS API // //gocyclo:ignore diff --git a/dbs/parents.go b/dbs/parents.go index 535c782..202fae7 100644 --- a/dbs/parents.go +++ b/dbs/parents.go @@ -25,6 +25,11 @@ type Parents struct { MODIFY_BY string `json:"modify_by"` } +// ParentRecord represents input parent record from HTTP request +type ParentRecord struct { + Parent string `json:"parent" validate:"required"` +} + // Parents DBS API // //gocyclo:ignore