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
!21
[
#13
] 미팅서비스 로직 및 테스트코드 수정
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[
#13
] 미팅서비스 로직 및 테스트코드 수정
test/#13
into
develop
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
세현 임
requested to merge
test/#13
into
develop
5 months ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
develop
version 1
ce8ae990
5 months ago
develop (base)
and
latest version
latest version
ce8ae990
1 commit,
5 months ago
version 1
ce8ae990
85 commits,
5 months ago
3 files
+
4
−
9
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
controllers/friendController.js
+
2
−
6
Options
@@ -4,9 +4,6 @@ class friendController {
/**
* 친구 요청 보내기
* 클라이언트는 userId와 요청을 보낼 사용자의 email을 전송
* @param {Object} req - Express 요청 객체
* @param {Object} res - Express 응답 객체
* @param {Function} next - Express next 미들웨어 함수
*/
async
sendFriendRequest
(
req
,
res
,
next
)
{
const
{
userId
,
email
}
=
req
.
body
;
@@ -140,13 +137,12 @@ class friendController {
/**
* 친구 목록 조회
* GET /api/friend/all
* GET /api/friend/all
/:offset
*/
async
getFriendList
(
req
,
res
)
{
try
{
const
userId
=
req
.
user
.
id
;
const
friends
=
await
FriendService
.
getFriendList
(
userId
);
const
friends
=
await
FriendService
.
getFriendList
(
userId
,
20
,
req
.
param
);
return
res
.
status
(
200
).
json
({
success
:
true
,
data
:
friends
Loading