-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a561aab
commit d81c7e3
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { TeamService } from '../provider/team'; | ||
|
||
export function teamDataMock(): TeamService { | ||
const getIssueInfo = async () => ({ | ||
createdAt: '2021-12-27', | ||
title: '깃알못이라 iOS 프로젝트가 엉켜서 망가졌다', | ||
category: '팀컬쳐', | ||
team: { | ||
teammates: [''], | ||
thumbnail: '', | ||
title: '', | ||
}, | ||
issueList: [{ writer: '', target: '', body: '', createdAt: '12/20', keywordList: [''] }], | ||
writer: '', | ||
}); | ||
|
||
return { getIssueInfo }; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { TeamService } from './team'; | ||
|
||
export interface DataService { | ||
teamRepository: TeamService; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export interface TeamService { | ||
getIssueInfo(teamID: string, issueID: string): Promise<IssueData>; | ||
} | ||
|
||
type IssueData = { | ||
createdAt: string; | ||
title: string; | ||
category: string; | ||
team: TeamData; | ||
issueList: IssueDetail[]; | ||
writer: string; | ||
}; | ||
|
||
type TeamData = { | ||
teammates: string[]; | ||
thumbnail: string; | ||
title: string; | ||
}; | ||
|
||
type IssueDetail = { | ||
writer: string; | ||
target: string; | ||
body: string; | ||
createdAt: string; | ||
keywordList: string[]; | ||
}; |