mid 관련 수정

This commit is contained in:
focp212@naver.com
2025-10-22 17:19:16 +09:00
parent 556b3f2a6a
commit e857b8ac05
29 changed files with 262 additions and 218 deletions

View File

@@ -5,7 +5,7 @@ export interface SupportParams {
};
export interface FaqListParams {
category?: string;
searchCl?: string | null;
searchCl?: SearchCl | null;
searchValue?: string;
page?: DefaultRequestPagination;
};
@@ -59,15 +59,16 @@ export interface QnaSaveResponse {
};
export interface NoticeListParams extends SupportParams {
searchKeyword: string;
category: string;
informCl?: InformCl | string;
searchCl?: SearchCl | null;
searchValue?: string;
page?: DefaultRequestPagination;
};
export interface NoticeItem {
id?: number;
seq?: number;
title?: string;
content?: string;
category?: string;
contents?: string;
informCl?: InformCl | string;
regDate?: string;
isNew?: boolean;
viewCount?: number;
@@ -77,8 +78,25 @@ export interface NoticeListResponse {
nextCursor: string;
hasNext: boolean;
};
export enum SearchCl {
HEAD = 'HEAD',
BODY = 'BODY',
ALL = 'ALL',
};
export enum InformCl {
INTEREST_FREE_INSTALLMENT = 'INTEREST_FREE_INSTALLMENT',
NEWS = 'NEWS',
SERVICE_DISRUPTION_NOTICE = 'SERVICE_DISRUPTION_NOTICE',
MAINTENANCE_NOTICE = 'MAINTENANCE_NOTICE',
EVENT = 'EVENT',
SERVICE_CHANGE_OR_ADDITION = 'SERVICE_CHANGE_OR_ADDITION',
IMPORTANT_NOTICE = 'IMPORTANT_NOTICE',
ADDITIONAL_SERVICE = 'ADDITIONAL_SERVICE',
OTHERS = 'OTHERS'
};
export interface NoticeDetailParams {
noticeId: number;
seq: number;
};
export interface NoticeDetailResponse extends NoticeItem {

View File

@@ -5,9 +5,9 @@ import { NoticeItemProps } from '../model/types';
import { useTranslation } from 'react-i18next';
export const SupportNoticeItem = ({
id,
seq,
title,
category,
informCl,
regDate,
isNew
}: NoticeItemProps) => {
@@ -17,7 +17,7 @@ export const SupportNoticeItem = ({
const onClickToDetail = () => {
navigate(PATHS.support.notice.detail, {
state: {
id: id,
seq: seq,
from: PATHS.support.notice.list
}
})
@@ -32,7 +32,7 @@ export const SupportNoticeItem = ({
<div className="notice-txt">
<div className="notice-title-114">{ title }</div>
<div className="notice-meta-114">
<span className="blue">{ t(`support.notice.categories.${category}`) }</span> <span>{ moment(regDate).format('YYYY.MM.DD HH:mm:ss') }</span>
<span className="blue">{ t(`support.notice.categories.${informCl}`) }</span> <span>{ moment(regDate).format('YYYY.MM.DD HH:mm:ss') }</span>
</div>
</div>
</div>