Documentation ¶
Index ¶
- func AddAlbum(name string, artistId uint64) (*model.Album, error)
- func AddArtist(name string) (*model.Artist, error)
- func AddPlaylist(name string, status uint64, userId uint64) (model.Playlist, error)
- func AddSong(name string, albumId uint64, artistIds []uint64, hash string) (*model.Song, error)
- func AddSongPlaylist(playlistId uint64, songIds []uint64, user *model.User) error
- func AddUser(nickname string, username string, password string) (*model.User, error)
- func AlbumNews(pageSize int, page int) ([]model.Album, error)
- func ArtistByID(id uint64) (*model.Artist, error)
- func CheckAlbum(name string) (*model.Album, bool)
- func CheckArtist(name string) (*model.Artist, bool)
- func CheckSong(name string, albumId uint64) (*model.Song, bool)
- func CheckUserName(username string) bool
- func DelAlbum(id uint64) error
- func DelArtist(id uint64) error
- func DelPlaylist(id uint64, user *model.User) error
- func DelSong(id uint64) error
- func DelUser(id uint64) error
- func GetAllUsers(pageSize int, page int) ([]model.User, int64, error)
- func GetSongInfo(song model.Song) model.SongInfo
- func GetSongInfos(songs []model.Song) []model.SongInfo
- func Login(username string, password string) (*model.User, error)
- func PlaylistSongs(playlistId uint64) ([]model.Song, error)
- func RecommendPlaylists() ([]model.Playlist, error)
- func RecommendSongs() ([]model.Song, error)
- func RemoveAdmin(userid uint64) error
- func SearchAlbum(name string, pageSize int, page int) ([]model.Album, int64, error)
- func SearchArtist(name string, pageSize int, page int) ([]model.Artist, int64, error)
- func SearchPlaylist(name string, pageSize int, page int, user *model.User) ([]model.Playlist, int64, error)
- func SearchSong(name string, pageSize int, page int) ([]model.Song, int64, error)
- func SearchUsers(name string, pageSize int, page int) ([]model.User, int64, error)
- func SetAdminUser(userid uint64) error
- func SongById(id uint64) (*model.Song, error)
- func SongNews(pageSize int, page int) ([]model.Song, error)
- func UpdatePassword(id uint64, password string) error
- func UpdateUser(id uint64, nickname string, signature string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPlaylist ¶
func AddSongPlaylist ¶
func CheckUserName ¶
func RecommendPlaylists ¶
func RecommendSongs ¶
func RemoveAdmin ¶
func SearchAlbum ¶
func SearchArtist ¶
func SearchPlaylist ¶
func SearchUsers ¶
func SetAdminUser ¶
func UpdatePassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.