-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from potenday-project/develop
API 연동 미완
- Loading branch information
Showing
11 changed files
with
238 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/generated/com/chwipoClova/common/entity/QApiLog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.chwipoClova.common.entity; | ||
|
||
import static com.querydsl.core.types.PathMetadataFactory.*; | ||
|
||
import com.querydsl.core.types.dsl.*; | ||
|
||
import com.querydsl.core.types.PathMetadata; | ||
import javax.annotation.processing.Generated; | ||
import com.querydsl.core.types.Path; | ||
|
||
|
||
/** | ||
* QApiLog is a Querydsl query type for ApiLog | ||
*/ | ||
@Generated("com.querydsl.codegen.DefaultEntitySerializer") | ||
public class QApiLog extends EntityPathBase<ApiLog> { | ||
|
||
private static final long serialVersionUID = -525634126L; | ||
|
||
public static final QApiLog apiLog = new QApiLog("apiLog"); | ||
|
||
public final NumberPath<Long> apiLogId = createNumber("apiLogId", Long.class); | ||
|
||
public final StringPath apiUrl = createString("apiUrl"); | ||
|
||
public final StringPath message = createString("message"); | ||
|
||
public final DateTimePath<java.util.Date> regDate = createDateTime("regDate", java.util.Date.class); | ||
|
||
public final NumberPath<Long> userId = createNumber("userId", Long.class); | ||
|
||
public QApiLog(String variable) { | ||
super(ApiLog.class, forVariable(variable)); | ||
} | ||
|
||
public QApiLog(Path<? extends ApiLog> path) { | ||
super(path.getType(), path.getMetadata()); | ||
} | ||
|
||
public QApiLog(PathMetadata metadata) { | ||
super(ApiLog.class, metadata); | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
package com.chwipoClova.common.entity; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.persistence.*; | ||
import lombok.*; | ||
import org.hibernate.annotations.DynamicInsert; | ||
|
||
import java.util.Date; | ||
|
||
@Entity(name = "ApiLog") | ||
@Table(name = "ApiLog") | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonIgnoreProperties() | ||
@DynamicInsert | ||
@Builder | ||
@Getter | ||
@ToString | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Schema(description = "API 로그 VO") | ||
public class ApiLog { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "apiLogId") | ||
@Schema(description = "API LOG ID") | ||
private Long apiLogId; | ||
|
||
@Column(name = "userId") | ||
@Schema(description = "유저 ID") | ||
private Long userId; | ||
|
||
@Column(name = "apiUrl") | ||
@Schema(description = "api 호출 URL") | ||
private String apiUrl; | ||
|
||
@Column(name = "message") | ||
@Schema(description = "결과 메세지") | ||
private String message; | ||
|
||
@Column(name = "regDate") | ||
@Schema(description = "등록일") | ||
private Date regDate; | ||
|
||
@PrePersist | ||
public void prePersist() { | ||
this.regDate = new Date(); // 현재 날짜와 시간으로 등록일 설정 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/java/com/chwipoClova/common/repository/ApiLogRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.chwipoClova.common.repository; | ||
|
||
import com.chwipoClova.common.dto.Token; | ||
import com.chwipoClova.common.entity.ApiLog; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface ApiLogRepository extends JpaRepository<ApiLog, Long> { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.