Skip to content

Commit

Permalink
Add FileRecord and ParentRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jun 1, 2024
1 parent 9d095ab commit 50be1bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dbs/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions dbs/parents.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50be1bb

Please sign in to comment.