Skip to content

Commit

Permalink
Merge pull request #45 from DDD-Community/develop
Browse files Browse the repository at this point in the history
mvp 1차 작업 리팩토링 배포
  • Loading branch information
kikingki authored Dec 9, 2024
2 parents 6a765f9 + 2df9a01 commit 9f01aea
Show file tree
Hide file tree
Showing 98 changed files with 600 additions and 735 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/dissonance/itit/DissonanceApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
@SpringBootApplication
public class DissonanceApplication {

public static void main(String[] args) {
SpringApplication.run(DissonanceApplication.class, args);
}
public static void main(String[] args) {
SpringApplication.run(DissonanceApplication.class, args);
}

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
package com.dissonance.itit.domain.entity;
package com.dissonance.itit.bookmark.domain;

import com.dissonance.itit.post.domain.InfoPost;
import com.dissonance.itit.user.domain.User;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
Expand All @@ -9,7 +12,6 @@
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;
import jakarta.validation.constraints.Size;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand All @@ -21,8 +23,8 @@
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@Entity
@Table(name = "report")
public class Report {
@Table(name = "bookmark")
public class Bookmark {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
Expand All @@ -33,10 +35,6 @@ public class Report {
private User user;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "info_post_id")
private InfoPost infoPost;

@Size(max = 255)
@Column(name = "content")
private String content;
@JoinColumn(name = "post_id")
private InfoPost post;
}

This file was deleted.

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions src/main/java/com/dissonance/itit/config/S3Config.java

This file was deleted.

25 changes: 0 additions & 25 deletions src/main/java/com/dissonance/itit/domain/entity/Bookmark.java

This file was deleted.

28 changes: 0 additions & 28 deletions src/main/java/com/dissonance/itit/domain/entity/Category.java

This file was deleted.

28 changes: 0 additions & 28 deletions src/main/java/com/dissonance/itit/domain/entity/FeaturedPost.java

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/java/com/dissonance/itit/domain/enums/Directory.java

This file was deleted.

13 changes: 0 additions & 13 deletions src/main/java/com/dissonance/itit/domain/enums/Role.java

This file was deleted.

This file was deleted.

This file was deleted.

18 changes: 0 additions & 18 deletions src/main/java/com/dissonance/itit/dto/response/GeneratedToken.java

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.dissonance.itit.common.annotation;
package com.dissonance.itit.global.common.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.dissonance.itit.global.common.converter;

import com.fasterxml.jackson.databind.ObjectMapper;

import org.springframework.http.MediaType;
import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter;
import org.springframework.stereotype.Component;

import java.lang.reflect.Type;

@Component
public class MultipartJackson2HttpMessageConverter extends AbstractJackson2HttpMessageConverter {
/**
* Converter for support http request with header Content-Type: multipart/form-data
*/
public MultipartJackson2HttpMessageConverter(ObjectMapper objectMapper) {
super(objectMapper, MediaType.APPLICATION_OCTET_STREAM);
}

@Override
public boolean canWrite(Class<?> clazz, MediaType mediaType) {
return false;
}

@Override
public boolean canWrite(Type type, Class<?> clazz, MediaType mediaType) {
return false;
}

@Override
protected boolean canWrite(MediaType mediaType) {
return false;
}
}
Loading

0 comments on commit 9f01aea

Please sign in to comment.