Skip to content
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions api/openapi/academic/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,13 @@ paths:
items:
$ref: '#/components/schemas/DottoFoundationV1.CulturalSubjectCategory'
explode: false
- name: userId
Comment thread
KurenNagata marked this conversation as resolved.
Outdated
in: query
required: false
description: ユーザーID; 指定した場合はユーザーのコース・学年に近い順にソートする
Comment thread
KurenNagata marked this conversation as resolved.
Outdated
schema:
type: string
explode: false
responses:
'200':
description: 科目のリスト
Expand Down
3 changes: 2 additions & 1 deletion cmd/academic-api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func main() {
makeupClassRepo := repository.NewMakeupClassRepository(conn)
roomChangeRepo := repository.NewRoomChangeRepository(conn)
facultyRoomRepo := repository.NewFacultyRoomRepository(conn)
userRepo := repository.NewUserRepository(conn)
// Events
substituteDayMap, err := event.LoadSubstituteDayMap(assets.EventsJSON)
if err != nil {
Expand All @@ -98,7 +99,7 @@ func main() {
facultyRoomSvc := service.NewFacultyRoomService(facultyRoomRepo)

// Handler + Router
h := handler.NewHandler(subjectSvc, facultySvc, roomSvc, timetableItemSvc, courseRegistrationSvc, personalCalendarItemSvc, cancelledClassSvc, makeupClassSvc, roomChangeSvc, facultyRoomSvc)
h := handler.NewHandler(subjectSvc, facultySvc, roomSvc, timetableItemSvc, courseRegistrationSvc, personalCalendarItemSvc, cancelledClassSvc, makeupClassSvc, roomChangeSvc, facultyRoomSvc, userRepo)
Comment thread
KurenNagata marked this conversation as resolved.
Outdated
strictHandler := api.NewStrictHandler(h, []api.StrictMiddlewareFunc{
middleware.DeadlineErrorMapper(),
})
Comment thread
KurenNagata marked this conversation as resolved.
Outdated
Expand Down
Loading