Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions http/career/CarrerControllerHttpRequest.http
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 14.1 (게슀트) 컀리어 리슀트 쑰회
//@no-log
GET http://localhost:8080/v1/guests/careers/overviews?
GET {{host_url}}/v1/guests/careers/overviews?
page=1&
size=10&
sorting=TRENDING
Expand All @@ -16,7 +16,7 @@ GET http://localhost:8080/v1/guests/careers/1/details

### 14.3 (μœ ν•™μƒ) 컀리어 리슀트 쑰회
//@no-log
GET http://localhost:8080/v1/users/careers/overviews?
GET {{host_url}}/v1/users/careers/overviews?
page=1&
size=10&
is-book-marked=TRUE
Expand All @@ -26,14 +26,14 @@ Authorization: Bearer {{access_token}}

### 14.4 (μœ ν•™μƒ) 컀리어 λ””ν…ŒμΌ 쑰회
//@no-log
GET http://localhost:8080/v1/users/careers/1/details
GET {{host_url}}/v1/users/careers/1/details
Content-Type: application/json
Authorization: Bearer {{access_token}}


### 14.5 (μ–΄λ“œλ―Ό) 컀리어 μΆ”κ°€ν•˜κΈ°
//@no-log
POST http://localhost:8080/v1/admins/careers
POST {{host_url}}/v1/admins/careers
Content-Type: multipart/form-data; boundary=boundary
Authorization: Bearer {{access_token}}

Expand Down Expand Up @@ -71,15 +71,15 @@ Content-Type: application/json


### 14.6 (μœ ν•™μƒ) 컀리어 뢁마크 μΆ”κ°€/μ‚­μ œ
PUT http://localhost:8080/v1/users/careers/2/book-mark-careers
PUT {{host_url}}/v1/users/careers/2/book-mark-careers
Content-Type: application/json
Authorization: Bearer {{access_token}}



### 14.7 (μ–΄λ“œλ―Ό) 컀리어 리슀트 쑰회
//@no-log
GET http://localhost:8080/v1/admins/careers/overviews?
GET {{host_url}}/v1/admins/careers/overviews?
page=1&
size=10&
sorting=TRENDING
Expand All @@ -90,14 +90,14 @@ Authorization: Bearer {{access_token}}

### 14.8 (μ–΄λ“œλ―Ό) 컀리어 λ””ν…ŒμΌ 쑰회
//@no-log
GET http://localhost:8080/v1/admins/careers/1/details
GET {{host_url}}/v1/admins/careers/1/details
Content-Type: application/json
Authorization: Bearer {{access_token}}


### 14.9 (μ–΄λ“œλ―Ό) 컀리어 μˆ˜μ •ν•˜κΈ°
//@no-log
PUT http://localhost:8080/v1/admins/careers/1
PUT {{host_url}}/v1/admins/careers/1
Content-Type: multipart/form-data; boundary=boundary
Authorization: Bearer {{access_token}}

Expand Down Expand Up @@ -135,5 +135,5 @@ Content-Type: application/json

### 14.10 (μ–΄λ“œλ―Ό) 컀리어 μ‚­μ œν•˜κΈ°
//@no-log
DELETE http://localhost:8080/v1/admins/careers/2
DELETE {{host_url}}/v1/admins/careers/2
Authorization: Bearer {{access_token}}
2 changes: 1 addition & 1 deletion src/main/java/com/inglo/giggle/career/domain/Career.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public class Career extends BaseEntity {
private ECareerCategory category;

@Lob
@Column(name = "details")
@Column(name = "details", columnDefinition = "TEXT")
private String details;

@Column(name = "application_url")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class CareerImage extends BaseEntity {
/* Information Column ------------------------- */
/* -------------------------------------------- */
@Lob
@Column(name = "img_url", nullable = false)
@Column(name = "img_url", nullable = false, columnDefinition = "TEXT")
private String imgUrl;

@Column(name = "serial_id", nullable = false)
Expand Down
33 changes: 6 additions & 27 deletions src/main/java/com/inglo/giggle/core/type/EMajor.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,11 @@ public enum EMajor {
private final String enName;

public static EMajor fromString(String value) {
return switch (value) {
case "Business Management" -> BUSINESS_MANAGEMENT;
case "Office & Accounting" -> OFFICE_ACCOUNTING;
case "Finance & Insurance" -> FINANCE_INSURANCE;
case "Education & Research" -> EDUCATION_RESEARCH;
case "Law & Public Safety" -> LAW_PUBLIC_SAFETY;
case "Healthcare" -> HEALTHCARE;
case "Social Work & Religion" -> SOCIAL_WORK_RELIGION;
case "Arts & Media" -> ARTS_MEDIA;
case "Driving & Delivery" -> DRIVING_DELIVERY;
case "Sales" -> SALES;
case "Security & Cleaning" -> SECURITY_CLEANING;
case "Hospitality & Leisure" -> HOSPITALITY_LEISURE;
case "Food Service" -> FOOD_SERVICE;
case "Construction" -> CONSTRUCTION;
case "Machinery" -> MACHINERY;
case "Materials" -> MATERIALS;
case "Chemistry & Bio" -> CHEMISTRY_BIO;
case "Textiles & Fashion" -> TEXTILES_FASHION;
case "Electronics" -> ELECTRONICS;
case "IT & Telecommunications" -> IT_TELECOMMUNICATIONS;
case "Food Processing" -> FOOD_PROCESSING;
case "Printing & Craft" -> PRINTING_CRAFT;
case "Environment & Safety" -> ENVIRONMENT_SAFETY;
case "Agriculture & Fisheries" -> AGRICULTURE_FISHERIES;
default -> throw new IllegalArgumentException("전곡이 잘λͺ»λ˜μ—ˆμŠ΅λ‹ˆλ‹€.");
};
for (EMajor major : EMajor.values()) {
if (major.name().equalsIgnoreCase(value.toUpperCase())) {
return major;
}
}
throw new IllegalArgumentException("전곡이 잘λͺ»λ˜μ—ˆμŠ΅λ‹ˆλ‹€.");
}
}
Loading