Replace beego/orm with dbx (#2693)
* Start migration to dbx package * Fix annotations and bookmarks bindings * Fix tests * Fix more tests * Remove remaining references to beego/orm * Add PostScanner/PostMapper interfaces * Fix importing SmartPlaylists * Renaming * More renaming * Fix artist DB mapping * Fix playlist updates * Remove bookmarks at the end of the test * Remove remaining `orm` struct tags * Fix user timestamps DB access * Fix smart playlist evaluated_at DB access * Fix search3
This commit is contained in:
+8
-8
@@ -8,14 +8,14 @@ import (
|
||||
)
|
||||
|
||||
type Share struct {
|
||||
ID string `structs:"id" json:"id,omitempty" orm:"column(id)"`
|
||||
UserID string `structs:"user_id" json:"userId,omitempty" orm:"column(user_id)"`
|
||||
Username string `structs:"-" json:"username,omitempty" orm:"-"`
|
||||
ID string `structs:"id" json:"id,omitempty"`
|
||||
UserID string `structs:"user_id" json:"userId,omitempty"`
|
||||
Username string `structs:"-" json:"username,omitempty"`
|
||||
Description string `structs:"description" json:"description,omitempty"`
|
||||
Downloadable bool `structs:"downloadable" json:"downloadable"`
|
||||
ExpiresAt time.Time `structs:"expires_at" json:"expiresAt,omitempty"`
|
||||
LastVisitedAt time.Time `structs:"last_visited_at" json:"lastVisitedAt,omitempty"`
|
||||
ResourceIDs string `structs:"resource_ids" json:"resourceIds,omitempty" orm:"column(resource_ids)"`
|
||||
ResourceIDs string `structs:"resource_ids" json:"resourceIds,omitempty"`
|
||||
ResourceType string `structs:"resource_type" json:"resourceType,omitempty"`
|
||||
Contents string `structs:"contents" json:"contents,omitempty"`
|
||||
Format string `structs:"format" json:"format,omitempty"`
|
||||
@@ -23,10 +23,10 @@ type Share struct {
|
||||
VisitCount int `structs:"visit_count" json:"visitCount,omitempty"`
|
||||
CreatedAt time.Time `structs:"created_at" json:"createdAt,omitempty"`
|
||||
UpdatedAt time.Time `structs:"updated_at" json:"updatedAt,omitempty"`
|
||||
Tracks MediaFiles `structs:"-" json:"tracks,omitempty" orm:"-"`
|
||||
Albums Albums `structs:"-" json:"albums,omitempty" orm:"-"`
|
||||
URL string `structs:"-" json:"-" orm:"-"`
|
||||
ImageURL string `structs:"-" json:"-" orm:"-"`
|
||||
Tracks MediaFiles `structs:"-" json:"tracks,omitempty"`
|
||||
Albums Albums `structs:"-" json:"albums,omitempty"`
|
||||
URL string `structs:"-" json:"-"`
|
||||
ImageURL string `structs:"-" json:"-"`
|
||||
}
|
||||
|
||||
func (s Share) CoverArtID() ArtworkID {
|
||||
|
||||
Reference in New Issue
Block a user