| | |
| | | package com.yeshi.fanli.util.factory.user.vip;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.vip.GiveVIPApplyInfo;
|
| | | import com.yeshi.fanli.vo.user.vip.GiveVIPApplyInfoRecordVO;
|
| | |
|
| | | public class GiveVIPApplyInfoRecordVOFactory {
|
| | |
|
| | | public static GiveVIPApplyInfoRecordVO create(GiveVIPApplyInfo info, String uploadInfoLink, String vipLink) {
|
| | | GiveVIPApplyInfoRecordVO vo = new GiveVIPApplyInfoRecordVO();
|
| | | vo.setCreateTime(info.getCreateTime());
|
| | | vo.setLevel(info.getLevel());
|
| | | if (info.getState() == GiveVIPApplyInfo.STATE_NO_INFO)
|
| | | vo.setLink(uploadInfoLink.replace("[ID]", info.getId()));
|
| | | else
|
| | | vo.setLink(vipLink);
|
| | | if (info.getState() == GiveVIPApplyInfo.STATE_REJECT)
|
| | | vo.setRejectReson(info.getRejectReson());
|
| | | vo.setState(info.getState());
|
| | | vo.setTargetUid(info.getTargetUid());
|
| | | vo.setReson(info.getApplyReason());
|
| | | return vo;
|
| | | }
|
| | |
|
| | | }
|
| | | package com.yeshi.fanli.util.factory.user.vip; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.vip.GiveVIPApplyInfo; |
| | | import com.yeshi.fanli.vo.user.vip.GiveVIPApplyInfoRecordVO; |
| | | |
| | | public class GiveVIPApplyInfoRecordVOFactory { |
| | | |
| | | public static GiveVIPApplyInfoRecordVO create(GiveVIPApplyInfo info, String uploadInfoLink, String vipLink) { |
| | | GiveVIPApplyInfoRecordVO vo = new GiveVIPApplyInfoRecordVO(); |
| | | vo.setCreateTime(info.getCreateTime()); |
| | | vo.setLevel(info.getLevel()); |
| | | |
| | | vo.setLink(uploadInfoLink.replace("[ID]", info.getId())); |
| | | |
| | | if (info.getState() == GiveVIPApplyInfo.STATE_REJECT) |
| | | vo.setRejectReson(info.getRejectReson()); |
| | | vo.setState(info.getState()); |
| | | vo.setTargetUid(info.getTargetUid()); |
| | | vo.setReson(info.getApplyReason()); |
| | | return vo; |
| | | } |
| | | |
| | | } |