Skip to content

Commit 72273b1

Browse files
committed
[#60] ๐Ÿšš rename types name in community
1 parent 76cf761 commit 72273b1

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

โ€Žsrc/types/api/Community.types.d.tsโ€Ž

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,36 @@ interface CommunityDetail extends CommunityListItem {
2222
isComment: boolean // ๋Œ“๊ธ€ ํ—ˆ์šฉ ์—ฌ๋ถ€
2323
}
2424

25-
/*
25+
/**
2626
path: '/v1/community'
2727
GET: ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธ€ ์ „์ฒด ์กฐํšŒ
2828
*/
2929
export type GetCommunityListResponse = CommunityListItem[]
30-
/*
30+
/**
3131
POST: ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธ€ ๋“ฑ๋ก
3232
*/
33-
export interface CommunityCreateRequest extends CommunityBase {
33+
export interface CreateCommunityRequest extends CommunityBase {
3434
isComment?: boolean // ๋Œ“๊ธ€ ํ—ˆ์šฉ ์—ฌ๋ถ€
3535
}
36-
export interface CommunityCreateResponse extends CommunityBase, TimeStamps {
36+
export interface CreateCommunityResponse extends CommunityBase, TimeStamps {
3737
id: Id // ์ƒ์„ฑ๋œ ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธ€ ID
3838
member: Id // ์ž‘์„ฑ์ž Id
3939
isComment: boolean // ๋Œ“๊ธ€ ํ—ˆ์šฉ ์—ฌ๋ถ€
4040
}
4141

42-
/*
42+
/**
4343
path: '/v1/community/{id}'
4444
GET: ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธ€ ์ƒ์„ธ ์กฐํšŒ
4545
*/
4646
export type GetCommunityDetailResponse = CommunityDetail
4747

48-
/*
48+
/**
4949
PATCH: ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธ€ ์ˆ˜์ •
5050
*/
51-
export type CommunityUpdateRequest = CommunityBase
52-
export type CommunityUpdateResponse = CommunityCreateResponse
51+
export type UpdateCommunityRequest = CommunityBase
52+
export type UpdateCommunityResponse = CreateCommunityResponse
5353

54-
/*
54+
/**
5555
DELETE: ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธ€ ์‚ญ์ œ
5656
๋ฐ˜ํ™˜ ๊ฐ’: ๊ธฐ๋ณธ ApiResponse ๊ตฌ์กฐ ์‚ฌ์šฉ
5757
{
@@ -61,7 +61,7 @@ DELETE: ์ปค๋ฎค๋‹ˆํ‹ฐ ๊ธ€ ์‚ญ์ œ
6161
}
6262
*/
6363

64-
/*
64+
/**
6565
path: '/v1/community/top5'
6666
GET: ์ข‹์•„์š” ์ˆœ์œผ๋กœ ์ธ๊ธฐ ์ปค๋ฎค๋‹ˆํ‹ฐ Top 5 ์œ ์ € ์กฐํšŒ
6767
*/

0 commit comments

Comments
ย (0)