mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-07 23:51:17 +08:00
19 lines
502 B
Java
19 lines
502 B
Java
package com.openisle.mapper;
|
|
|
|
import com.openisle.dto.PointGoodDto;
|
|
import com.openisle.model.PointGood;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
/** Mapper for point mall goods. */
|
|
@Component
|
|
public class PointGoodMapper {
|
|
public PointGoodDto toDto(PointGood good) {
|
|
PointGoodDto dto = new PointGoodDto();
|
|
dto.setId(good.getId());
|
|
dto.setName(good.getName());
|
|
dto.setCost(good.getCost());
|
|
dto.setImage(good.getImage());
|
|
return dto;
|
|
}
|
|
}
|