класс избранное дто
This commit is contained in:
parent
5308c48d8a
commit
902ba9515a
@ -0,0 +1,44 @@
|
||||
package com.example.backend.favorites.api;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import jakarta.validation.constraints.Min;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
|
||||
public class FavoriteDto {
|
||||
|
||||
private Integer id;
|
||||
|
||||
@NotNull
|
||||
@Min(1)
|
||||
private Integer userId;
|
||||
|
||||
@NotNull
|
||||
@Min(1)
|
||||
private Integer movieId;
|
||||
|
||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Integer getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(Integer userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public Integer getMovieId() {
|
||||
return movieId;
|
||||
}
|
||||
|
||||
public void setMovieId(Integer movieId) {
|
||||
this.movieId = movieId;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user