Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IStudentUseCase ¶
type IStudentUseCase interface {
Create(model StudentModel) (result *StudentModel, err error)
Find() (result []*StudentModel)
}
IStudentUseCase UseCase層のインターフェイス
func NewStudentUseCase ¶
func NewStudentUseCase(repo StudentRepo) IStudentUseCase
NewStudentUseCase UseCase層の実装を持つインスタンス @service
type StudentHandle ¶
type StudentHandle interface {
Post(c interfaces.Context)
Get(c interfaces.Context)
}
StudentHandle application層のインターフェイス
func NewStudentHandler ¶
func NewStudentHandler(u IStudentUseCase) StudentHandle
NewStudentHandler application層の実装を持つインスタンス @handler
type StudentRepo ¶
type StudentRepo interface {
Create(model StudentModel) (result *StudentModel, err error)
Find() (result []*StudentModel)
}
StudentRepo リポジトリインターフェイス
func NewStudentInfra ¶
func NewStudentInfra(db *infra.DB) StudentRepo
NewStudentInfra infrastructure層の実装を持つインスタンス @repo
Click to show internal directories.
Click to hide internal directories.