-
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 #235 from beyond-sw-camp/feat/quotation/list
feat: Frontend - 견적서 목록 조회 기능 추가
- Loading branch information
Showing
11 changed files
with
172 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
env.properties | ||
.idea | ||
.env | ||
.idea |
33 changes: 29 additions & 4 deletions
33
.../java/error/pirate/backend/quotation/command/domain/aggregate/entity/QuotationStatus.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,9 +1,34 @@ | ||
package error.pirate.backend.quotation.command.domain.aggregate.entity; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
@Getter | ||
@RequiredArgsConstructor | ||
public enum QuotationStatus { | ||
BEFORE, // 결재전 | ||
AFTER, // 결재후 | ||
REFUSAL, // 반려 | ||
DELETE // 삭제 | ||
BEFORE("결재 전"), | ||
AFTER("결재 후"), | ||
REFUSAL("반려"), | ||
DELETE("삭제"); | ||
|
||
private final String value; | ||
|
||
@Getter | ||
public static class QuotationStatusResponse { | ||
private final String key; | ||
private final String value; | ||
|
||
public QuotationStatusResponse(String key, QuotationStatus quotationStatus) { | ||
this.key = key; | ||
this.value = quotationStatus.getValue(); | ||
} | ||
} | ||
|
||
public static List<QuotationStatusResponse> readQuotationStatusList() { | ||
return Arrays.stream(QuotationStatus.class.getEnumConstants()).map(key -> | ||
new QuotationStatusResponse(key.toString(), QuotationStatus.valueOf(key.toString()))).toList(); | ||
} | ||
} |
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
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,15 @@ | ||
import axios from 'axios'; | ||
|
||
const instance = axios.create({ | ||
baseURL: import.meta.env.VITE_API_URL, | ||
// headers: { | ||
// common: { | ||
// 'Authorization': 'AUTH_TOKEN' | ||
// }, | ||
// post: { | ||
// 'Content-Type': 'application/x-www-form-urlencoded' | ||
// } | ||
// } | ||
}); | ||
|
||
export default instance; |
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