You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
264 B
17 lines
264 B
package service
|
|
|
|
import (
|
|
"github.com/TremblingV5/DouTok/applications/feed/dal/model"
|
|
)
|
|
|
|
func GetVideoByIdInRDB(user_id uint64) (*model.Video, error) {
|
|
v, err := Do.Where(
|
|
Video.ID.Eq(user_id),
|
|
).First()
|
|
|
|
if err != nil {
|
|
return v, err
|
|
}
|
|
|
|
return v, nil
|
|
}
|
|
|