Skip to content

Commit 1633f7a

Browse files
authored
Merge branch 'dev' into feat/#150
2 parents 420ab80 + 3b51986 commit 1633f7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+696
-157
lines changed

โ€Ž.DS_Store

-6 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: Gemini Code Review
2+
3+
on:
4+
push:
5+
branches: [ feat/gemini ]
6+
paths:
7+
- 'backend/**'
8+
pull_request:
9+
types: [opened, synchronize]
10+
11+
jobs:
12+
code-review:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Set up Node
24+
uses: actions/setup-node@v3
25+
26+
- name: Install GoogleGenerativeAI
27+
run: |
28+
npm install @google/generative-ai
29+
30+
# PR ์ด๋ฒคํŠธ์—์„œ์˜ ๋ณ€๊ฒฝ์‚ฌํ•ญ ์ฒ˜๋ฆฌ
31+
- name: Get git diff for PR
32+
if: github.event_name == 'pull_request'
33+
run: |
34+
git fetch origin "${{ github.event.pull_request.base.ref }}"
35+
git fetch origin "${{ github.event.pull_request.head.ref }}"
36+
git diff --unified=0 "origin/${{ github.event.pull_request.base.ref }}" > "diff.txt"
37+
echo "EVENT_TYPE=pull_request" >> $GITHUB_ENV
38+
39+
# Push ์ด๋ฒคํŠธ์—์„œ์˜ ๋ณ€๊ฒฝ์‚ฌํ•ญ ์ฒ˜๋ฆฌ
40+
- name: Get git diff for Push
41+
if: github.event_name == 'push'
42+
run: |
43+
git diff --unified=0 HEAD^ HEAD > "diff.txt"
44+
echo "EVENT_TYPE=push" >> $GITHUB_ENV
45+
46+
# Gemini๋ฅผ ์‚ฌ์šฉํ•œ ์ฝ”๋“œ ๋ถ„์„
47+
- name: Run Gemini-1.5-flash
48+
id: gemini_review
49+
uses: actions/github-script@v7
50+
with:
51+
script: |
52+
const fs = require("fs");
53+
const diff_output = fs.readFileSync("diff.txt",'utf8');
54+
55+
const { GoogleGenerativeAI } = require("@google/generative-ai");
56+
const genAI = new GoogleGenerativeAI("${{ secrets.GEMINI_API_KEY }}");
57+
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash"});
58+
59+
// PR๊ณผ Push์— ๋”ฐ๋ผ ๋‹ค๋ฅธ ํ”„๋กฌํ”„ํŠธ ์‚ฌ์šฉ
60+
let prompt;
61+
if (process.env.EVENT_TYPE === 'pull_request') {
62+
prompt = `Explain in korean. You are a senior software engineer and need to perform a code review based on the results of a given git diff. Review the changed code from different perspectives and let us know if there are any changes that need to be made. If you see any code that needs to be fixed in the result of the git diff, you need to calculate the exact line number by referring to the "@@ -0,0 +0,0 @@" part. The output format is \[{"path":"{ filepath }", "line": { line }, "text": { review comment }, "side": "RIGHT"}\] format must be respected.\n<git diff>${diff_output}</git diff>`;
63+
} else {
64+
prompt = `Explain in korean. You are a senior software engineer and need to perform a code review based on the results of a given git diff. Provide a detailed review of the code changes, focusing on code quality, readability, performance, and security. Format your response in Markdown with clear headings for each file reviewed.\n<git diff>${diff_output}</git diff>`;
65+
}
66+
67+
const result = await model.generateContent(prompt);
68+
const response = await result.response;
69+
const text = response.text();
70+
71+
fs.writeFileSync('review_result.txt', text);
72+
console.log('Review results saved!');
73+
74+
# PR ์ด๋ฒคํŠธ: ๋ผ์ธ๋ณ„ ๋ฆฌ๋ทฐ ์ฝ”๋ฉ˜ํŠธ ์ถ”๊ฐ€
75+
- name: Format and add PR review comments
76+
if: env.EVENT_TYPE == 'pull_request'
77+
id: store
78+
run: |
79+
COMMENT=$(sed '/^```/d' review_result.txt | jq -c .)
80+
echo "comment=$COMMENT" >> $GITHUB_OUTPUT
81+
82+
- name: Add Pull Request Review Comment
83+
if: env.EVENT_TYPE == 'pull_request'
84+
uses: nbaztec/[email protected]
85+
with:
86+
comments: ${{ steps.store.outputs.comment }}
87+
repo-token: ${{ secrets.GITHUB_TOKEN }}
88+
repo-token-user-login: 'github-actions[bot]'
89+
allow-repeats: false
90+
91+
# Push ์ด๋ฒคํŠธ: ์•ก์…˜ ๋กœ๊ทธ์— ๋ฆฌ๋ทฐ ๊ฒฐ๊ณผ ์ถœ๋ ฅ ๋ฐ ์•„ํ‹ฐํŒฉํŠธ ์—…๋กœ๋“œ
92+
- name: Display review results in workflow log
93+
if: env.EVENT_TYPE == 'push'
94+
run: |
95+
echo "===== Gemini Code Review Results ====="
96+
cat review_result.txt
97+
echo "======================================"
98+
99+
- name: Upload review results as artifact
100+
if: env.EVENT_TYPE == 'push'
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: gemini-code-review
104+
path: review_result.txt

โ€ŽREADME.md

+113
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# ๐ŸŒฑ CommitField_BE
2+
> ์ปค๋ฐ‹ํ•„๋“œ (์‚ฌ์šฉ์ž์˜ ๊นƒํ—ˆ๋ธŒ ๊ธฐ๋ก์„ ํ™œ์šฉํ•ด ํŽซ ์œก์„ฑ ๋ฐ ์—…์  ๋‹ฌ์„ฑ์„ ์ง€์›ํ•˜๋ฉฐ, ์ฑ„ํŒ… ๋“ฑ ์ง€์†์ ์ธ ๋™๊ธฐ ๋ถ€์—ฌ๋ฅผ ๋•๋Š” ์„œ๋น„์Šค)
3+
4+
์ด ๊ฐœ๋ฐœ๊ธฐ๊ฐ„ : `2025.2.18` ~ `2025.03.13` (22์ผ)
5+
</br>
6+
๊ฐœ๋ฐœ์ธ์›: 5๋ช…
7+
8+
</br>
9+
<img width="1629" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2025-02-13 แ„‹แ…ฉแ„’แ…ฎ 5 17 27" src="https://github.com/user-attachments/assets/5b9be8f8-f524-4bd6-bee5-99dbd2d4f591" />
10+
11+
# ๐ŸŒด ํŒ€์› ์†Œ๊ฐœ
12+
<table>
13+
<tr>
14+
<td><img src="https://avatars.githubusercontent.com/u/15629036?v=4" width="200" height="200"></td>
15+
<td><img src="https://avatars.githubusercontent.com/u/181931584?v=4" width="200" height="200"></td>
16+
<td><img src="https://avatars.githubusercontent.com/u/93702730?v=4" width="200" height="200"></td>
17+
<td><img src="https://avatars.githubusercontent.com/u/82190411?v=4" width="200" height="200"></td>
18+
<td><img src="https://avatars.githubusercontent.com/u/55117130?v=4" width="200" height="200"></td>
19+
</tr>
20+
<tr>
21+
<td><a href="https://github.com/whale22">๊น€์†Œ์˜</a></td>
22+
<td><a href="https://github.com/skyeong42">์„ฑ์ˆ˜๊ฒฝ</a></td>
23+
<td><a href="https://github.com/seoyeonson">์†์„œ์—ฐ</a></td>
24+
<td><a href="https://github.com/ces0135-hub">๋ฐฑ์„ฑํ˜„</a></td>
25+
<td><a href="https://github.com/ces0135-hub">์œคํ˜„์Šน</a></td>
26+
</tr>
27+
</table>
28+
29+
## ๐Ÿ’ ๊ธฐ์ˆ  ์Šคํƒ
30+
31+
<img width="1046" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2025-03-14 แ„‹แ…ฉแ„’แ…ฎ 1 18 14" src="https://github.com/user-attachments/assets/48a7e53b-08c6-41bb-8fae-88fc9be322d3" />
32+
</br>
33+
34+
## ๐ŸŒผ ์‹œ์Šคํ…œ ์•„ํ‚คํ…์ณ
35+
36+
<img width="1545" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2025-02-13 แ„‹แ…ฉแ„’แ…ฎ 1 18 55" src="https://github.com/user-attachments/assets/cc121c13-be01-47fd-a44a-64bf3a6433c7" />
37+
</br>
38+
39+
## ๐ŸŒณ ERD
40+
41+
<img width="1502" alt="แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2025-03-14 แ„‹แ…ฉแ„’แ…ฎ 1 19 59" src="https://github.com/user-attachments/assets/4c50079c-240c-47d3-9c87-e09e13f4d9b5" />
42+
</br>
43+
44+
45+
# ๐Ÿ€ ํŽ˜์ด์ง€ ๋ณ„ ๊ธฐ๋Šฅ
46+
47+
## ๐ŸŒบ ๋ฉ”์ธ ํŽ˜์ด์ง€
48+
49+
<img width="1600" alt="๋ฉ”์ธ ํŽ˜์ด์ง€" src="https://github.com/user-attachments/assets/824e6caa-6a15-4b1b-a747-a5da09d29892" />
50+
</br>
51+
52+
### ๐Ÿƒ ๊ธฐ๋Šฅ
53+
#### ๐Ÿ”น ํŽซ/๋žญํ‚น
54+
- ๊ณ„์ ˆ ๋ณ„ ๋žญํ‚น ์„ค๊ณ„๋กœ ์ด ์ปค๋ฐ‹ ์ˆ˜์™€ ๊ณ„์ ˆ ๋ณ„ ์ปค๋ฐ‹ ์ˆ˜.
55+
- ํ˜„์žฌ ์‹œ์ฆŒ์— ๋งž๋Š” ์ปค๋ฐ‹ ์ˆ˜์— ๋”ฐ๋ผ ๋žญํ‚น์„ ๋ถ€์—ฌ.
56+
#### ๐Ÿ”น ์ปค๋ฐ‹ ๊ฐœ์ˆ˜ ์ž๋™ ๊ฐฑ์‹ 
57+
- ์œ ์ € ์ปค๋ฐ‹ ์ˆ˜ ์ฃผ๊ธฐ์  ๊ฐฑ์‹ .
58+
- ์Šคํ”„๋ง ์ด๋ฒคํŠธ๋ฅผ ํ†ตํ•œ ๋ฐ์ดํ„ฐ ์ผ๊ด„ ๊ฐฑ์‹ .
59+
#### ๐Ÿ”น ์‹ค์‹œ๊ฐ„ ์•Œ๋ฆผ
60+
- ์‹œ์ฆŒ ์•Œ๋ฆผ
61+
- ๋žญํ‚น ์•Œ๋ฆผ
62+
- ์—ฐ์† ์ปค๋ฐ‹ ์ถ•ํ•˜ ์•Œ๋ฆผ
63+
- ์ปค๋ฐ‹ ๋ถ€์žฌ ์•Œ๋ฆผ
64+
65+
## ๐ŸŒน ํŽซ
66+
67+
<img width="1600" alt="ํŽซ" src="https://github.com/user-attachments/assets/766fc5cf-11a4-43ad-bd58-1aa7f8908efa" />
68+
</br>
69+
70+
### ๐Ÿƒ ๊ธฐ๋Šฅ
71+
#### ๐Ÿ”น ํŽซ
72+
- ์‚ฌ์šฉ์ž ๋ณ„ ํŽซ ํ™•์ธ ๊ฐ€๋Šฅ.
73+
74+
## ๐ŸŒป ๋กœ๊ทธ์ธ
75+
76+
<img width="1600" alt="๋กœ๊ทธ์ธ" src="https://github.com/user-attachments/assets/a3842c23-023c-4eda-965f-4767768cb5cf" />
77+
</br>
78+
79+
### ๐Ÿƒ ๊ธฐ๋Šฅ
80+
#### ๐Ÿ”น ๋กœ๊ทธ์ธ
81+
- Github API๋ฅผ ์ด์šฉํ•œ ๋กœ๊ทธ์ธ ๊ตฌํ˜„.
82+
- ์„ธ์…˜ ๋ฐฉ์‹ ์‚ฌ์šฉ.
83+
84+
85+
## ๐ŸŒท ์ฑ„ํŒ…
86+
<img width="1600" alt="๋กœ๊ทธ์ธ" src="https://github.com/user-attachments/assets/f29670ac-4dbe-4af0-87d5-3e9360a9246e" />
87+
</br>
88+
<img width="1600" alt="๋กœ๊ทธ์ธ" src="https://github.com/user-attachments/assets/a09a257f-9ebf-43ec-89f3-7399678e17b2" />
89+
</br>
90+
91+
92+
### ๐Ÿƒ ๊ธฐ๋Šฅ
93+
#### ๐Ÿ”น ์ฑ„ํŒ… ๋ฐฉ ๊ด€๋ฆฌ
94+
- ๋ฐ˜์žฅ์ด ์ฑ„ํŒ… ๋ฐฉ์„ ์ƒ์„ฑ ๋ฐ ์‚ญ์ œ ๊ฐ€๋Šฅ.
95+
- ๋งˆ์ง€๋ง‰ ์‚ฌ์šฉ์ž๊ฐ€ ๋‚˜๊ฐ€๋ฉด ์ฑ„ํŒ… ๋ฐฉ ์ž๋™ ์‚ญ์ œ.
96+
- ์ฑ„ํŒ… ๋ฐฉ ๋ชฉ๋ก ์กฐํšŒ (์ „์ฒด, ๋‚ด๊ฐ€ ์ƒ์„ฑํ•œ ๋ฐฉ, ์ฐธ์—ฌ ์ค‘์ธ ๋ฐฉ, ์ข‹์•„์š” ์ˆœ, ๋‚ด๊ฐ€ ์ข‹์•„์š”ํ•œ ๋ฐฉ).
97+
- ์ค‘๋ณต ์ฐธ์—ฌ ๋ถˆ๊ฐ€.
98+
- ํ‚ค์›Œ๋“œ ๊ธฐ๋ฐ˜ ์ฑ„ํŒ… ๋ฐฉ ๊ฒ€์ƒ‰.
99+
- ๋ฐ˜์žฅ๋งŒ ์ฑ„ํŒ… ๋ฐฉ ์ด๋ฆ„ ์ˆ˜์ • ๊ฐ€๋Šฅ.
100+
- ๋น„๋ฐ€๋ฒˆํ˜ธ ์„ค์ • ๊ฐ€๋Šฅ.
101+
102+
#### ๐Ÿ”น ์ฑ„ํŒ… ๊ธฐ๋Šฅ
103+
- ์‹ค์‹œ๊ฐ„ ์–‘๋ฐฉํ–ฅ ํ†ต์‹  ์‚ฌ์šฉ์ž ๋ฉ”์‹œ์ง€ ์ „์†ก.
104+
- ์ฑ„ํŒ… ๋ฐฉ ๋‚ด ๋ฉ”์‹œ์ง€ ์กฐํšŒ (์‚ฌ์šฉ์ž๊ฐ€ ๋“ค์–ด์˜จ ์‹œ์ ๋ถ€ํ„ฐ ํ™•์ธ ๊ฐ€๋Šฅ).
105+
106+
#### ๐Ÿ”น ์‚ฌ์šฉ์ž ๊ด€๋ฆฌ
107+
- ์˜จ๋ผ์ธ/์˜คํ”„๋ผ์ธ ์ƒํƒœ ํ™•์ธ (๋กœ๊ทธ์ธ, ๋กœ๊ทธ์•„์›ƒ).
108+
- ์ฑ„ํŒ… ๋ฐฉ ์ฐธ์—ฌ์ž ๋ชฉ๋ก ์กฐํšŒ ๊ฐ€๋Šฅ.
109+
- ์ฑ„ํŒ… ๋ฐฉ ์ข‹์•„์š” ๊ธฐ๋Šฅ ์ œ๊ณต (์ข‹์•„์š” ์ˆœ ์ •๋ ฌ ๊ฐ€๋Šฅ).
110+
111+
112+
113+

โ€Žsrc/.DS_Store

-6 KB
Binary file not shown.

โ€Žsrc/main/.DS_Store

-6 KB
Binary file not shown.

โ€Žsrc/main/java/.DS_Store

-6 KB
Binary file not shown.

โ€Žsrc/main/java/cmf/.DS_Store

-6 KB
Binary file not shown.
-6 KB
Binary file not shown.
Binary file not shown.

โ€Žsrc/main/java/cmf/commitField/domain/admin/controller/ApiV1PetImgController.java renamed to โ€Žsrc/main/java/cmf/commitField/domain/admin/admin/controller/ApiV1PetImgController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cmf.commitField.domain.admin.controller;
1+
package cmf.commitField.domain.admin.admin.controller;
22

33
import cmf.commitField.global.aws.s3.S3Service;
44
import lombok.RequiredArgsConstructor;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package cmf.commitField.domain.admin.notice.entity;
2+
3+
4+
import cmf.commitField.global.jpa.BaseEntity;
5+
import jakarta.persistence.Entity;
6+
import lombok.*;
7+
import lombok.experimental.SuperBuilder;
8+
9+
@Entity
10+
@SuperBuilder
11+
@Getter
12+
@Setter
13+
@NoArgsConstructor(access = AccessLevel.PROTECTED)
14+
@AllArgsConstructor(access = AccessLevel.PROTECTED)
15+
public class Notice extends BaseEntity {
16+
// ๊ด€๋ฆฌ์ž ๊ณต์ง€์‚ฌํ•ญ
17+
private String title;
18+
private String content;
19+
}

โ€Žsrc/main/java/cmf/commitField/domain/chat/chatMessage/controller/response/ChatMsgResponse.java

+4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,12 @@
1212
public class ChatMsgResponse {
1313
//์ฑ„ํŒ…๋ฐฉ ID
1414
private Long roomId;
15+
//chatMsgId
16+
private Long id;
1517
//์‚ฌ์šฉ์ž(user)
18+
private Long userId;
1619
private String from;
1720
private String message;
1821
private LocalDateTime sendAt;
22+
private String avatarUrl; // ์•„๋ฐ”ํƒ€ URL ํ•„๋“œ ์ถ”๊ฐ€
1923
}

โ€Žsrc/main/java/cmf/commitField/domain/chat/chatMessage/dto/ChatMsgDto.java

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ public class ChatMsgDto {
1515
private String nickname;
1616
private String message;
1717
private LocalDateTime sendAt;
18+
private String avatarUrl; // avatarUrl ํ•„๋“œ ์ถ”๊ฐ€
1819
}

โ€Žsrc/main/java/cmf/commitField/domain/chat/chatMessage/service/ChatMessageServiceImpl.java

+11-10
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,30 @@ public ChatMsgResponse sendMessage(ChatMsgRequest message, Long userId, Long roo
4343

4444
ChatRoom chatRoom = chatRoomRepository.findChatRoomById(roomId)
4545
.orElseThrow(() -> new CustomException(ErrorCode.NOT_FOUND_ROOM));
46-
// ์ฑ„ํŒ… ๋ฉ”์‹œ์ง€ ์ƒ์„ฑ
46+
4747
ChatMsg chatMsg = ChatMsg.builder()
4848
.message(message.getMessage())
4949
.createdAt(LocalDateTime.now())
5050
.user(findUser)
5151
.chatRoom(chatRoom)
5252
.build();
5353

54-
// Response message
55-
// ์‘๋‹ต ๊ฐ’์œผ๋กœ ๋ณ€ํ™˜
56-
57-
ChatMsgResponse response = ChatMsgResponse.builder()
54+
chatMessageRepository.save(chatMsg);
5855

56+
// Response message
57+
// ์‘๋‹ต๊ฐ’ ๋ณ€ํ™˜
58+
return ChatMsgResponse.builder()
59+
.id(chatMsg.getId()) // chatMsgId ์ถ”๊ฐ€
5960
.roomId(roomId)
60-
.from(findUser.getNickname())
61+
.userId(userId) // userId ์ถ”๊ฐ€
62+
.from(findUser.getUsername())
6163
.message(message.getMessage())
6264
.sendAt(chatMsg.getCreatedAt())
65+
.avatarUrl(findUser.getAvatarUrl()) // ์•„๋ฐ”ํƒ€ URL ์ถ”๊ฐ€
6366
.build();
64-
chatMessageRepository.save(chatMsg);
65-
return response;
6667

6768
}
6869

69-
7070
@Transactional(readOnly = true)
7171
@Override
7272
public List<ChatMsgDto> getRoomChatMsgList(Long roomId, Long userId, Long lastId) {
@@ -83,10 +83,11 @@ public List<ChatMsgDto> getRoomChatMsgList(Long roomId, Long userId, Long lastId
8383
for (ChatMsg chatMsg : chatMsgsList) {
8484
ChatMsgDto build = ChatMsgDto.builder()
8585
.chatMsgId(chatMsg.getId())
86-
.nickname(chatMsg.getUser().getNickname())
86+
.nickname(chatMsg.getUser().getUsername()) // nickname ๋Œ€์‹  username ์‚ฌ์šฉ
8787
.sendAt(chatMsg.getCreatedAt())
8888
.message(chatMsg.getMessage())
8989
.userId(chatMsg.getUser().getId())
90+
.avatarUrl(chatMsg.getUser().getAvatarUrl()) // avatarUrl ์ถ”๊ฐ€
9091
.build();
9192
if (build.getSendAt().isAfter(joinDt)) {
9293
chatMsgDtos.add(build);
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//package cmf.commitField.domain.chat.chatRoom.controller.response;
2-
//
3-
//public class ChatRoomResponse {
4-
//}
1+
package cmf.commitField.domain.chat.chatRoom.controller.response;
2+
3+
public class ChatRoomResponse {
4+
}

โ€Žsrc/main/java/cmf/commitField/domain/chat/chatRoom/dto/ChatRoomUserDto.java

+2
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
public class ChatRoomUserDto {
1111
private String nickname;
1212
private Boolean status;
13+
// ์‚ฌ์šฉ์ž github image
14+
private String imageUrl;
1315
}

โ€Žsrc/main/java/cmf/commitField/domain/chat/chatRoom/service/ChatRoomServiceImpl.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ public List<ChatRoomDto> searchRoomByTitle(String roomName, Long userId, Pageabl
271271
.heartCount(chatRoom.getHearts().size())
272272
.currentUserCount((long) chatRoom.getUserChatRooms().size())
273273
.userCountMax(chatRoom.getUserCountMax())
274+
.imageUrl(chatRoom.getImageUrl())
274275
.build();
275276
chatRoomDtos.add(build);
276277
}
@@ -312,8 +313,9 @@ public List<ChatRoomUserDto> getRoomUsers(Long roomId, Long userId) {
312313
List<ChatRoomUserDto> chatRoomUserDtos = new ArrayList<>();
313314
for (UserChatRoom userChatRoom : userIds) {
314315
ChatRoomUserDto build = ChatRoomUserDto.builder()
315-
.nickname(userChatRoom.getUser().getNickname())
316+
.nickname(userChatRoom.getUser().getUsername())
316317
.status(userChatRoom.getUser().getStatus())
318+
.imageUrl(userChatRoom.getUser().getAvatarUrl())
317319
.build();
318320
chatRoomUserDtos.add(build);
319321
}
@@ -334,6 +336,7 @@ public List<ChatRoomDto> getRoomHeartSortList(Pageable pageable) {
334336
.userCountMax(chatRoom.getUserCountMax())
335337
.currentUserCount((long) chatRoom.getUserChatRooms().size())
336338
.heartCount(chatRoom.getHearts().size())
339+
.imageUrl(chatRoom.getImageUrl())
337340
.build();
338341
chatRoomDtos.add(build);
339342
}
@@ -363,6 +366,7 @@ public List<ChatRoomDto> myHeartRoomList(Long userId, Pageable pageable) {
363366
.heartCount(chatRoom.getHearts().size())
364367
.currentUserCount((long) chatRoom.getUserChatRooms().size())
365368
.userCountMax(chatRoom.getUserCountMax())
369+
.imageUrl(chatRoom.getImageUrl())
366370
.build();
367371
chatRoomDtos.add(build);
368372
}

0 commit comments

Comments
ย (0)