Files
Yi.Admin/Yi.Framework.Net6/test/Yi.Framework.Application/Student/StudentService.cs

47 lines
1.6 KiB
C#
Raw Normal View History

using System;
2023-01-12 14:58:16 +08:00
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yi.Framework.Application.Contracts.Student;
using Yi.Framework.Domain.Student;
using Yi.Framework.Domain.Student.IRepository;
using Microsoft.AspNetCore.Mvc;
using NET.AutoWebApi.Setting;
using Microsoft.AspNetCore.Http;
2023-01-15 14:32:43 +08:00
using Yi.Framework.Ddd.Services.Abstract;
using Yi.Framework.Application.Contracts.Student.Dtos;
using Yi.Framework.Domain.Student.Entities;
using Yi.Framework.Ddd.Services;
using Yi.Framework.Core.Attributes;
2023-01-12 14:58:16 +08:00
namespace Yi.Framework.Application.Student
{
/// <summary>
/// 服务实现
/// </summary>
[AppService]
2023-01-15 14:32:43 +08:00
public class StudentService : CrudAppService<StudentEntity, StudentGetOutputDto, StudentGetListOutputDto, long, StudentGetListInputVo, StudentCreateInputVo, StudentUpdateInputVo>,
IStudentService,IAutoApiService
2023-01-12 14:58:16 +08:00
{
private readonly IStudentRepository _studentRepository;
private readonly StudentManager _studentManager;
2023-01-15 14:32:43 +08:00
public StudentService(IStudentRepository studentRepository, StudentManager studentManager)
2023-01-12 14:58:16 +08:00
{
_studentRepository = studentRepository;
_studentManager = studentManager;
}
/// <summary>
/// 你好世界
/// </summary>
/// <returns></returns>
2023-01-15 14:32:43 +08:00
public async Task<List<StudentGetListOutputDto>> PostShijie()
2023-01-12 14:58:16 +08:00
{
2023-01-16 23:05:01 +08:00
throw new NotImplementedException();
2023-01-15 14:32:43 +08:00
var entities = await _studentRepository.GetMyListAsync();
return await MapToGetListOutputDtosAsync(entities);
2023-01-12 14:58:16 +08:00
}
}
}