Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WebBack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websystem
WebBack
Merge requests
!26
[
#19
] 통합 테스트 제작 및 서비스 로직 추가/수정
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[
#19
] 통합 테스트 제작 및 서비스 로직 추가/수정
feature/#19
into
develop
Overview
0
Commits
14
Pipelines
0
Changes
10
Merged
조대희
requested to merge
feature/#19
into
develop
3 months ago
Overview
0
Commits
14
Pipelines
0
Changes
10
Expand
통합 테스트 제작
테스트 작성하면서 서비스 로직 추가 및 수정
0
0
Merge request reports
Compare
develop
version 2
4cdd8110
3 months ago
version 1
4cdd8110
3 months ago
develop (base)
and
latest version
latest version
5fe4877b
14 commits,
3 months ago
version 2
4cdd8110
14 commits,
3 months ago
version 1
4cdd8110
119 commits,
3 months ago
10 files
+
1024
−
670
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
controllers/friendController.js
+
15
−
3
Options
@@ -137,15 +137,27 @@ class friendController {
/**
* 친구 목록 조회
* GET /api/friend/all
/:offset
* GET /api/friend/all
?page=1&size=20
*/
async
getFriendList
(
req
,
res
)
{
try
{
const
userId
=
req
.
user
.
id
;
const
friends
=
await
FriendService
.
getFriendList
(
userId
,
20
,
req
.
param
);
const
page
=
parseInt
(
req
.
query
.
page
)
||
0
;
const
size
=
parseInt
(
req
.
query
.
size
)
||
20
;
const
friends
=
await
FriendService
.
getFriendList
(
userId
,
{
limit
:
size
,
offset
:
page
*
size
});
return
res
.
status
(
200
).
json
({
success
:
true
,
data
:
friends
data
:
{
content
:
friends
,
page
:
page
,
size
:
size
,
hasNext
:
friends
.
length
===
size
}
});
}
catch
(
error
)
{
return
res
.
status
(
500
).
json
({
Loading