-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* class visibility fix * use new schoolService
- Loading branch information
1 parent
188b14d
commit 612b029
Showing
10 changed files
with
118 additions
and
20 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
apps/server/src/modules/group/controller/dto/interface/class-request-context.enum.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum ClassRequestContext { | ||
COURSE = 'course', | ||
CLASS_OVERVIEW = 'class-overview', | ||
} |
1 change: 1 addition & 0 deletions
1
apps/server/src/modules/group/controller/dto/interface/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from './class-sort-by.enum'; | ||
export * from './school-year-query-type.enum'; | ||
export { ClassRequestContext } from './class-request-context.enum'; |
10 changes: 10 additions & 0 deletions
10
apps/server/src/modules/group/controller/dto/request/class-caller-params.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { IsEnum, IsOptional } from 'class-validator'; | ||
import { ClassRequestContext } from '../interface'; | ||
|
||
export class ClassCallerParams { | ||
@IsOptional() | ||
@IsEnum(ClassRequestContext) | ||
@ApiPropertyOptional({ enum: ClassRequestContext, enumName: 'ClassRequestContext' }) | ||
calledFrom?: ClassRequestContext; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters