File tree Expand file tree Collapse file tree 13 files changed +803
-539
lines changed Expand file tree Collapse file tree 13 files changed +803
-539
lines changed Original file line number Diff line number Diff line change 1
- import mongoose from "mongoose" ;
2
- import { userHeaderDTO } from "./userDTO" ;
3
- import { commentResDTO } from "./commentDTO" ;
1
+ import { commentDTO } from "." ;
4
2
5
- export interface IConcertDTO {
6
- _id ?: mongoose . Schema . Types . ObjectId ;
7
- createdAt ?: Date ;
8
- updatedAt ?: Date ;
9
- user ?: userHeaderDTO ;
10
- title ?: string ;
11
- videoLink ?: string ;
12
- imgThumbnail ?: string ;
13
- text ?: string ;
14
- likes ?: Number ;
15
- interest ?: [ string ] ;
16
- hashtag ?: [ string ] ;
17
- isDeleted ?: Boolean ;
18
- isNotice ?: Boolean ;
19
- authorNickname ?: string ;
20
- commentNum ?: number ;
21
- scrapNum ?: number ;
22
- generation ?: number ;
23
- comments ?: commentResDTO [ ] ;
24
- isLike ?: boolean ;
25
- isScrap ?: boolean ;
26
- }
3
+ namespace concertDTO {
4
+ export interface getConcertResDTO {
5
+ id : number ;
6
+ createdAt : Date ;
7
+ updatedAt : Date ;
8
+ userID : number ;
9
+ nickname : string ;
10
+ authorNickname : string ;
11
+ title : string ;
12
+ videoLink : string ;
13
+ img : string ;
14
+ imgThumbnail : string ;
15
+ text : string ;
16
+ interest : string [ ] ;
17
+ hashtag : string [ ] ;
18
+ isDeleted : Boolean ;
19
+ isNotice : Boolean ;
20
+ likeNum : number ;
21
+ scrapNum : number ;
22
+ commentNum : number ;
23
+ comment : commentDTO . IComment [ ] ;
24
+ isLike ?: boolean ;
25
+ isScrap ?: boolean ;
26
+ }
27
27
28
- export interface IConcertDetailDTO {
29
- _id ?: mongoose . Schema . Types . ObjectId ;
30
- createdAt ?: Date ;
31
- updatedAt ?: Date ;
32
- user ?: userHeaderDTO ;
33
- title ?: string ;
34
- videoLink ?: string ;
35
- imgThumbnail ?: string ;
36
- text ?: string ;
37
- likes ?: Number ;
38
- interest ?: [ string ] ;
39
- hashtag ?: [ string ] ;
40
- isDeleted ?: Boolean ;
41
- isNotice ?: Boolean ;
42
- authorNickname ?: string ;
43
- commentNum ?: number ;
44
- scrapNum ?: number ;
45
- generation ?: number ;
46
- comments ?: typeof mongoose . Schema . Types . ObjectId [ ] ;
47
- }
28
+ export interface concertDetailDTO {
29
+ id : number ;
30
+ createdAt : Date ;
31
+ updatedAt : Date ;
32
+ userID : number ;
33
+ nickname : string ;
34
+ authorNickname : string ;
35
+ title : string ;
36
+ videoLink : string ;
37
+ imgThumbnail : string ;
38
+ text : string ;
39
+ interest : string [ ] ;
40
+ hashtag : string [ ] ;
41
+ isDeleted : Boolean ;
42
+ isNotice : Boolean ;
43
+ likeNum : number ;
44
+ scrapNum : number ;
45
+ commentNum : number ;
46
+ comment : commentDTO . IComment [ ] ;
47
+ isLike ?: boolean ;
48
+ isScrap ?: boolean ;
49
+ }
48
50
49
- export interface concertResDTO {
50
- concerts : IConcertDTO [ ] ;
51
- totalConcertNum ?: number ;
51
+ export interface concertAllResDTO {
52
+ concerts : getConcertResDTO [ ] ;
53
+ totalConcertNum : number ;
54
+ }
52
55
}
56
+ export default concertDTO ;
Original file line number Diff line number Diff line change 1
1
export { default as adminDTO } from "./adminDTO" ;
2
2
export { default as authDTO } from "./authDTO" ;
3
3
export { default as challengeDTO } from "./challengeDTO" ;
4
+ export { default as concertDTO } from "./concertDTO" ;
4
5
export { default as commentDTO } from "./commentDTO" ;
You can’t perform that action at this time.
0 commit comments