Documentation ¶
Index ¶
- Variables
- func AddList(userid int, name, description string, public bool) error
- func AddPlayListToItem(userid, itemid, playlistid int) error
- func AddSong(userid int, name, description, link string) error
- func AddTag(userid int, name string) error
- func AddTagToItem(userid, itemid, tagid int) error
- func CheckPasswordVerify(code, new string) (bool, error)
- func CheckVerify(code string) (bool, error)
- func CreateUser(email, name, password string) error
- func DB() *gorm.DB
- func FindUser(email string) (*structure.User, error)
- func FindUserByID(id int) (*structure.User, error)
- func GetList(userid int) (data []structure.PlayList, err error)
- func GetListDetail(userid, listid int) ([]structure.PlayItem, error)
- func GetSongs(userid int) (data []structure.PlayItem, err error)
- func GetTag(userid int) (data []structure.PlayTag, err error)
- func InitDB(dbtype string, connectionInfo string) (*gorm.DB, error)
- func RemoveList(userid, target int) error
- func RemovePlayListFromItem(userid, itemid, playlistid int) error
- func RemoveSong(userid, target int) error
- func RemoveTag(userid, target int) error
- func RemoveTagFromItem(userid, itemid, tagid int) error
- func SetPasswordVerifyCode(email, code string) error
- func UpdateList(userid, target int, name, description string, public bool) error
- func UpdatePassword(name, password string) error
- func UpdateSong(userid, target int, name, description, link string) error
- func UpdateTag(userid, target int, name string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddPlayListToItem ¶
func AddTagToItem ¶
func CheckPasswordVerify ¶
CheckPasswordVerify handles password change verify codes
func RemoveList ¶
func RemovePlayListFromItem ¶
func RemoveSong ¶
func RemoveTagFromItem ¶
func SetPasswordVerifyCode ¶
SetPasswordVerifyCode handles password change event
func UpdatePassword ¶
UpdatePassword updates user's password
func UpdateSong ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.