admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/util/factory/user/vip/GiveVIPApplyInfoRecordVOFactory.java
@@ -1,23 +1,23 @@
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;
   }
}
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;
   }
}