#39 reactive programming: completable future - common
This commit is contained in:
@@ -10,6 +10,9 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'org.projectlombok:lombok:1.18.28'
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.28'
|
||||
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
|
||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.example.completablefuture.common;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Article {
|
||||
private final String id;
|
||||
private final String title;
|
||||
private final String content;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.example.completablefuture.common;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Image {
|
||||
private final String id;
|
||||
private final String name;
|
||||
private final String url;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.example.completablefuture.common;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
@Data
|
||||
public class User {
|
||||
private final String id;
|
||||
private final String name;
|
||||
private final int age;
|
||||
private final Optional<Image> profileImage;
|
||||
private final List<Article> articleList;
|
||||
private final Long followCount;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.example.completablefuture.common.repository;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ArticleEntity {
|
||||
private final String id;
|
||||
private final String title;
|
||||
private final String content;
|
||||
private final String userId;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.example.completablefuture.common.repository;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ImageEntity {
|
||||
private final String id;
|
||||
private final String name;
|
||||
private final String url;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.example.completablefuture.common.repository;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class UserEntity {
|
||||
private final String id;
|
||||
private final String name;
|
||||
private final int age;
|
||||
private final String profileImageId;
|
||||
}
|
||||
Reference in New Issue
Block a user