Skip to content

Commit

Permalink
✨ :: [#318] TeacherDomain / Interface DI
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuunseo committed Feb 20, 2024
1 parent 007e17c commit 885155a
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
public protocol TeacherDomainBuildable {
var commonSignupUseCase: any CommonSignupUseCase { get }
var principalSignupUseCase: any PrincipalSignupUseCase { get }
var deputyPrincipalSignupUseCase: any DeputyPrincipalSignupUseCase { get }
var directorSignupUseCase: any DirectorSignupUseCase { get }
var homeRoomSignupUseCase: any HomeRoomSignupUseCase { get }
var teacherRepository: any TeacherRepository { get }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// RemoteTeacherDataSource.swift
// TeacherDomainInterface
//
// Created by 정윤서 on 2/20/24.
// Copyright © 2024 com.msg. All rights reserved.
//

import Foundation
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// TeacherDomainError.swift
// TeacherDomainInterface
//
// Created by 정윤서 on 2/20/24.
// Copyright © 2024 com.msg. All rights reserved.
//

import Foundation
1 change: 0 additions & 1 deletion Projects/Domain/TeacherDomain/Interface/Interface.swift

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// TeacherRepository.swift
// TeacherDomainInterface
//
// Created by 정윤서 on 2/20/24.
// Copyright © 2024 com.msg. All rights reserved.
//

import Foundation
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Foundation

public protocol CommonSignupUseCase {
func execute() async throws
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Foundation

public protocol DeputyPrincipalSignupUseCase {
func execute() async throws
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Foundation

public protocol DirectorSignupUseCase {
func execute() async throws
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Foundation

public protocol HomeRoomSignupUseCase {
func execute(grade: Int, classNum: Int) async throws
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Foundation

public protocol PrincipalSignupUseCase {
func execute() async throws
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//
// TeacherEndPoint.swift
// TeacherDomainInterface
//
// Created by 정윤서 on 2/20/24.
// Copyright © 2024 com.msg. All rights reserved.
//

import Foundation

0 comments on commit 885155a

Please sign in to comment.