using Learn.Archives.API.Controllers.Dto;
using Learn.Archives.API.Expand;
using Learn.Archives.Core.Common;
using Learn.Archives.Core.Model;
using Learn.Archives.Core.Model.Dto;
using Mapster;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Diagnostics;
using System.Security.Claims;
using UserCenter.Model;
using static System.Runtime.InteropServices.JavaScript.JSType;
namespace Learn.Archives.API.Controllers
{
///
/// 班级控制器
///
public class ClassController : BackController
{
readonly Repository baseService;
readonly LiveUserInfo userInfo;
public ClassController(Repository baseService, LiveUserInfo userInfo) : base(baseService)
{
this.baseService = baseService;
this.userInfo = userInfo;
}
public override async Task PageList([FromBody] QueryRequestBase model)
{
var res = (PageResult) await base.PageList(model);
return new PageResult() { Data = res.Data.Adapt>(), Total = res.Total };
}
}
}