mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 19:20:37 +03:00
* add internet radio support * Add dynamic sidebar icon to Radios * Fix typos * Make URL suffix consistent * Fix typo * address feedback * Don't need to preload when playing Internet Radios * Reorder migration, or else it won't be applied * Make Radio list view responsive Also added filter by name, removed RadioActions and RadioContextMenu, and added a default radio icon, in case of favicon is not available. * Simplify StreamField usage * fix button, hide progress on mobile * use js styles over index.css Co-authored-by: Deluan <deluan@navidrome.org>
24 lines
740 B
Go
24 lines
740 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type Radio struct {
|
|
ID string `structs:"id" json:"id" orm:"pk;column(id)"`
|
|
StreamUrl string `structs:"stream_url" json:"streamUrl"`
|
|
Name string `structs:"name" json:"name"`
|
|
HomePageUrl string `structs:"home_page_url" json:"homePageUrl" orm:"column(home_page_url)"`
|
|
CreatedAt time.Time `structs:"created_at" json:"createdAt"`
|
|
UpdatedAt time.Time `structs:"updated_at" json:"updatedAt"`
|
|
}
|
|
|
|
type Radios []Radio
|
|
|
|
type RadioRepository interface {
|
|
ResourceRepository
|
|
CountAll(options ...QueryOptions) (int64, error)
|
|
Delete(id string) error
|
|
Get(id string) (*Radio, error)
|
|
GetAll(options ...QueryOptions) (Radios, error)
|
|
Put(u *Radio) error
|
|
}
|