forked from AcaMate/AcaMate_API
1. 컨트롤러, 서비스(인터페이스), 레포지토리(인터페이스) 추가 2. scoped 등록 3. 클래스 관련 모델 등록 4. ClassInfo API 등록
21 lines
623 B
C#
21 lines
623 B
C#
using Back.Program.Common.Model;
|
|
using Back.Program.Repositories.V1;
|
|
using Back.Program.Repositories.V1.Interfaces;
|
|
using Back.Program.Services.V1.Interfaces;
|
|
|
|
namespace Back.Program.Services.V1;
|
|
|
|
public class ClassService(IClassRepository classRepository): IClassService
|
|
{
|
|
public async Task<APIResponseStatus<object>> GetClassInfo(string summary, string cid)
|
|
{
|
|
var data = await classRepository.FindClassInfo(cid);
|
|
return APIResponse.Send<object>("000", "수업 정보 조회 성공", new
|
|
{
|
|
summary = summary,
|
|
data = data
|
|
}
|
|
);
|
|
|
|
}
|
|
} |