| | |
| | | import com.ks.daylucky.pojo.DTO.msg.LuckyMsgContent; |
| | | import com.ks.daylucky.pojo.VO.UserMsgContentVO; |
| | | import com.ks.daylucky.pojo.VO.UserMsgVO; |
| | | import com.ks.daylucky.pojo.VO.common.JumpDetailVO; |
| | | import net.sf.json.JSONObject; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | |
| | | private static List<UserMsgContentVO> create(LuckyMsgContent luckyMsgContent) { |
| | | LuckyMsgContent.LuckyMsgType luckyMsgType = luckyMsgContent.getLuckyMsgType(); |
| | | List<UserMsgContentVO> voList = new ArrayList<>(); |
| | | voList.add(new UserMsgContentVO("活动期号", getDateNumber(luckyMsgContent.getDateNumber()))); |
| | | JSONObject params = new JSONObject(); |
| | | params.put("url", "/pages/activity-detail/activity-detail?id=" + luckyMsgContent.getActivityId()); |
| | | voList.add(new UserMsgContentVO("活动期号", getDateNumber(luckyMsgContent.getDateNumber()), new JumpDetailVO(JumpDetailVO.JumpType.page, null, params))); |
| | | |
| | | if (luckyMsgType == LuckyMsgContent.LuckyMsgType.joinSuccess) { |
| | | voList.add(new UserMsgContentVO("状态", "参与成功")); |