types.go 449 B

123456789101112131415161718
  1. package read
  2. type Song struct {
  3. TrackNumber int `db:"track_number"`
  4. Title string `db:"title"`
  5. Artist string `db:"artist"`
  6. Album string `db:"album"`
  7. Duration int `db:"duration"`
  8. DurationOk bool
  9. BasePath string `db:"base_path"`
  10. RelativePath string `db:"relative_path"`
  11. ModifiedDate int64 `db:"modified_date"`
  12. }
  13. type File struct {
  14. RelativePath string `db:"relative_path"`
  15. ModifiedDate int64 `db:"modified_date"`
  16. }