-
Notifications
You must be signed in to change notification settings - Fork 2
LC-2848 ADMIN 프로그램 관리 가이드북 등록 버튼 추가 및 목록 UI 구현 #2139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: LC-2838-Sprint-17
Are you sure you want to change the base?
The head ref may contain hidden characters: "LC-2848-ADMIN-\uD504\uB85C\uADF8\uB7A8-\uAD00\uB9AC-\uAC00\uC774\uB4DC\uBD81-\uB4F1\uB85D-\uBC84\uD2BC-\uCD94\uAC00-\uBC0F-\uBAA9\uB85D-UI-\uAD6C\uD604"
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -597,32 +597,30 @@ export type UpdateLiveReq = { | |
| }[]; | ||
| }; | ||
|
|
||
| /** GET /api/v1/guidebook/{id} 가이드북 상세 조회 */ | ||
| /** GET /api/v1/guidebook/{guidebookId} 가이드북 상세 조회 */ | ||
| export const getGuidebookIdSchema = z.object({ | ||
| title: z.string(), | ||
| desc: z.string().nullable().optional(), | ||
| id: z.number(), | ||
| title: z.string().nullable().optional(), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| shortDesc: z.string().nullable().optional(), | ||
| thumbnail: z.string().nullable().optional(), | ||
| desktopThumbnail: z.string().nullable().optional(), | ||
| contentStructure: z.string().nullable().optional(), | ||
| contentComposition: z.string().nullable().optional(), | ||
| accessMethod: z.string().nullable().optional(), | ||
| recommendedFor: z.string().nullable().optional(), | ||
| materialUrl: z.string().nullable().optional(), | ||
| priceInfo: z | ||
| .object({ | ||
| priceId: z.number(), | ||
| price: z.number().optional().nullable(), | ||
| discount: z.number().optional().nullable(), | ||
| accountNumber: z.string().optional().nullable(), | ||
| accountType: accountType.optional().nullable(), | ||
| guidebookPriceType: guidebookPriceTypeSchema.optional().nullable(), | ||
| }) | ||
| .optional(), | ||
| classificationInfo: z | ||
| description: z.string().nullable().optional(), | ||
| job: z.string().nullable().optional(), | ||
| contentUrl: z.string().nullable().optional(), | ||
| contentFileUrl: z.string().nullable().optional(), | ||
| price: z.number().nullable().optional(), | ||
| discount: z.number().nullable().optional(), | ||
| guidebookPriceType: guidebookPriceTypeSchema.nullable().optional(), | ||
| programTypeInfo: z | ||
| .array( | ||
| z.object({ | ||
| programClassification: ProgramClassificationEnum.nullable().optional(), | ||
| }), | ||
| ) | ||
| .nullable() | ||
| .optional(), | ||
| adminClassificationInfo: z | ||
| .array( | ||
|
|
@@ -636,70 +634,71 @@ export const getGuidebookIdSchema = z.object({ | |
|
|
||
| export type GuidebookIdSchema = z.infer<typeof getGuidebookIdSchema>; | ||
|
|
||
| /** | ||
| * POST /api/v1/admin/guidebook 가이드북 생성 | ||
| * 백엔드 확정 후 필수/이름 수정 예정 | ||
| */ | ||
| /** POST /api/v1/guidebook 가이드북 생성 */ | ||
| export type CreateGuidebookReq = { | ||
| programTypeInfo?: { | ||
| classificationInfo: { programClassification: ProgramClassification }; | ||
| }[]; | ||
| adminProgramTypeInfo?: { | ||
| classificationInfo: { | ||
| programAdminClassification: ProgramAdminClassification; | ||
| }; | ||
| }[]; | ||
| job?: string; | ||
| title: string; | ||
| shortDesc?: string; | ||
| contentStructure?: string; | ||
| accessMethod?: string; | ||
| recommendedFor?: string; | ||
| priceInfo?: { | ||
| shortDesc: string; | ||
| thumbnail: string; | ||
| desktopThumbnail?: string; | ||
| contentComposition: string; | ||
| accessMethod: string; | ||
| recommendedFor: string; | ||
| description: string; | ||
| job: string; | ||
| contentUrl?: string; | ||
| contentFileUrl?: string; | ||
| priceInfo: { | ||
| priceInfo: { | ||
| price: number; | ||
| discount: number; | ||
| accountNumber?: string; | ||
| accountType?: string; | ||
| deadline?: string; | ||
| accountType?: AccountType; | ||
| }; | ||
| guidebookPriceType: GuidebookPriceType; | ||
| guidebookPriceType?: GuidebookPriceType; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| }; | ||
| materialUrl?: string; | ||
| thumbnail?: string; | ||
| desktopThumbnail?: string; | ||
| desc?: string; | ||
| }; | ||
|
|
||
| /** PATCH /api/v1/admin/guidebook/{id} 가이드북 수정 */ | ||
| export type UpdateGuidebookReq = { | ||
| programTypeInfo?: { | ||
| programTypeInfo: { | ||
| classificationInfo: { programClassification: ProgramClassification }; | ||
| }[]; | ||
| adminProgramTypeInfo?: { | ||
| classificationInfo: { | ||
| programAdminClassification: ProgramAdminClassification; | ||
| }; | ||
| }[]; | ||
| job?: string; | ||
| }; | ||
|
|
||
| /** PATCH /api/v1/guidebook/{guidebookId} 가이드북 수정 */ | ||
| export type UpdateGuidebookReq = { | ||
| title?: string; | ||
| shortDesc?: string; | ||
| contentStructure?: string; | ||
| thumbnail?: string; | ||
| desktopThumbnail?: string; | ||
| contentComposition?: string; | ||
| accessMethod?: string; | ||
| recommendedFor?: string; | ||
| description?: string; | ||
| isVisible?: boolean; | ||
| job?: string; | ||
| contentUrl?: string; | ||
| contentFileUrl?: string; | ||
| priceInfo?: { | ||
| priceInfo: { | ||
| price: number; | ||
| discount: number; | ||
| accountNumber?: string; | ||
| accountType?: string; | ||
| deadline?: string; | ||
| accountType?: AccountType; | ||
| }; | ||
| guidebookPriceType: GuidebookPriceType; | ||
| }; | ||
| materialUrl?: string; | ||
| thumbnail?: string; | ||
| desktopThumbnail?: string; | ||
| desc?: string; | ||
| isVisible?: boolean; | ||
| programTypeInfo?: { | ||
| classificationInfo: { programClassification: ProgramClassification }; | ||
| }[]; | ||
| adminProgramTypeInfo?: { | ||
| classificationInfo: { | ||
| programAdminClassification: ProgramAdminClassification; | ||
| }; | ||
| }[]; | ||
| }; | ||
|
|
||
| // ADMIN LIVE 클래스 및 VOD 클래스 직무 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mock 데이터에서 사용된 ID(0), 가격(10000) 및 할인 금액(1000)과 같은 숫자는 의미를 명확히 하고 유지보수성을 높이기 위해 명명된 상수로 대체하는 것이 좋습니다.
References