-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommentRepository.json
44 lines (44 loc) · 1.06 KB
/
CommentRepository.json
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
{
"type": "Action",
"subType": "DB",
"class": "CommentRepository",
"methods": [{
"name": "findByArticleId",
"params": [{
"name": "type",
"type": "long"
}],
"returnType": "Array<CommentEntity>",
"body": {
"dbType": "mysql",
"action": "select",
"condition": {
"and": [{
"articleId": {
"equals": "@{this.articleId}"
}
}]
},
"table": "Comment"
}
}, {
"name": "findByParentId",
"params": [{
"name": "type",
"type": "long"
}],
"returnType": "Array<CommentEntity>",
"body": {
"dbType": "mysql",
"action": "select",
"condition": {
"and": [{
"parentId": {
"equals": "@{this.parentId}"
}
}]
},
"table": "Comment"
}
}]
}