feat: group related logic refactor
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user