mobile 更新
This commit is contained in:
@@ -311,7 +311,7 @@ namespace dy.net.repository
|
||||
{
|
||||
return await Db.Queryable<T>().Where(whereExpression).ToListAsync();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 分页查询
|
||||
/// </summary>
|
||||
|
||||
@@ -17,7 +17,10 @@ namespace dy.net.repository
|
||||
|
||||
|
||||
|
||||
|
||||
public async Task<List<DouyinVideoTopDto>> GetTopsOrderByCreateTime(int top)
|
||||
{
|
||||
return await Db.Queryable<DouyinVideo>().Select(x=>new DouyinVideoTopDto { Title=x.VideoTitle,Time=x.CreateTime.ToString("yyyy-MM-dd HH:mm:ss")}).Take(top).OrderByDescending(x=>x.Time).ToListAsync();
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user