-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
chore: commit for merge
Showing
19 changed files
with
203 additions
and
232 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { LectureInfo } from '@/app/type/lecture'; | ||
import { RESULT_CATEGORY } from '@/app/utils/key/result-category.key'; | ||
|
||
export interface ResultCategoryDetailLectures { | ||
categoryName: string; | ||
totalCredits: number; | ||
takenCredits: number; | ||
takenLectures: LectureInfo[]; | ||
haveToLectures: LectureInfo[]; | ||
completed: boolean; | ||
} | ||
|
||
export interface ResultCategoryDetailResponse { | ||
totalCredit: number; | ||
takenCredit: number; | ||
detailCategory: ResultCategoryDetailLectures[]; | ||
completed: boolean; | ||
} | ||
|
||
export interface Major { | ||
majorType: 'PRIMARY' | 'DUAL' | 'SUB'; | ||
major: string; | ||
} | ||
|
||
export interface CreditResponse { | ||
category: keyof typeof RESULT_CATEGORY; | ||
totalCredit: number; | ||
takenCredit: number; | ||
completed: boolean; | ||
} |
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,23 +1,29 @@ | ||
// https://stackoverflow.com/questions/76957592/error-only-async-functions-are-allowed-to-be-exported-in-a-use-server-file | ||
// server action 파일에서는 async function만 export 가능 | ||
|
||
import { SignInResponseSchema, UserInfoResponseSchema, ValidateTokenResponseSchema } from './user.validation'; | ||
import { | ||
InitUserInfoResponseSchema, | ||
SignInResponseSchema, | ||
UserInfoResponseSchema, | ||
ValidateTokenResponseSchema, | ||
} from './user.validation'; | ||
import z from 'zod'; | ||
|
||
export interface SignUpRequestBody { | ||
export interface SignInRequestBody { | ||
authId: string; | ||
password: string; | ||
studentNumber: string; | ||
engLv: string; | ||
} | ||
|
||
export interface SignInRequestBody { | ||
export interface SignUpRequestBody { | ||
authId: string; | ||
password: string; | ||
studentNumber: string; | ||
engLv: string; | ||
} | ||
|
||
export type SignInResponse = z.infer<typeof SignInResponseSchema>; | ||
|
||
export type UserInfoResponse = z.infer<typeof UserInfoResponseSchema>; | ||
export type InitUserInfoResponse = z.infer<typeof InitUserInfoResponseSchema>; | ||
|
||
export type ValidateTokenResponse = z.infer<typeof ValidateTokenResponseSchema>; |
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
Oops, something went wrong.