Пример #1
0
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
func Update(db *gorm.DB, body *music.Audio, rw http.ResponseWriter) {
	audio := audio.Audio{DB: db}
	res := audio.Update(body)
	friend.Response(res, rw)
}