File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3333export interface FromUserDto {
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ interface Content {
1717 content : string ;
1818}
1919
20- interface CreateCommentData extends Content { }
20+ type CreateCommentData = Content ;
2121
2222export interface Comment {
2323 id : number ;
Original file line number Diff line number Diff line change 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
88export const createCommentApi = ( postId : number , data : CreateCommentRequest ) =>
Original file line number Diff line number Diff line change 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// 좋아요 누르기/취소
55export type TogglePostLikeStatusResponse = BaseSuccessResponse < TogglePostLikeStatusData > ;
Original file line number Diff line number Diff line change 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// 게시글 좋아요 누르기/취소
66export const togglePostLikeStatusApi = ( postId : number ) =>
Original file line number Diff line number Diff line change 1- import { BaseSuccessResponse } from '.. /core/dto' ;
1+ import type { BaseSuccessResponse } from '@apis /core/dto' ;
22
33interface BaseReport {
44 id : number ; // 신고 ID
Original file line number Diff line number Diff line change 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
66export const sendPostReportApi = ( data : SendPostReportRequest ) =>
Original file line number Diff line number Diff line change 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 ;
3232export interface PostSummary {
3333 id : number ;
3434 content : string ;
Original file line number Diff line number Diff line change 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// 게시글 생성
1616export const createPostApi = ( data : CreatePostRequest ) => newRequest . post < CreatePostResponse > ( '/post' , data ) ;
1717
You can’t perform that action at this time.
0 commit comments