ip project fixes/additions

This commit is contained in:
2025-04-19 01:24:40 +04:00
parent 5ddf0f0cb6
commit c9ac856c6f
26 changed files with 371 additions and 50 deletions

View File

@@ -1,12 +1,16 @@
package ru.ip.example.domain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
@Schema(description = "Данные для связки сериала с сезоном")
public class AddSeazonDto {
@Schema(description = "Id фильма")
private Integer filmId;
@Schema(description = "Id сезона")
private Integer seazonId;
}

View File

@@ -0,0 +1,15 @@
package ru.ip.example.domain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
@Schema(description = "Данные для связки сезона с серией")
public class AddSeriesDto {
@Schema(description = "Id сезона")
private Integer seazonId;
@Schema(description = "Id серии")
private Integer seriesId;
}

View File

@@ -7,6 +7,7 @@ import lombok.ToString;
import java.util.List;
@Data
@Schema(description = "Данные сезона")
public class SeazonDto {
@Schema(description = "Номер сезона")

View File

@@ -4,6 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
@Schema(description = "Информация о серии")
public class SeriesDto {
@Schema(description = "Название серии")

View File

@@ -0,0 +1,15 @@
package ru.ip.example.domain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Data
@Schema(description = "Информация о подписке")
public class SubscribeDto {
@Schema(description = "Месячная плата")
private Integer sum;
@Schema(description = "Название подписки")
private String name;
}

View File

@@ -20,5 +20,5 @@ public class FilmEntity {
private Integer releaseYear;
@ToString.Exclude
private List<SeazonEntity> seasons;
private List<SeazonEntity> seazons;
}

View File

@@ -0,0 +1,16 @@
package ru.ip.example.domain.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class SubscribeEntity {
@EqualsAndHashCode.Include
private Integer id;
private Integer sum;
private String name;
}