diff --git a/packages/api/src/common/util/decorators/param-decorator.ts b/packages/api/src/common/util/decorators/param-decorator.ts index 4ed89fc0a..9f238c7bd 100644 --- a/packages/api/src/common/util/decorators/param-decorator.ts +++ b/packages/api/src/common/util/decorators/param-decorator.ts @@ -16,7 +16,7 @@ interface StudentProfile { email: string; type: string; studentId: number; - studentNumber: number; + studentNumber: string; } export type GetStudent = StudentProfile; interface ExecutiveProfile { diff --git a/packages/api/src/drizzle/schema/user.schema.ts b/packages/api/src/drizzle/schema/user.schema.ts index ec5504695..d1d2f9b9e 100644 --- a/packages/api/src/drizzle/schema/user.schema.ts +++ b/packages/api/src/drizzle/schema/user.schema.ts @@ -21,7 +21,7 @@ export const User = mysqlTable("user", { export const Student = mysqlTable("student", { id: int("id").autoincrement().primaryKey(), userId: int("user_id").references(() => User.id), - number: int("number").unique(), + number: varchar("number", { length: 10 }).unique().notNull(), name: varchar("name", { length: 255 }).notNull(), email: varchar("email", { length: 255 }), phoneNumber: varchar("phone_number", { length: 30 }), diff --git a/packages/api/src/feature/auth/dto/auth.dto.ts b/packages/api/src/feature/auth/dto/auth.dto.ts index 0b49e018d..c3f372921 100644 --- a/packages/api/src/feature/auth/dto/auth.dto.ts +++ b/packages/api/src/feature/auth/dto/auth.dto.ts @@ -6,7 +6,7 @@ interface User { name: string; email: string; studentId?: number; - studentNumber?: number; + studentNumber?: string; executiveId?: number; } diff --git a/packages/api/src/feature/auth/repository/auth.repository.ts b/packages/api/src/feature/auth/repository/auth.repository.ts index b85363c77..e25e732f8 100644 --- a/packages/api/src/feature/auth/repository/auth.repository.ts +++ b/packages/api/src/feature/auth/repository/auth.repository.ts @@ -26,15 +26,15 @@ interface FindOrCreateUserReturn { email: string; undergraduate?: { id: number; - number: number; + number: string; }; master?: { id: number; - number: number; + number: string; }; doctor?: { id: number; - number: number; + number: string; }; executive?: { id: number; @@ -101,7 +101,7 @@ export class AuthRepository { .insert(Student) .values({ name, - number: parseInt(studentNumber), + number: studentNumber, userId: user.id, email, }) @@ -109,7 +109,7 @@ export class AuthRepository { const student = await this.db .select() .from(Student) - .where(eq(Student.number, parseInt(studentNumber))) + .where(eq(Student.number, studentNumber)) .then(takeUnique); // studentNumber의 뒤 네자리가 2000 미만일 경우 studentEnum을 1, 5000미만일 경우 2, 6000미만일 경우 1, 나머지는 3으로 설정 @@ -132,9 +132,9 @@ export class AuthRepository { for (const student of students) { // eslint-disable-next-line @typescript-eslint/no-shadow let studentEnum = 3; - if (student.number % 10000 < 2000) studentEnum = 1; - else if (student.number % 10000 < 6000) studentEnum = 2; - else if (student.number % 10000 < 7000) studentEnum = 1; + if (parseInt(student.number.slice(-4)) < 2000) studentEnum = 1; + else if (parseInt(student.number.slice(-4)) < 6000) studentEnum = 2; + else if (parseInt(student.number.slice(-4)) < 7000) studentEnum = 1; if (studentEnum === 1) { result = { @@ -283,15 +283,15 @@ export class AuthRepository { email: string; undergraduate?: { id: number; - number: number; + number: string; }; master?: { id: number; - number: number; + number: string; }; doctor?: { id: number; - number: number; + number: string; }; executive?: { id: number; @@ -319,15 +319,15 @@ export class AuthRepository { email: string; undergraduate?: { id: number; - number: number; + number: string; }; master?: { id: number; - number: number; + number: string; }; doctor?: { id: number; - number: number; + number: string; }; executive?: { id: number; @@ -356,9 +356,9 @@ export class AuthRepository { // eslint-disable-next-line no-restricted-syntax, @typescript-eslint/no-shadow for (const student of await students) { let studentEnum = 3; - if (student.number % 10000 < 2000) studentEnum = 1; - else if (student.number % 10000 < 6000) studentEnum = 2; - else if (student.number % 10000 < 7000) studentEnum = 1; + if (parseInt(student.number.slice(-4)) < 2000) studentEnum = 1; + else if (parseInt(student.number.slice(-4)) < 6000) studentEnum = 2; + else if (parseInt(student.number.slice(-4)) < 7000) studentEnum = 1; if (studentEnum === 1) { result.undergraduate = { id: student.id, number: student.number }; diff --git a/packages/api/src/feature/auth/service/auth.service.ts b/packages/api/src/feature/auth/service/auth.service.ts index 0a7886ffc..e95b7945c 100644 --- a/packages/api/src/feature/auth/service/auth.service.ts +++ b/packages/api/src/feature/auth/service/auth.service.ts @@ -162,15 +162,15 @@ export class AuthService { email: string; undergraduate?: { id: number; - number: number; + number: string; }; master?: { id: number; - number: number; + number: string; }; doctor?: { id: number; - number: number; + number: string; }; executive?: { id: number; diff --git a/packages/api/src/feature/club/service/club.public.service.ts b/packages/api/src/feature/club/service/club.public.service.ts index a0f50bf83..8c4f63a62 100644 --- a/packages/api/src/feature/club/service/club.public.service.ts +++ b/packages/api/src/feature/club/service/club.public.service.ts @@ -101,7 +101,7 @@ export default class ClubPublicService { Array<{ studentId: number; name: string; - studentNumber: number; + studentNumber: string; }> > { const result = diff --git a/packages/interface/src/api/activity-certificate/endpoint/apiAcf004.ts b/packages/interface/src/api/activity-certificate/endpoint/apiAcf004.ts index 1d40cc3dc..5cc9dc487 100644 --- a/packages/interface/src/api/activity-certificate/endpoint/apiAcf004.ts +++ b/packages/interface/src/api/activity-certificate/endpoint/apiAcf004.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { ActivityCertificateOrderStatusEnum } from "@sparcs-clubs/interface/common/enum/activityCertificate.enum"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -25,7 +26,7 @@ const responseBodyMap = { [HttpStatusCode.Ok]: z.object({ id: z.coerce.number().int().min(1), clubId: z.coerce.number().int().min(1), - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, studentPhoneNumber: zKrPhoneNumber, issuedNumber: z.coerce.number().int().min(1), statusEnum: z.nativeEnum(ActivityCertificateOrderStatusEnum), diff --git a/packages/interface/src/api/activity/endpoint/apiAct002.ts b/packages/interface/src/api/activity/endpoint/apiAct002.ts index 4a8fa8074..86413dc0e 100644 --- a/packages/interface/src/api/activity/endpoint/apiAct002.ts +++ b/packages/interface/src/api/activity/endpoint/apiAct002.ts @@ -5,6 +5,7 @@ import { ActivityStatusEnum, ActivityTypeEnum, } from "@sparcs-clubs/interface/common/enum/activity.enum"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -51,7 +52,7 @@ const responseBodyMap = { participants: z.array( z.object({ studentId: z.coerce.number().int().min(1), - studentNumber: z.coerce.number().int().min(20000000), + studentNumber: zStudentNumber, name: z.string().max(255), }), ), diff --git a/packages/interface/src/api/activity/endpoint/apiAct010.ts b/packages/interface/src/api/activity/endpoint/apiAct010.ts index ea12b99ab..60b123081 100644 --- a/packages/interface/src/api/activity/endpoint/apiAct010.ts +++ b/packages/interface/src/api/activity/endpoint/apiAct010.ts @@ -2,7 +2,7 @@ import { HttpStatusCode } from "axios"; import { z } from "zod"; import { zUserName } from "@sparcs-clubs/interface/common/commonString"; - +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 * @description @@ -26,7 +26,7 @@ const responseBodyMap = { students: z.array( z.object({ id: z.coerce.number().int().min(1), - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, name: zUserName, }), ), diff --git a/packages/interface/src/api/club/endpoint/apiClb006.ts b/packages/interface/src/api/club/endpoint/apiClb006.ts index 8ceac0fe9..165c444bf 100644 --- a/packages/interface/src/api/club/endpoint/apiClb006.ts +++ b/packages/interface/src/api/club/endpoint/apiClb006.ts @@ -5,6 +5,7 @@ import { zUserName } from "@sparcs-clubs/interface/common/commonString"; import { ClubDelegateEnum } from "@sparcs-clubs/interface/common/enum/club.enum"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -28,7 +29,7 @@ const responseBodyMap = { z.object({ delegateEnumId: z.nativeEnum(ClubDelegateEnum), studentId: z.coerce.number().int().min(1), - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, name: zUserName, phoneNumber: zKrPhoneNumber, }), diff --git a/packages/interface/src/api/club/endpoint/apiClb008.ts b/packages/interface/src/api/club/endpoint/apiClb008.ts index a1044332d..7ef512aa2 100644 --- a/packages/interface/src/api/club/endpoint/apiClb008.ts +++ b/packages/interface/src/api/club/endpoint/apiClb008.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { ClubDelegateEnum } from "@sparcs-clubs/interface/common/enum/club.enum"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -30,7 +31,7 @@ const responseBodyMap = { students: z.array( z.object({ id: z.coerce.number().int(), - studentNumber: z.string(), + studentNumber: zStudentNumber, name: z.coerce.string().max(20), // studentNumber는 string으로 통일! phoneNumber: zKrPhoneNumber, }), diff --git a/packages/interface/src/api/club/endpoint/apiClb010.ts b/packages/interface/src/api/club/endpoint/apiClb010.ts index d945df32a..2475211aa 100644 --- a/packages/interface/src/api/club/endpoint/apiClb010.ts +++ b/packages/interface/src/api/club/endpoint/apiClb010.ts @@ -2,6 +2,7 @@ import { HttpStatusCode } from "axios"; import { z } from "zod"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 * @description semesterId에 해당하는 학기에 clubId의 동아리에서 활동한 모든 회원 정보를 가져옵니다. @@ -26,7 +27,7 @@ const responseBodyMap = { .object({ name: z.coerce.string().max(30), studentId: z.coerce.number().int().min(1), - studentNumber: z.coerce.number().int().min(20000000).max(30000000), + studentNumber: zStudentNumber, email: z.coerce.string().max(50), phoneNumber: zKrPhoneNumber.optional(), }) diff --git a/packages/interface/src/api/club/endpoint/apiClb011.ts b/packages/interface/src/api/club/endpoint/apiClb011.ts index bbffc9e32..d51fdda28 100644 --- a/packages/interface/src/api/club/endpoint/apiClb011.ts +++ b/packages/interface/src/api/club/endpoint/apiClb011.ts @@ -2,6 +2,7 @@ import { HttpStatusCode } from "axios"; import { z } from "zod"; import { ClubDelegateChangeRequestStatusEnum } from "@sparcs-clubs/interface/common/enum/club.enum"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -25,7 +26,7 @@ const responseBodyMap = { requests: z .object({ studentId: z.coerce.number().int().min(1), - studentNumber: z.coerce.number().int().min(20000000).max(30000000), + studentNumber: zStudentNumber, studentName: z.coerce.string(), clubDelegateChangeRequestStatusEnumId: z.nativeEnum( ClubDelegateChangeRequestStatusEnum, diff --git a/packages/interface/src/api/club/endpoint/apiClb013.ts b/packages/interface/src/api/club/endpoint/apiClb013.ts index 315b4ab41..ef40ebf06 100644 --- a/packages/interface/src/api/club/endpoint/apiClb013.ts +++ b/packages/interface/src/api/club/endpoint/apiClb013.ts @@ -2,6 +2,7 @@ import { HttpStatusCode } from "axios"; import { z } from "zod"; import { ClubDelegateChangeRequestStatusEnum } from "@sparcs-clubs/interface/common/enum/club.enum"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -23,7 +24,7 @@ const responseBodyMap = { .object({ id: z.number().int().min(1), prevStudentId: z.coerce.number().int().min(1), - prevStudentNumber: z.coerce.number().int().min(20000000).max(30000000), + prevStudentNumber: zStudentNumber, prevStudentName: z.coerce.string(), clubId: z.coerce.number().int().min(1), clubName: z.coerce.string(), diff --git a/packages/interface/src/api/registration/endpoint/apiReg008.ts b/packages/interface/src/api/registration/endpoint/apiReg008.ts index bcdb0ae86..a5920f2b7 100644 --- a/packages/interface/src/api/registration/endpoint/apiReg008.ts +++ b/packages/interface/src/api/registration/endpoint/apiReg008.ts @@ -4,6 +4,7 @@ import { z } from "zod"; import { zUserName } from "@sparcs-clubs/interface/common/commonString"; import { RegistrationApplicationStudentStatusEnum } from "@sparcs-clubs/interface/common/enum/registration.enum"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -34,7 +35,7 @@ const responseBodyMap = { student: z.object({ id: z.coerce.number().int().min(1), name: zUserName, - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, email: z.string(), phoneNumber: zKrPhoneNumber.optional(), }), diff --git a/packages/interface/src/api/registration/endpoint/apiReg011.ts b/packages/interface/src/api/registration/endpoint/apiReg011.ts index e6bdfc8ac..c85e48614 100644 --- a/packages/interface/src/api/registration/endpoint/apiReg011.ts +++ b/packages/interface/src/api/registration/endpoint/apiReg011.ts @@ -10,6 +10,7 @@ import { import { ProfessorEnum } from "@sparcs-clubs/interface/common/enum/user.enum"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; import registrationTypeEnumChecker from "../utils/registrationTypeEnumChecker"; @@ -43,7 +44,7 @@ const responseBodyMap = { newClubNameKr: zClubName, newClubNameEn: zClubName, representative: z.object({ - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, name: z.string().max(30), phoneNumber: zKrPhoneNumber, }), diff --git a/packages/interface/src/api/registration/endpoint/apiReg015.ts b/packages/interface/src/api/registration/endpoint/apiReg015.ts index f1fda78f4..a27c99572 100644 --- a/packages/interface/src/api/registration/endpoint/apiReg015.ts +++ b/packages/interface/src/api/registration/endpoint/apiReg015.ts @@ -9,6 +9,7 @@ import { } from "@sparcs-clubs/interface/common/enum/registration.enum"; import { ProfessorEnum } from "@sparcs-clubs/interface/common/enum/user.enum"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; import registrationTypeEnumChecker from "../utils/registrationTypeEnumChecker"; @@ -41,7 +42,7 @@ const responseBodyMap = { newClubNameKr: zClubName, newClubNameEn: zClubName, representative: z.object({ - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, name: z.string().max(30), phoneNumber: zKrPhoneNumber, }), diff --git a/packages/interface/src/api/registration/endpoint/apiReg020.ts b/packages/interface/src/api/registration/endpoint/apiReg020.ts index fcd341907..906a7ff63 100644 --- a/packages/interface/src/api/registration/endpoint/apiReg020.ts +++ b/packages/interface/src/api/registration/endpoint/apiReg020.ts @@ -3,6 +3,7 @@ import { z } from "zod"; import { zUserName } from "@sparcs-clubs/interface/common/commonString"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -41,7 +42,7 @@ const responseBodyMap = { isRegularMemberRegistration: z.coerce.boolean(), student: z.object({ id: z.coerce.number().int().min(1), - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, name: zUserName, phoneNumber: zKrPhoneNumber.optional(), email: z.string().email(), diff --git a/packages/interface/src/api/registration/endpoint/apiReg021.ts b/packages/interface/src/api/registration/endpoint/apiReg021.ts index 2bd22ccd7..7261b9441 100644 --- a/packages/interface/src/api/registration/endpoint/apiReg021.ts +++ b/packages/interface/src/api/registration/endpoint/apiReg021.ts @@ -7,6 +7,7 @@ import { } from "@sparcs-clubs/interface/common/commonString"; import { RegistrationStatusEnum } from "@sparcs-clubs/interface/common/enum/registration.enum"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -42,7 +43,7 @@ const responseBodyMap = { newClubNameEn: zClubName, student: z.object({ id: z.coerce.number().int().min(1), - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, name: zUserName, phoneNumber: zKrPhoneNumber.optional(), email: z.string(), diff --git a/packages/interface/src/api/registration/endpoint/apiReg022.ts b/packages/interface/src/api/registration/endpoint/apiReg022.ts index cd8d6e6ed..285955ac6 100644 --- a/packages/interface/src/api/registration/endpoint/apiReg022.ts +++ b/packages/interface/src/api/registration/endpoint/apiReg022.ts @@ -10,6 +10,7 @@ import { import { ProfessorEnum } from "@sparcs-clubs/interface/common/enum/user.enum"; import { zKrPhoneNumber } from "@sparcs-clubs/interface/common/type/phoneNumber.type"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; import registrationTypeEnumChecker from "../utils/registrationTypeEnumChecker"; @@ -42,7 +43,7 @@ const responseBodyMap = { newClubNameKr: zClubName, newClubNameEn: zClubName, representative: z.object({ - studentNumber: z.coerce.number().int().min(1), + studentNumber: zStudentNumber, name: z.string().max(30), phoneNumber: zKrPhoneNumber, }), diff --git a/packages/interface/src/api/user/endpoint/apiUsr001.ts b/packages/interface/src/api/user/endpoint/apiUsr001.ts index 517704d53..630585052 100644 --- a/packages/interface/src/api/user/endpoint/apiUsr001.ts +++ b/packages/interface/src/api/user/endpoint/apiUsr001.ts @@ -2,6 +2,7 @@ import { HttpStatusCode } from "axios"; import { z } from "zod"; import { zClubName } from "@sparcs-clubs/interface/common/commonString"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; /** * @version v0.1 @@ -30,7 +31,7 @@ const responseBodyMap = { name: z.string().max(30), email: z.string().max(50), department: z.string().max(10), - studentNumber: z.number().int().min(20000000).max(30000000), + studentNumber: zStudentNumber, phoneNumber: z.string().max(20).optional(), }), }; diff --git a/packages/interface/src/api/user/type/user.type.ts b/packages/interface/src/api/user/type/user.type.ts index 1fb7955e8..6610641bc 100644 --- a/packages/interface/src/api/user/type/user.type.ts +++ b/packages/interface/src/api/user/type/user.type.ts @@ -1,9 +1,11 @@ import { z } from "zod"; +import { zStudentNumber } from "@sparcs-clubs/interface/common/type/user.type"; + export const zStudent = z.object({ id: z.number(), userId: z.number().optional(), - studentNumber: z.string(), + studentNumber: zStudentNumber, name: z.string(), email: z.string().optional(), phoneNumber: z.string().optional(), @@ -19,7 +21,7 @@ export const zStudentSummary = zStudent.pick({ export const zExecutive = z.object({ id: z.number(), userId: z.number().optional(), - studentNumber: z.string(), + studentNumber: zStudentNumber, name: z.string(), email: z.string().optional(), phoneNumber: z.string().optional(), diff --git a/packages/interface/src/common/type/user.type.ts b/packages/interface/src/common/type/user.type.ts new file mode 100644 index 000000000..75e3e125e --- /dev/null +++ b/packages/interface/src/common/type/user.type.ts @@ -0,0 +1,8 @@ +import { z } from "zod"; + +const zStudentNumber = z.string().min(6).max(8); + +type StudentNumber = z.infer; + +export { zStudentNumber }; +export type { StudentNumber }; diff --git a/packages/web/src/common/components/MyMenu/_atomic/Profile.tsx b/packages/web/src/common/components/MyMenu/_atomic/Profile.tsx index fbc239413..4202f3cdc 100644 --- a/packages/web/src/common/components/MyMenu/_atomic/Profile.tsx +++ b/packages/web/src/common/components/MyMenu/_atomic/Profile.tsx @@ -8,7 +8,7 @@ import Typography from "@sparcs-clubs/web/common/components/Typography"; interface ProfileProps { profileName: string; - profileNumber: number; + profileNumber: string; email: string; isSelected?: boolean; onClick: () => void; @@ -46,7 +46,7 @@ const Profile: React.FC = ({ isSelected = false, onClick, }) => { - const profileText = (number: number, mail: string) => { + const profileText = (number: string, mail: string) => { if (number && mail) return `${number} / ${mail}`; if (number === undefined || number === null) return `${mail}`; if (mail === undefined || mail === null || mail === "") return `${number}`; diff --git a/packages/web/src/common/components/MyMenu/_atomic/ProfileList.tsx b/packages/web/src/common/components/MyMenu/_atomic/ProfileList.tsx index 5ae8037e3..eb061de69 100644 --- a/packages/web/src/common/components/MyMenu/_atomic/ProfileList.tsx +++ b/packages/web/src/common/components/MyMenu/_atomic/ProfileList.tsx @@ -19,7 +19,7 @@ interface ProfileListProps { } interface DecodedToken extends JwtPayload { - studentNumber: number; + studentNumber: string; email: string; } diff --git a/packages/web/src/common/services/_mock/mockupUserProfile.ts b/packages/web/src/common/services/_mock/mockupUserProfile.ts index f944abbb8..bac73cceb 100644 --- a/packages/web/src/common/services/_mock/mockupUserProfile.ts +++ b/packages/web/src/common/services/_mock/mockupUserProfile.ts @@ -3,7 +3,7 @@ import type { ApiUsr001ResponseOK } from "@sparcs-clubs/interface/api/user/endpo const mockupUserProfile: ApiUsr001ResponseOK = { id: 1234, name: "넙죽이", - studentNumber: 23456789, + studentNumber: "23456789", clubs: [ { id: 1, name_kr: "술박스", name_en: "술박스" }, { id: 2, name_kr: "동연", name_en: "동연" }, diff --git a/packages/web/src/features/activity-certificate/services/_mock/mockupUserInfo.ts b/packages/web/src/features/activity-certificate/services/_mock/mockupUserInfo.ts index bae17fee5..65feb9d0c 100644 --- a/packages/web/src/features/activity-certificate/services/_mock/mockupUserInfo.ts +++ b/packages/web/src/features/activity-certificate/services/_mock/mockupUserInfo.ts @@ -8,7 +8,7 @@ TODO - 유저 데이터를 가져오는 api가 나오면 그걸 기반으로 아 import type { ApiAcf001ResponseCreated } from "@sparcs-clubs/interface/api/activity-certificate/endpoint/apiAcf001"; const mockupUserInfo: ApiAcf001ResponseCreated = { - studentNumber: 20239999, + studentNumber: "20239999", krPhoneNumber: "01012345678", department: "Department of Computing", issuedNumber: 1234, // 이건 무슨 넘버죠? diff --git a/packages/web/src/features/activity-certificate/types/activityCertificate.ts b/packages/web/src/features/activity-certificate/types/activityCertificate.ts index 14930515d..a7158d181 100644 --- a/packages/web/src/features/activity-certificate/types/activityCertificate.ts +++ b/packages/web/src/features/activity-certificate/types/activityCertificate.ts @@ -4,7 +4,7 @@ export interface ActivityBasicInfo { issuedNumber: number; applicantName: string; applicantDepartment: string; - applicantStudentNumber: number; + applicantStudentNumber: string; applicantPhoneNumber: string; } diff --git a/packages/web/src/features/activity-report/_mock/activityReportList.ts b/packages/web/src/features/activity-report/_mock/activityReportList.ts index 988802e36..0fb8211a1 100644 --- a/packages/web/src/features/activity-report/_mock/activityReportList.ts +++ b/packages/web/src/features/activity-report/_mock/activityReportList.ts @@ -17,9 +17,9 @@ export const mockActivityReportData = [ detail: "Python 기초 문법부터 알고리즘까지 단계별 교육", evidence: "출석부, 강의자료", participants: [ - { id: 1, name: "김철수", studentNumber: 20240001 }, - { id: 2, name: "이영희", studentNumber: 20240002 }, - { id: 3, name: "박지민", studentNumber: 20240003 }, + { id: 1, name: "김철수", studentNumber: "20240001" }, + { id: 2, name: "이영희", studentNumber: "20240002" }, + { id: 3, name: "박지민", studentNumber: "20240003" }, ], durations: [ { @@ -41,8 +41,8 @@ export const mockActivityReportData = [ detail: "React 커뮤니티 버그 수정 및 문서화 작업", evidence: "Github PR 내역", participants: [ - { id: 1, name: "장민수", studentNumber: 20240001 }, - { id: 2, name: "김도현", studentNumber: 20240002 }, + { id: 1, name: "장민수", studentNumber: "20240001" }, + { id: 2, name: "김도현", studentNumber: "20240002" }, ], durations: [ { @@ -64,8 +64,8 @@ export const mockActivityReportData = [ detail: "기존 홈페이지 리뉴얼 및 기능 개선", evidence: "기획서, 개발 문서", participants: [ - { id: 1, name: "이지원", studentNumber: 20240001 }, - { id: 2, name: "박현우", studentNumber: 20240002 }, + { id: 1, name: "이지원", studentNumber: "20240001" }, + { id: 2, name: "박현우", studentNumber: "20240002" }, ], durations: [ { @@ -87,9 +87,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -119,8 +119,8 @@ export const mockActivityReportData = [ detail: "알고리즘 대회 개최 및 운영", evidence: "대회 결과물, 시상 내역", participants: [ - { id: 1, name: "현빈", studentNumber: 20240001 }, - { id: 2, name: "송혜교", studentNumber: 20240002 }, + { id: 1, name: "현빈", studentNumber: "20240001" }, + { id: 2, name: "송혜교", studentNumber: "20240002" }, ], durations: [ { @@ -142,9 +142,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -166,9 +166,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -198,9 +198,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -222,9 +222,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -246,9 +246,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -270,9 +270,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -294,9 +294,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -318,9 +318,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -354,9 +354,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -378,9 +378,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -402,9 +402,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -442,9 +442,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { @@ -466,9 +466,9 @@ export const mockActivityReportData = [ detail: "최신 AI 기술 학습 및 실습", evidence: "발표자료, 실습 결과물", participants: [ - { id: 1, name: "김태희", studentNumber: 20240001 }, - { id: 2, name: "정우성", studentNumber: 20240002 }, - { id: 3, name: "손예진", studentNumber: 20240003 }, + { id: 1, name: "김태희", studentNumber: "20240001" }, + { id: 2, name: "정우성", studentNumber: "20240002" }, + { id: 3, name: "손예진", studentNumber: "20240003" }, ], durations: [ { diff --git a/packages/web/src/features/activity-report/_mock/mock.ts b/packages/web/src/features/activity-report/_mock/mock.ts index d02ee3a1f..62745dc31 100644 --- a/packages/web/src/features/activity-report/_mock/mock.ts +++ b/packages/web/src/features/activity-report/_mock/mock.ts @@ -11,7 +11,7 @@ import { ActivityProfessorApprovalEnum } from "@sparcs-clubs/web/features/manage export interface ParticipantTemp { id: number; // 고유 ID - studentNumber: number; // 학번 + studentNumber: string; // 학번 name: string; // 이름 } @@ -253,22 +253,22 @@ export const mockActivityDetailData: ApiAct002ResponseOkTemp = { participants: [ { id: 1, - studentNumber: 20200510, + studentNumber: "20200510", name: "이지윤", }, { id: 2, - studentNumber: 20200511, + studentNumber: "20200511", name: "박병찬", }, { id: 3, - studentNumber: 20230510, + studentNumber: "20230510", name: "이도라", }, { id: 4, - studentNumber: 20240510, + studentNumber: "20240510", name: "스팍스", }, ], diff --git a/packages/web/src/features/activity-report/services/useGetActivityReport.tsx b/packages/web/src/features/activity-report/services/useGetActivityReport.tsx index 081a22516..faaa317cb 100644 --- a/packages/web/src/features/activity-report/services/useGetActivityReport.tsx +++ b/packages/web/src/features/activity-report/services/useGetActivityReport.tsx @@ -57,17 +57,17 @@ defineAxiosMock(mock => { participants: [ { studentId: 20200515, - studentNumber: 20200515, + studentNumber: "20200515", name: "이지윤", }, { studentId: 20200513, - studentNumber: 20200513, + studentNumber: "20200513", name: "박병찬", }, { studentId: 20230512, - studentNumber: 20230512, + studentNumber: "20230512", name: "이도라", }, ], diff --git a/packages/web/src/features/manage-club/members/frames/_mock/mockMembers.ts b/packages/web/src/features/manage-club/members/frames/_mock/mockMembers.ts index 1c95a2475..3832f8459 100644 --- a/packages/web/src/features/manage-club/members/frames/_mock/mockMembers.ts +++ b/packages/web/src/features/manage-club/members/frames/_mock/mockMembers.ts @@ -26,7 +26,7 @@ const mockRegisterMembers = { student: { id: 1, name: "이지윤", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "010-1234-5678", }, @@ -38,7 +38,7 @@ const mockRegisterMembers = { student: { id: 1, name: "박지호", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "010-1234-5678", }, @@ -50,7 +50,7 @@ const mockRegisterMembers = { student: { id: 1, name: "박병찬", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "010-1234-5678", }, @@ -62,7 +62,7 @@ const mockRegisterMembers = { student: { id: 1, name: "이도라", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "010-1234-5678", }, @@ -74,7 +74,7 @@ const mockRegisterMembers = { student: { id: 1, name: "이지윤", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "010-1234-5678", }, @@ -85,80 +85,84 @@ const mockRegisterMembers = { const mockSemesterMembers = { members: [ { - studentNumber: 20210001, + studentNumber: "20210001", name: "일지윤", email: "iljiyun_01@example.com", }, { - studentNumber: 20210002, + studentNumber: "20210002", name: "이지윤", email: "leejiyun_02@example.com", phoneNumber: "010-1234-5678", }, { - studentNumber: 20210003, + studentNumber: "20210003", name: "삼지윤", email: "samjiyun_03@example.com", }, { - studentNumber: 20210004, + studentNumber: "20210004", name: "사지윤", email: "sajiyn_04@example.com", phoneNumber: "010-2345-6789", }, { - studentNumber: 20210005, + studentNumber: "20210005", name: "오지윤", email: "ohjiyun_05@example.com", }, { - studentNumber: 20210006, + studentNumber: "20210006", name: "일지윤", email: "iljiyun_06@example.com", phoneNumber: "010-3456-7890", }, { - studentNumber: 20210007, + studentNumber: "20210007", name: "이지윤", email: "leejiyun_07@example.com", }, { - studentNumber: 20210008, + studentNumber: "20210008", name: "삼지윤", email: "samjiyun_08@example.com", phoneNumber: "010-4567-8901", }, - { studentNumber: 20210009, name: "사지윤", email: "sajiyn_09@example.com" }, { - studentNumber: 20210010, + studentNumber: "20210009", + name: "사지윤", + email: "sajiyn_09@example.com", + }, + { + studentNumber: "20210010", name: "오지윤", email: "ohjiyun_10@example.com", phoneNumber: "010-5678-9012", }, { - studentNumber: 20210011, + studentNumber: "20210011", name: "일지윤", email: "iljiyun_11@example.com", }, { - studentNumber: 20210012, + studentNumber: "20210012", name: "이지윤", email: "leejiyun_12@example.com", phoneNumber: "010-6789-0123", }, { - studentNumber: 20210013, + studentNumber: "20210013", name: "삼지윤", email: "samjiyun_13@example.com", }, { - studentNumber: 20210014, + studentNumber: "20210014", name: "사지윤", email: "sajiyn_14@example.com", phoneNumber: "010-7890-1234", }, { - studentNumber: 20210015, + studentNumber: "20210015", name: "오지윤", email: "ohjiyun_15@example.com", }, diff --git a/packages/web/src/features/manage-club/services/_mock/mockDelegate.ts b/packages/web/src/features/manage-club/services/_mock/mockDelegate.ts index 4be1bce14..90229394e 100644 --- a/packages/web/src/features/manage-club/services/_mock/mockDelegate.ts +++ b/packages/web/src/features/manage-club/services/_mock/mockDelegate.ts @@ -11,21 +11,21 @@ export const mockClubDelegates: ApiClb006ResponseOK = { { delegateEnumId: ClubDelegateEnum.Representative, studentId: 20200510, - studentNumber: 20200510, + studentNumber: "20200510", name: "이지윤", phoneNumber: "010-1234-5678", }, { delegateEnumId: ClubDelegateEnum.Delegate1, studentId: 20200511, - studentNumber: 20200511, + studentNumber: "20200511", name: "박지호", phoneNumber: "010-1234-5678", }, { delegateEnumId: ClubDelegateEnum.Delegate2, studentId: 20200512, - studentNumber: 20200512, + studentNumber: "20200512", name: "박병찬", phoneNumber: "010-1234-5678", }, @@ -36,7 +36,7 @@ export const mockClubDelegateRequest: ApiClb011ResponseOk = { requests: [ { studentId: 20200000, - studentNumber: 20200000, + studentNumber: "20200000", studentName: "이도라", clubDelegateChangeRequestStatusEnumId: ClubDelegateChangeRequestStatusEnum.Applied, diff --git a/packages/web/src/features/manage-club/services/_mock/mockManageClub.ts b/packages/web/src/features/manage-club/services/_mock/mockManageClub.ts index 3921541b1..afeadca1e 100644 --- a/packages/web/src/features/manage-club/services/_mock/mockManageClub.ts +++ b/packages/web/src/features/manage-club/services/_mock/mockManageClub.ts @@ -71,56 +71,56 @@ const mockClubMembers: ApiClb010ResponseOk = { members: [ { studentId: 1, - studentNumber: 20200510, + studentNumber: "20200510", name: "이지윤", email: "test@kaist.ac.kr", phoneNumber: "010-1234-5678", }, { studentId: 2, - studentNumber: 20200511, + studentNumber: "20200511", name: "박지호", email: "test@kaist.ac.kr", phoneNumber: "010-1234-5678", }, { studentId: 3, - studentNumber: 20200512, + studentNumber: "20200512", name: "박병찬", email: "test@kaist.ac.kr", phoneNumber: "010-1234-5678", }, { studentId: 4, - studentNumber: 20200001, + studentNumber: "20200001", name: "일지윤", email: "test@kaist.ac.kr", phoneNumber: "010-1234-5678", }, { studentId: 5, - studentNumber: 20200002, + studentNumber: "20200002", name: "이지윤", email: "test@kaist.ac.kr", phoneNumber: "010-1234-5678", }, { studentId: 6, - studentNumber: 20200003, + studentNumber: "20200003", name: "삼지윤", email: "test@kaist.ac.kr", phoneNumber: "010-1234-5678", }, { studentId: 7, - studentNumber: 20200004, + studentNumber: "20200004", name: "사지윤", email: "test@kaist.ac.kr", phoneNumber: "010-1234-5678", }, { studentId: 8, - studentNumber: 20200005, + studentNumber: "20200005", name: "오지윤", email: "test@kaist.ac.kr", phoneNumber: "010-1234-5678", @@ -136,7 +136,7 @@ const mockupManageMems: ApiReg008ResponseOk["applies"][0][] = [ student: { id: 1, name: "이지윤", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "XXX-XXXX-XXXX", }, @@ -148,7 +148,7 @@ const mockupManageMems: ApiReg008ResponseOk["applies"][0][] = [ student: { id: 1, name: "박지호", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "XXX-XXXX-XXXX", }, @@ -160,7 +160,7 @@ const mockupManageMems: ApiReg008ResponseOk["applies"][0][] = [ student: { id: 1, name: "박병찬", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "XXX-XXXX-XXXX", }, @@ -172,7 +172,7 @@ const mockupManageMems: ApiReg008ResponseOk["applies"][0][] = [ student: { id: 1, name: "이도라", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "XXX-XXXX-XXXX", }, @@ -184,7 +184,7 @@ const mockupManageMems: ApiReg008ResponseOk["applies"][0][] = [ student: { id: 1, name: "이지윤", - studentNumber: 20200510, + studentNumber: "20200510", email: "nicolelee2001@kaist.ac.kr", phoneNumber: "XXX-XXXX-XXXX", }, diff --git a/packages/web/src/features/my/services/_mock/mockMyClubRegisterDetail.ts b/packages/web/src/features/my/services/_mock/mockMyClubRegisterDetail.ts index ebb68e4fc..325cfdd91 100644 --- a/packages/web/src/features/my/services/_mock/mockMyClubRegisterDetail.ts +++ b/packages/web/src/features/my/services/_mock/mockMyClubRegisterDetail.ts @@ -28,7 +28,7 @@ const mockMyClubRegisterDetail: MyClubRegistrationDetail = { clubNameEn: "sparcs", clubId: 1, representative: { - studentNumber: 1, + studentNumber: "20200000", name: "넙죽이", }, phoneNumber: "010-1234-1234", diff --git a/packages/web/src/features/my/services/_mock/mockMyDelegateChange.ts b/packages/web/src/features/my/services/_mock/mockMyDelegateChange.ts index 571fc725f..ebb41cfd5 100644 --- a/packages/web/src/features/my/services/_mock/mockMyDelegateChange.ts +++ b/packages/web/src/features/my/services/_mock/mockMyDelegateChange.ts @@ -6,7 +6,7 @@ export const mockMyDelegateChange: ApiClb013ResponseOk = { { id: 1, prevStudentId: 20200000, - prevStudentNumber: 20200000, + prevStudentNumber: "20200000", prevStudentName: "이도라", clubId: 1, clubName: "술박스", diff --git a/packages/web/src/features/my/services/_mock/mockMyRegister.ts b/packages/web/src/features/my/services/_mock/mockMyRegister.ts index 7f9d8e9e9..6c86a1701 100644 --- a/packages/web/src/features/my/services/_mock/mockMyRegister.ts +++ b/packages/web/src/features/my/services/_mock/mockMyRegister.ts @@ -32,7 +32,7 @@ const mockProfClubRegister = { clubName: "술박스", student: { id: 1, - studentNumber: 20200000, + studentNumber: "20200000", name: "이지윤", phoneNumber: "000-0000-0000", email: "xxxxx@kaist.ac.kr", diff --git a/packages/web/src/features/my/types/myClubRegistration.ts b/packages/web/src/features/my/types/myClubRegistration.ts index 1ccec430e..75a0787f5 100644 --- a/packages/web/src/features/my/types/myClubRegistration.ts +++ b/packages/web/src/features/my/types/myClubRegistration.ts @@ -12,7 +12,7 @@ export interface MyClubRegistrationDetail { clubId?: number; clubNameKr: string; clubNameEn: string; - representative: { studentNumber: number; name: string }; + representative: { studentNumber: string; name: string }; phoneNumber: string; foundedAt: Date; divisionId: number; diff --git a/packages/web/src/types/participant.ts b/packages/web/src/types/participant.ts index b6324ae2c..f04447dbb 100644 --- a/packages/web/src/types/participant.ts +++ b/packages/web/src/types/participant.ts @@ -1,5 +1,5 @@ export type Participant = { id: number; - studentNumber: number; + studentNumber: string; name: string; };