-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.tsp
93 lines (89 loc) · 1.2 KB
/
types.tsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/** 고유 ID */
@format("uuid")
scalar id extends string;
/**
* 이벤트 유형
*
* - `online`: 온라인
* - `offline`: 오프라인
* - `both`: 온/오프라인
* */
enum EventType {
online,
offline,
both,
}
/**
* 회원 성별
*
* - `Woman`: 여성
* - `Man`: 남성
* - `Other`: 기타
*/
enum Gender {
Woman,
Man,
Other,
}
/** Post 추천 기준
*
* - `recommended`: 추천순
* - `latest`: 게시순
* - `deadline`: 마감순
* - `higherDiscount`: 높은 할인순
* - `lowserDiscount`: 낮은 할인순
* - `higherPrice`: 높은 가격순
* - `lowserPrice`: 낮은 가격순
* - `farthest`: 먼 거리순
* - `nearest`: 가까운 거리순
* */
enum SortOption {
recommended,
latest,
deadline,
higherDiscount,
lowserDiscount,
higherPrice,
lowserPrice,
farthest,
nearest,
}
/** 지역 값
*
* - 서울
* - 경기
* - 인천
* - 강원
* - 세종
* - 대전
* - 충북
* - 충남
* - 부산
* - 대구
* - 울산
* - 경북
* - 경남
* - 광주
* - 전북
* - 전남
* - 제주
*/
enum Location {
Seoul,
Gyeonggi,
Incheon,
Gangwon,
Sejong,
Daejeon,
Chungbuk,
Chungnam,
Busan,
Daegu,
Ulsan,
Gyeongbuk,
Gyeongnam,
Gwangju,
Jeonbuk,
Jeonnam,
Jeju,
}