12 lines
219 B
Go
12 lines
219 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import "videoplayer/dao"
|
||
|
|
|
||
|
|
func GetVideo(id, auth_id int) dao.Video {
|
||
|
|
return dao.FindVideoByID(id, auth_id)
|
||
|
|
}
|
||
|
|
|
||
|
|
func GetVideoList(auth_id int) []dao.Video {
|
||
|
|
return dao.FindVideoListsByAuthID(auth_id)
|
||
|
|
}
|