-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
73 lines (64 loc) · 1.95 KB
/
index.js
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
/**
* A Todo data type
* @typedef {Object} Todo - Todo 타입
* @property {string} id - 아이디(required)
* @property {string} content - 내용(required)
* @property {boolean} completed - 완료여부(required)
* @property {string} category - 카테고리(required)
* @property {Array<string>} tags - 태그들(optional)
*/
/**
* createTodo : 할 일을 추가한다.
* @param {string} content - 내용(required)
* @param {string} category - 카테코리(optional)
* @property {boolean} completed - 완료여부(optional)
* @param {Array<string>} tags - 태그들(optional)
*/
async function createTodo(content, category, tags) {}
/**
* getAllTodo : 모든 할 일을 조회한다.
* @returns {Promise<Todo[]>}
*/
async function getAllTodo() {}
/**
* getTodo : ID를 기반으로 특정 할 일을 조회한다.
* @param {id} id - 아이디(required)
* @returns {Promise<Todo>}
*/
async function getTodo(id) {}
/**
* updateTodo : ID를 제외한 모든 속성을 수정한다.
* @param {UpdateTodo} id - 아이디(required)
* @returns {Promise<Todo>}
*/
async function updateTodo(id) {}
/**
* updateTag : 특정 할 일의 특정 태그를 수정한다.
* @param {UpdateTodo} id - 아이디(required)
* @returns {Promise<Todo>}
*/
async function updateTag(id) {}
/**
* deleteTodo : ID를 기반으로 특정 할 일을 삭제한다.
* @param {id} id - 아이디(required)
* @returns {Promise<any>}
*/
async function deleteTodo(id) {}
/**
* deleteAllTodo : 모든 할 일을 제거한다.
* @returns {Promise<any>}
*/
async function deleteAllTodo() {}
/**
* deleteTag : 특정 할 일의 특정 태그를 삭제한다.
* @param {id} id - 아이디(required)
* @param {Tag} tag - 태그(required)
* @returns {Promise<any>}
*/
async function deleteTag(id, tag) {}
/**
* deleteAllTags : 특정 할 일의 모든 태그를 제거한다.
* @param {id} id - 아이디(required)
* @returns {Promise<any>}
*/
async function deleteAllTags(id) {}