feat: group related logic refactor

This commit is contained in:
merlin
2025-12-03 15:01:35 +08:00
parent 4597623cd9
commit b7f6d3477d
7 changed files with 342 additions and 4 deletions

View File

@@ -0,0 +1,28 @@
package xin.merlin.myplayerbackend.entity.http;
import lombok.Data;
import lombok.NoArgsConstructor;
import xin.merlin.myplayerbackend.entity.GroupInfo;
import xin.merlin.myplayerbackend.entity.Groups;
@Data
@NoArgsConstructor
public class GroupDetails {
private Integer g_id;
private String g_name;
private String g_introduction;
private String g_avatar;
private Integer id;
private Integer role;
public GroupDetails(GroupInfo groupInfo, Groups groups) {
this.g_id = groupInfo.getG_id();
this.g_name = groupInfo.getG_name();
this.g_introduction = groupInfo.getG_introduction();
this.g_avatar = groupInfo.getG_avatar();
this.id = groups.getId();
this.role = groups.getRole();
}
}