增加分页接口
parent
c84f1adbce
commit
99116a3ca8
|
|
@ -54,7 +54,7 @@ namespace New_College.Model.ViewModels
|
|||
public int? Syl { get; set; }
|
||||
}
|
||||
|
||||
public class UniversityRankQuery
|
||||
public class UniversityRankQuery: BasePageRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 院校类型 (0,校友会 1,武书连 2,软科 3,QS 4,U.S.News)
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace New_College.Repository
|
|||
SubjectLevel = u.Subject_Level,
|
||||
Score = string.IsNullOrWhiteSpace(rank.Score) || rank.Score == "0" ? "--" : rank.Score,
|
||||
Uid = u.Id
|
||||
}).ToListAsync();
|
||||
}).ToPageListAsync(query.PageIndex, query.PageSize);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue