package com.mmc.pms.entity;

import com.mmc.pms.model.dto.AdDTO;
import com.mmc.pms.model.dto.DeviceCategoryDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author small
 * @Date 2023/5/19 14:52
 * @Version 1.0
 */
@Data
public class AdDO extends BaseEntity {
    @ApiModelProperty(name = "id", value = "类目id", example = "1")
    private Integer id;

    @ApiModelProperty(name = "imageUrl", value = "广告位图片地址", example = "")
    private String imageUrl;

    public AdDTO adDTO() {
        return AdDTO.builder().id(this.id).imageUrl(this.imageUrl).build();
    }
}
