|
3 | 3 | "/api/chatrooms": { |
4 | 4 | "post": { |
5 | 5 | "summary": "채팅방 생성", |
6 | | - "description": "consumerId, artistId, commissionId로 채팅방을 생성합니다.", |
| 6 | + "description": "userId, artistId, commissionId로 채팅방을 생성합니다.", |
7 | 7 | "security": [ |
8 | 8 | { |
9 | 9 | "bearerAuth": [] |
|
17 | 17 | "schema": { |
18 | 18 | "type": "object", |
19 | 19 | "properties": { |
20 | | - "consumerId": { "type": "integer", "example": 1 }, |
21 | 20 | "artistId": { "type": "integer", "example": 2 }, |
22 | 21 | "commissionId": { "type": "integer", "example": 3 } |
23 | 22 | }, |
24 | | - "required": ["consumerId", "artistId", "commissionId"] |
| 23 | + "required": ["userId", "artistId", "commissionId"] |
25 | 24 | } |
26 | 25 | } |
27 | 26 | } |
|
40 | 39 | "type": "object", |
41 | 40 | "properties": { |
42 | 41 | "id": { "type": "string", "example": "1" }, |
43 | | - "consumerId": { "type": "string", "example": "1" }, |
44 | 42 | "artistId": { "type": "string", "example": "2" }, |
45 | 43 | "commissionId": { "type": "string", "example": "3" }, |
46 | 44 | "hiddenArtist": { "type": "boolean", "example": false }, |
47 | | - "hiddenConsumer": { "type": "boolean", "example": false }, |
| 45 | + "hiddenUser": { "type": "boolean", "example": false }, |
48 | 46 | "createdAt": { "type": "string", "format": "date-time", "example": "2025-08-07T15:35:42.375Z" } |
49 | 47 | } |
50 | 48 | } |
|
179 | 177 | }, |
180 | 178 | "userType": { |
181 | 179 | "type": "string", |
182 | | - "enum": ["consumer", "artist"], |
183 | | - "example": "consumer" |
| 180 | + "enum": ["user", "artist"], |
| 181 | + "example": "user" |
184 | 182 | } |
185 | 183 | }, |
186 | 184 | "required": ["chatroomIds", "userType"] |
|
204 | 202 | "type": "object", |
205 | 203 | "properties": { |
206 | 204 | "errorCode": { "type": "string", "example": "C001" }, |
207 | | - "reason": { "type": "string", "example": "userType은 'consumer' 또는 'artist'여야 합니다." }, |
| 205 | + "reason": { "type": "string", "example": "userType은 'user' 또는 'artist'여야 합니다." }, |
208 | 206 | "data": { "type": "object", "example": {} } |
209 | 207 | } |
210 | 208 | }, |
|
0 commit comments