-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from SEOKKAMONI/main
ADD: 졸업생 구분 추가
- Loading branch information
Showing
13 changed files
with
120 additions
and
75 deletions.
There are no files selected for viewing
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 @@ | ||
{ | ||
"singleQuote": true, | ||
"semi": true, | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"trailingComma": "none", | ||
"printWidth": 120, | ||
"arrowParens": "avoid", | ||
"bracketSameLine": false | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import ErrorType from "./types/errorType.js"; | ||
import ErrorType from './types/errorType.js'; | ||
|
||
export default class BsmOauthError extends Error { | ||
constructor( | ||
type: ErrorType, | ||
message?: string | ||
) { | ||
super(message) | ||
constructor(type: ErrorType, message?: string) { | ||
super(message); | ||
this.name = 'BsmOauthError'; | ||
this.type = type; | ||
}; | ||
} | ||
|
||
type: ErrorType; | ||
} | ||
} |
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,9 +1,9 @@ | ||
import UserRole from "./userRole.js"; | ||
import UserRole from './userRole.js'; | ||
|
||
export default interface BsmOauthCommonResource { | ||
readonly userCode: number; | ||
readonly role: UserRole | ||
readonly role: UserRole; | ||
readonly nickname: string; | ||
readonly email: string; | ||
readonly profileUrl: string; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import CommonResource from "./commonResource.js"; | ||
import UserRole from "./userRole.js"; | ||
import CommonResource from './commonResource.js'; | ||
import UserRole from './userRole.js'; | ||
|
||
export interface BsmStudent { | ||
readonly name: string; | ||
readonly enrolledAt: number; | ||
readonly grade: number; | ||
readonly classNo: number; | ||
readonly studentNo: number; | ||
readonly isGraduate: boolean; | ||
} | ||
|
||
export interface BsmStudentResource extends CommonResource { | ||
readonly role: UserRole.STUDENT; | ||
readonly student: BsmStudent; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ enum BsmUserRole { | |
TEACHER = 'TEACHER' | ||
} | ||
|
||
export default BsmUserRole; | ||
export default BsmUserRole; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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