Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/common' into auth/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Diger committed Feb 20, 2024
2 parents 8d10fd5 + 31edd9b commit 8fc352e
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.palette.dto.event;

import org.palette.dto.EaselEvent;

public record ReplyCreatedEvent(Long pid) implements EaselEvent {
@Override
public String getTopic() {
return TopicConstant.REPLY_CREATED.value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ public record TemporaryUserDeletionEvent(String email) implements EaselEvent {

@Override
public String getTopic() {
return "temporary_user_deletion";
return TopicConstant.TEMPORARY_USER_DELETION.value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ public enum TopicConstant {
LIKED_PAINT("liked_paint"),
QUOTED_PAINT("quoted_paint"),
FOLLOWED("followed"),
UPDATE_USER("update_user")

USER_CREATED("user_created"),
UPDATE_USER("update_user"),
REPLY_CREATED("reply_created"),
TEMPORARY_USER_DELETION("temporary_user_deletion"),
;
final String value;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package org.palette.dto.event;

import org.palette.dto.EaselEvent;

public record UserCreatedEvent(
Long id,
String nickname,
String username,
String introduce,
String profileImagePath
) implements EaselEvent {
@Override
public String getTopic() {
return TopicConstant.USER_CREATED.value;
}
}
29 changes: 23 additions & 6 deletions src/common-module/src/main/proto/social_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,31 @@ message GPaintResponse {
string authorNickname = 5;
string authorImagePath = 6;
string authorStatus = 7;
GPaintResponse quote = 8;
GQuotePaintResponse quote = 8;
string createdAt = 9;
string text = 10;
repeated GHashtagResponse hashtags = 12;
repeated GMentionResponse mentions = 13;
repeated GUserResponse taggedUsers = 14;
repeated GMediaResponse medias = 15;
repeated GLinkResponse links = 16;
repeated GHashtagResponse hashtags = 11;
repeated GMentionResponse mentions = 12;
repeated GUserResponse taggedUsers = 13;
repeated GMediaResponse medias = 14;
repeated GLinkResponse links = 15;
}

message GQuotePaintResponse {
int64 pid = 1;
bool isReply = 2;
int64 authorId = 3;
string authorUsername = 4;
string authorNickname = 5;
string authorImagePath = 6;
string authorStatus = 7;
string createdAt = 8;
string text = 9;
repeated GHashtagResponse hashtags = 10;
repeated GMentionResponse mentions = 11;
repeated GUserResponse taggedUsers = 12;
repeated GMediaResponse medias = 13;
repeated GLinkResponse links = 14;
}

message GHashtagResponse {
Expand Down

0 comments on commit 8fc352e

Please sign in to comment.