chore: updates to the new folder model (#57776)

This commit is contained in:
Kristin Laemmert 2022-10-28 08:23:39 -04:00 committed by GitHub
parent b9a0576638
commit 6a6fdbc1f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -65,12 +65,9 @@ func modelsToFolders(m []*models.Folder) []*folder.Folder {
UID: f.Uid,
Title: f.Title,
Description: "", // model.Folder does not have a description
URL: f.Url,
Created: f.Created,
CreatedBy: f.CreatedBy,
Updated: f.Updated,
UpdatedBy: f.UpdatedBy,
HasACL: f.HasACL,
}
}
return ret

View File

@ -17,16 +17,11 @@ type Folder struct {
Title string
Description string
// TODO: is URL relevant for folders?
URL string
Created time.Time
Updated time.Time
// TODO: are these next three relevant for folders?
// TODO: validate if this field is required/relevant to folders.
UpdatedBy int64
CreatedBy int64
HasACL bool
}
// NewFolder tales a title and returns a Folder with the Created and Updated