package com.example.demo.model; import io.swagger.v3.oas.annotations.media.Schema; /** * 业务数据模型 */ @Schema(description = "业务数据项") public class BusinessItem { @Schema(description = "唯一标识", example = "1") private Long id; @Schema(description = "名称", example = "示例项目") private String name; @Schema(description = "描述", example = "这是一个示例描述") private String description; public BusinessItem() { } public BusinessItem(Long id, String name, String description) { this.id = id; this.name = name; this.description = description; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }