13 changed files with 60 additions and 21 deletions
@ -0,0 +1,31 @@ |
|||
package awesome.group.game.service.bo.citrus; |
|||
|
|||
import awesome.group.game.dao.bean.MatrixApp; |
|||
import awesome.group.game.dao.bean.MatrixUser; |
|||
import awesome.group.game.service.bo.matrix.UmengConfigBo; |
|||
import com.google.gson.Gson; |
|||
import org.springframework.util.StringUtils; |
|||
|
|||
public class InviteInfo { |
|||
public String name; |
|||
public String code; |
|||
public String img; |
|||
public String url; |
|||
public String linkId; |
|||
|
|||
public InviteInfo() { |
|||
} |
|||
|
|||
public InviteInfo(MatrixApp app, MatrixUser user) { |
|||
this.name = app.getName(); |
|||
this.code = app.getCode(); |
|||
this.img = app.getImg(); |
|||
this.url = app.getUrl(); |
|||
if (StringUtils.hasText(app.getUmeng())) { |
|||
Gson gson = new Gson(); |
|||
UmengConfigBo umengConfigBo = gson.fromJson(app.getUmeng(), UmengConfigBo.class); |
|||
this.linkId = umengConfigBo.linkId; |
|||
|
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue