示例#1
0
文件: add.go 项目: ts25504/MuShare
func AddAudio(db *gorm.DB, body *music.Audio, rw http.ResponseWriter) {
	music := audio.Audio{DB: db}
	res := music.AddAudio(body)
	friend.Response(res, rw)
}
示例#2
0
文件: list.go 项目: ts25504/MuShare
func ListSheet(db *gorm.DB, body *music.Sheet, rw http.ResponseWriter) {
	sheet := sheet.Sheet{DB: db}
	res := sheet.ListSheet(body)
	friend.Response(res, rw)
}
示例#3
0
文件: update.go 项目: ts25504/MuShare
func Update(db *gorm.DB, body *music.Audio, rw http.ResponseWriter) {
	audio := audio.Audio{DB: db}
	res := audio.Update(body)
	friend.Response(res, rw)
}