-
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 branch 'main' of https://github.com/UniD3-Hackathon-Team12/seer…
…eaurl_back into feat/#1 # Conflicts: # build.gradle # build/classes/java/main/com/example/SeaReaUrl_back/FraudAccount.class # build/tmp/compileJava/previous-compilation-data.bin # src/main/java/com/example/SeaReaUrl_back/FraudController.java # src/main/java/com/example/SeaReaUrl_back/FraudService.java # src/main/java/com/example/SeaReaUrl_back/Top5Response.java
- Loading branch information
Showing
9 changed files
with
86 additions
and
37 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
Binary file modified
BIN
-16 Bytes
(99%)
build/classes/java/main/com/example/SeaReaUrl_back/FraudAccount.class
Binary file not shown.
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
Binary file not shown.
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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/example/SeaReaUrl_back/Top5AccountResponse.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,22 @@ | ||
package com.example.SeaReaUrl_back; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class Top5AccountResponse { | ||
private Long id; | ||
private String url; | ||
private Boolean isFraud; | ||
private Long view; | ||
private Long report; | ||
|
||
public Top5AccountResponse(FraudAccount account) { | ||
this.id = account.getId(); | ||
this.url = account.getUrl(); | ||
this.isFraud = account.getIsFraud(); | ||
this.view = account.getView(); | ||
this.report = account.getReport(); | ||
} | ||
} |
37 changes: 33 additions & 4 deletions
37
src/main/java/com/example/SeaReaUrl_back/Top5Response.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 |
---|---|---|
@@ -1,14 +1,43 @@ | ||
package com.example.SeaReaUrl_back; | ||
|
||
|
||
import java.util.List; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
public class Top5Response { | ||
private String fraudName; | ||
|
||
private List<Top5AccountResponse> top5Accounts; | ||
|
||
public Top5Response(List<Top5AccountResponse> top5Accounts) { | ||
this.top5Accounts = top5Accounts; | ||
} | ||
|
||
// private List<FraudAccount> top5Accounts; | ||
// | ||
// public Top5Response(List<FraudAccount> top5Accounts) { | ||
// this.top5Accounts = top5Accounts; | ||
// } | ||
// | ||
// public List<FraudAccount> getTop5Accounts() { | ||
// return top5Accounts; | ||
// } | ||
// private Long id; | ||
// private String url; | ||
// private Boolean IsFraud; | ||
// private Long view; | ||
// private Long report; | ||
// | ||
// public static Top5Response { | ||
// return Top5Response.builder() | ||
// .id() | ||
// .build(); | ||
// } | ||
|
||
} |
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