-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Feat/#31 save
- Loading branch information
Showing
88 changed files
with
1,158 additions
and
210 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
package com.kbds.itamserveradmin.domain; | ||
|
||
public class Test { | ||
private String test; | ||
|
||
import com.kbds.itamserveradmin.global.exception.BaseException; | ||
import com.kbds.itamserveradmin.global.exception.ErrorCode; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
class Test { | ||
|
||
@PostMapping("/test") | ||
public ResponseEntity<String> test(){ | ||
boolean test = true; | ||
System.out.println("start"); | ||
|
||
if(test) { | ||
throw new BaseException(ErrorCode.INTERNAL_SERVER_ERROR); | ||
} | ||
|
||
return ResponseEntity.ok("success"); | ||
|
||
} | ||
|
||
|
||
|
||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kbds/itamserveradmin/domain/asset/controller/AssetController.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,7 @@ | ||
package com.kbds.itamserveradmin.domain.asset.controller; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
public class AssetController { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kbds/itamserveradmin/domain/asset/dto/AssetReq.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,7 @@ | ||
package com.kbds.itamserveradmin.domain.asset.dto; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class AssetReq { | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/kbds/itamserveradmin/domain/asset/dto/AssetRes.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.kbds.itamserveradmin.domain.asset.dto; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Data | ||
@Builder | ||
public class AssetRes { | ||
} |
41 changes: 41 additions & 0 deletions
41
src/main/java/com/kbds/itamserveradmin/domain/asset/entity/Asset.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,41 @@ | ||
package com.kbds.itamserveradmin.domain.asset.entity; | ||
|
||
import com.kbds.itamserveradmin.domain.corporation.entity.Corporation; | ||
import com.kbds.itamserveradmin.domain.user.entity.User; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
public class Asset { | ||
|
||
@Id | ||
private String astId; | ||
private String astName; | ||
private Boolean isAstInternal; | ||
private AstTag astTag; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "corp_id" ) | ||
private Corporation corp; | ||
|
||
@ManyToOne(fetch = FetchType.LAZY) | ||
@JoinColumn(name = "user_id") | ||
private User user; | ||
|
||
private String astSwCtgy; | ||
private String astPrice; | ||
private String astVer; | ||
private Boolean isAstInstallFile; | ||
private String astSpd; | ||
private String astDpd; | ||
|
||
} |
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
16 changes: 16 additions & 0 deletions
16
src/main/java/com/kbds/itamserveradmin/domain/asset/entity/AstTag.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,16 @@ | ||
package com.kbds.itamserveradmin.domain.asset.entity; | ||
|
||
import com.fasterxml.jackson.annotation.JsonValue; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum AstTag { | ||
|
||
DAS("데이타시스템"), BNK("국민은행"), ISR("손해보험"), CRD("국민카드"), STK("증권"), LIF("라이프"), | ||
ASM("자산운용"), CAP("캐피탈"), RET("부동산신탁"), SAV("저축은행"), INV("인베스트먼트"); | ||
|
||
@JsonValue | ||
private String value; | ||
} |
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
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kbds/itamserveradmin/domain/asset/repository/AssetNoticeRepository.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,7 @@ | ||
package com.kbds.itamserveradmin.domain.asset.repository; | ||
|
||
import com.kbds.itamserveradmin.domain.asset.entity.AssetNotice; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface AssetNoticeRepository extends JpaRepository<AssetNotice, String> { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kbds/itamserveradmin/domain/asset/repository/AssetRepository.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,7 @@ | ||
package com.kbds.itamserveradmin.domain.asset.repository; | ||
|
||
import com.kbds.itamserveradmin.domain.asset.entity.Asset; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface AssetRepository extends JpaRepository<Asset, String> { | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/kbds/itamserveradmin/domain/asset/repository/ManualLogRepository.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,7 @@ | ||
package com.kbds.itamserveradmin.domain.asset.repository; | ||
|
||
import com.kbds.itamserveradmin.domain.asset.entity.ManualLog; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface ManualLogRepository extends JpaRepository<ManualLog, String> { | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/kbds/itamserveradmin/domain/asset/service/AssetService.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,10 @@ | ||
package com.kbds.itamserveradmin.domain.asset.service; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class AssetService { | ||
|
||
} |
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.