package com.izouma.nineth.dto;


import com.izouma.nineth.converter.CoordinateConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Convert;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("空间中已编辑物品信息")
public class BuildingPosDTO {

    @ApiModelProperty("物品id")
    private Long itemId;

    @ApiModelProperty("位置信息")
    @Convert(converter = CoordinateConverter.class)
    private CoordinateDTO coordinate;

    @ApiModelProperty("旋转值")
    private int rotateCount;
}
