Skip to content

Commit

Permalink
chore: Updated response struct for listing files
Browse files Browse the repository at this point in the history
  • Loading branch information
stevedylandev committed Oct 9, 2024
1 parent c4ec6b0 commit 980a082
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions types.go
Original file line number Diff line number Diff line change
@@ -24,14 +24,19 @@ type Metadata struct {
}

type File struct {
Id string `json:"id"`
Name string `json:"name"`
Cid string `json:"cid"`
Size int `json:"size"`
NumberOfFiles int `json:"number_of_files"`
MimeType string `json:"mime_type"`
GroupId *string `json:"group_id,omitempty"`
CreatedAt string `json:"created_at"`
Id string `json:"id"`
Name string `json:"name"`
Cid string `json:"cid"`
Size int `json:"size"`
NumberOfFiles int `json:"number_of_files"`
MimeType string `json:"mime_type"`
KeyValues map[string]interface{} `json:"keyvalues"`
GroupId *string `json:"group_id,omitempty"`
CreatedAt string `json:"created_at"`
}

type FileUpdateBody struct {
Name string `json:"name"`
}

type GetFileResponse struct {

0 comments on commit 980a082

Please sign in to comment.