Skip to content

Commit ba87c20

Browse files
authored
Merge pull request #127 from oodd-team/feat/OD-159
[OD-159] 배포 전 전체 점검
2 parents ae03831 + fc4ebb7 commit ba87c20

52 files changed

Lines changed: 663 additions & 720 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/apis/chatting/dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface chatRoomMessagesData {
2727
fromUser: FromUserDto;
2828
toUser: ToUserDto;
2929
createdAt: string;
30-
toUserReadAt: any;
30+
toUserReadAt: Date;
3131
}
3232

3333
export interface FromUserDto {

src/apis/post-comment/dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface Content {
1717
content: string;
1818
}
1919

20-
interface CreateCommentData extends Content {}
20+
type CreateCommentData = Content;
2121

2222
export interface Comment {
2323
id: number;

src/apis/post-comment/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { EmptySuccessResponse } from '../core/dto';
1+
import { newRequest } from '@apis/core';
22

3-
import { CreateCommentRequest, CreateCommentResponse, GetCommentListResponse } from './dto';
3+
import type { EmptySuccessResponse } from '@apis/core/dto';
44

5-
import { newRequest } from '../core';
5+
import type { CreateCommentRequest, CreateCommentResponse, GetCommentListResponse } from './dto';
66

77
// 게시글 댓글 생성 API
88
export const createCommentApi = (postId: number, data: CreateCommentRequest) =>

src/apis/post-like/dto.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { BaseSuccessResponse } from '../core/dto';
2-
import { PaginationMeta } from '../util/dto';
1+
import type { BaseSuccessResponse } from '@apis/core/dto';
2+
import type { PaginationMeta } from '@apis/util/dto';
33

44
// 좋아요 누르기/취소
55
export type TogglePostLikeStatusResponse = BaseSuccessResponse<TogglePostLikeStatusData>;

src/apis/post-like/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { TogglePostLikeStatusResponse, GetPostLikeListResponse } from './dto';
1+
import { newRequest } from '@apis/core';
22

3-
import { newRequest } from '../core';
3+
import type { TogglePostLikeStatusResponse, GetPostLikeListResponse } from './dto';
44

55
// 게시글 좋아요 누르기/취소
66
export const togglePostLikeStatusApi = (postId: number) =>

src/apis/post-report/dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseSuccessResponse } from '../core/dto';
1+
import type { BaseSuccessResponse } from '@apis/core/dto';
22

33
interface BaseReport {
44
id: number; // 신고 ID

src/apis/post-report/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { SendPostReportRequest, SendPostReportResponse } from './dto';
1+
import { newRequest } from '@apis/core';
22

3-
import { newRequest } from '../core';
3+
import type { SendPostReportRequest, SendPostReportResponse } from './dto';
44

55
// 게시글 신고 API
66
export const sendPostReportApi = (data: SendPostReportRequest) =>

src/apis/post/dto.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { BaseSuccessResponse } from '../core/dto';
2-
import { PaginationMeta } from '../util/dto';
1+
import type { BaseSuccessResponse } from '@apis/core/dto';
2+
import type { PaginationMeta } from '@apis/util/dto';
33

44
// 게시글 생성
55
//request
@@ -28,7 +28,7 @@ export interface PostBase {
2828
postClothings?: PostClothing[] | null;
2929
isRepresentative: boolean;
3030
}
31-
export interface CreatePostData extends PostBase {}
31+
export type CreatePostData = PostBase;
3232
export interface PostSummary {
3333
id: number;
3434
content: string;

src/apis/post/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import { EmptySuccessResponse } from '../core/dto';
1+
import { newRequest } from '@apis/core';
22

3-
import {
3+
import type { EmptySuccessResponse } from '@apis/core/dto';
4+
5+
import type {
46
CreatePostRequest,
57
CreatePostResponse,
68
GetPostListResponse,
@@ -10,8 +12,6 @@ import {
1012
ModifyPostResponse,
1113
} from './dto';
1214

13-
import { newRequest } from '../core';
14-
1515
// 게시글 생성
1616
export const createPostApi = (data: CreatePostRequest) => newRequest.post<CreatePostResponse>('/post', data);
1717

src/components/BottomButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const BottomButton: React.FC<BottomButtonProps> = ({ content, onClick, disabled
88
return (
99
<ButtonWrapper>
1010
<Button onClick={onClick} disabled={disabled}>
11-
<StyledText $textTheme={{ style: 'body1-regular', lineHeight: 2 }}>{content}</StyledText>
11+
<StyledText $textTheme={{ style: 'body1-regular' }}>{content}</StyledText>
1212
</Button>
1313
</ButtonWrapper>
1414
);

0 commit comments

Comments
 (0)