From ab0ad84b5c577036f9ed5b53d2e90e81e5ba3de9 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期一, 15 九月 2025 20:32:13 +0800 Subject: [PATCH] Merge branch 'feature_asset' --- ruoyi-system/src/main/java/com/ruoyi/system/dto/asset/AssetTypeDTO.java | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/dto/asset/AssetTypeDTO.java b/ruoyi-system/src/main/java/com/ruoyi/system/dto/asset/AssetTypeDTO.java new file mode 100644 index 0000000..9c95616 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/dto/asset/AssetTypeDTO.java @@ -0,0 +1,37 @@ +package com.ruoyi.system.dto.asset; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import javax.validation.constraints.NotBlank; +import java.io.Serializable; + +/** + * 资产类型数据传输对象 + * + * @author WuGuanFengYue + * @date 2025/9/15 + */ +@Data +@EqualsAndHashCode(callSuper = false) +@ApiModel("资产类型数据传输对象") +public class AssetTypeDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + @ApiModelProperty(value = "资产类型ID,编辑时必填") + private Integer id; + + @ApiModelProperty(value = "父级资产类型ID,为空则添加一级资产类型") + private Integer parentId; + + @ApiModelProperty(value = "资产类型名称", required = true) + @NotBlank(message = "资产类型名称不能为空") + private String typeName; + + @ApiModelProperty(value = "资产简写", required = true) + @NotBlank(message = "资产简写不能为空") + private String typeCode; +} \ No newline at end of file -- Gitblit v1.7.1