# SaveItemInventoryDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hkinventory;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.NotNull;
    import lombok.Data;

    import java.util.List;

    /**
     * 保存item库存DTO
     *
     * @author lichen
     * @date 2025/4/21
     */
    @Data
    public class SaveItemInventoryDTO {

        /**
         * 库存id
         */
        @NotNull(message = "the hkInventoryId cannot be null")
        private Integer hkInventoryId;

        /**
         * 分类id
         */
        @NotNull(message = "the categoryId cannot be null")
        private Integer categoryId;

        /**
         * 房间类型id
         */
        @NotNull(message = "the roomTypeId cannot be null")
        private Integer roomTypeId;

        /**
         * 物品库存信息
         */
        @Valid
        @NotEmpty(message = "the items cannot be empty")
        private List<ItemInventoryDTO> items;

    }