types.go 410 B

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