Chore: Deprecate FolderID in LibraryElement struct (#77377)

* Chore: Deprecate FolderID in LibraryElement struct

* chore: format deprecated comment

* chore: add remaining nolint comments
This commit is contained in:
Kat Yang
2023-10-31 13:02:53 -04:00
committed by GitHub
parent 13c0268d6b
commit f9b21083c6
2 changed files with 8 additions and 7 deletions

View File

@@ -20,8 +20,9 @@ const (
// LibraryElement is the model for library element definitions.
type LibraryElement struct {
ID int64 `xorm:"pk autoincr 'id'"`
OrgID int64 `xorm:"org_id"`
ID int64 `xorm:"pk autoincr 'id'"`
OrgID int64 `xorm:"org_id"`
// Deprecated: use FolderUID instead
FolderID int64 `xorm:"folder_id"`
UID string `xorm:"uid"`
Name string