29 lines
765 B
Java
29 lines
765 B
Java
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();
|
|
}
|
|
|
|
}
|