//package com.tmerclub.cloud.systemtest.data.marketing;
//
//import cn.hutool.core.date.DateUtil;
//import com.tmerclub.cloud.live.dto.LiveProdStoreDTO;
//import com.tmerclub.cloud.live.model.LiveProdStore;
//import com.tmerclub.cloud.live.model.LiveRoom;
//import com.moyuer.cloud.systemtest.api.marketing.LiveApi;
//import org.springframework.beans.BeanUtils;
//
///**
// * @author lpj
// */
//public class LiveData {
//    /**
//     * 直播商品数据
//     */
//    public static LiveProdStoreDTO getLiveProdStoreDTO(Long prodId, Integer priceType, Double price, Double price2, Integer prodType) {
//        LiveProdStoreDTO liveProdStoreDTO = new LiveProdStoreDTO();
//        liveProdStoreDTO.setCoverPic("/2023/07/05/e405632be59343a1bb8fa4fff5cf9b16");
//        liveProdStoreDTO.setLiveProdStoreId(0L);
//        liveProdStoreDTO.setName("直播商品");
//        liveProdStoreDTO.setPrice(price);
//        liveProdStoreDTO.setPrice2(price2);
//        liveProdStoreDTO.setPriceType(priceType);
//        liveProdStoreDTO.setProdId(prodId);
//        liveProdStoreDTO.setProdType(prodType);
//        liveProdStoreDTO.setUrl("pages/detail/detail?spuId=" + prodId);
//
//        return liveProdStoreDTO;
//    }
//
//    /**
//     * 修改为价格区间的直播商品更新数据
//     */
//    public static LiveProdStoreDTO getUpdateLiveProdStoreDTO(LiveProdStore liveProdStore) {
//        LiveProdStoreDTO liveProdStoreDTO = new LiveProdStoreDTO();
//        BeanUtils.copyProperties(liveProdStore, liveProdStoreDTO);
//        liveProdStoreDTO.setPriceType(2);
//        liveProdStoreDTO.setPrice2(188.0);
//
//        return liveProdStoreDTO;
//    }
//
//    /**
//     * 直播间数据
//     */
//    public static LiveRoom getLiveRoom() {
//        LiveRoom liveRoom = new LiveRoom();
//        liveRoom.setAnchorName("直播昵称");
//        liveRoom.setAnchorWechat(LiveApi.getLiveUserPage().get(0).getAnchorWechat());
//        liveRoom.setApplyTime(null);
//        liveRoom.setCoverImg("/2023/07/05/e405632be59343a1bb8fa4fff5cf9b16");
//        //每3个月需要修改一次时间
//        liveRoom.setStartTime(DateUtil.parse("2023-10-1 00:00:00","yyyy-MM-dd HH:mm:ss"));
//        liveRoom.setEndTime(DateUtil.parse("2023-10-2 00:00:00","yyyy-MM-dd HH:mm:ss"));
//        liveRoom.setFeedsImg("/2023/07/05/e405632be59343a1bb8fa4fff5cf9b16");
//        liveRoom.setId(0L);
//        liveRoom.setIsFeedsPublic(1);
//        liveRoom.setLiveStatus(null);
//        liveRoom.setName("直播间");
//        liveRoom.setRoomId(null);
//        liveRoom.setRoomTools("{\"closeLike\":0,\"closeGoods\":0,\"closeComment\":0,\"closeReplay\":0,\"closeShare\":1,\"closeKf\":1}");
//
//        LiveRoom.RoomToolsVO roomToolsVO = new LiveRoom.RoomToolsVO();
//        roomToolsVO.setCloseComment(0);
//        roomToolsVO.setCloseGoods(0);
//        roomToolsVO.setCloseKf(1);
//        roomToolsVO.setCloseLike(0);
//        roomToolsVO.setCloseReplay(0);
//        roomToolsVO.setCloseShare(1);
//        liveRoom.setRoomToolsVo(roomToolsVO);
//
//        liveRoom.setScreenType(0);
//        liveRoom.setShareImg("/2023/07/05/e405632be59343a1bb8fa4fff5cf9b16");
//        liveRoom.setType(0);
//
//        return liveRoom;
//    }
//}
