using CloudGaming.Repository.Game.Entities.User;
namespace CloudGaming.Api.Admin.ApplicationServices.Apps.User;
///
/// 手机号登录表 服务 T_User_Phone_AccountService
///
public class T_User_Phone_AccountService(IServiceProvider serviceProvider)
: ApplicationUserService(serviceProvider)
{
///
/// 获取列表数据
///
///
///
public async override Task FindListAsync(PagingSearchInput pagingSearchInput)
{
var query = this.Repository.Select
.OrderByDescending(w => w.Id)
.Select(w => new
{
w.Id,
w.TenantId,w.UserId,w.PhoneNum,w.CreatedAt,w.UpdatedAt,w.NikeName,w.IsLogout,
})
;
var result = await Repository.AsPagingViewAsync(query, pagingSearchInput);
// 设置列
//result.GetColumn(query, w => w.OperatorName).SetColumn("操作人");
//result.GetColumn(query, w => w. !).SetColumn(w => w.Name!);
result
.FormatValue(query, w => w.CreatedAt, (oldValue) => oldValue.ToString("yyyy-MM-dd"))
.FormatValue(query, w => w.UpdatedAt, (oldValue) => oldValue.ToString("yyyy-MM-dd"))
;
return result;
}
}