package com.xcong.excoin.common.system.mapper; import com.huobi.client.model.Candlestick; import com.xcong.excoin.modules.symbols.parameter.vo.KlineDataVo; import com.xcong.excoin.utils.api.response.KlineReturn; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.factory.Mappers; /** * @author wzy * @date 2020-05-29 **/ @Mapper public abstract class CandlestickMapper { public static final CandlestickMapper INSTANCE = Mappers.getMapper(CandlestickMapper.class); @Mapping(source = "timestamp", target = "time") public abstract KlineDataVo toKlineDataVo(Candlestick candlestick); }