有效期1
This commit is contained in:
@@ -73,6 +73,15 @@ func (r *VideoDao) GetVideoList(maps interface{}) (m []*model.Video, err error)
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// GetVideoListNotIn 获取列表
|
||||
func (r *VideoDao) GetVideoListNotIn(maps interface{}, ids []int64) (m []*model.Video, err error) {
|
||||
err = global.Db.Where(maps).Where("video_id NOT IN ?", ids).Find(&m).Error
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// GetVideoCount 获取数量
|
||||
func (r *VideoDao) GetVideoCount(maps interface{}) (total int64, err error) {
|
||||
err = global.Db.Model(&model.Video{}).Where(maps).Count(&total).Error
|
||||
|
||||
Reference in New Issue
Block a user