-
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 #56 from siwonKH/main
Add: ApiRequest class
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
src/main/java/com/khpt/projectkim/functions/ApiRequest.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,40 @@ | ||
package com.khpt.projectkim.functions; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyDescription; | ||
import lombok.Getter; | ||
|
||
public class ApiRequest { | ||
|
||
public enum Sort { | ||
PD, RC, AC | ||
} | ||
|
||
@Getter | ||
public static class JobData { | ||
@JsonPropertyDescription("The keyword to search for job posting information, e.g. 백엔드") | ||
public String keyword; | ||
|
||
@JsonPropertyDescription("pd:sort by date of publication, rc:sort by hits, ac:sort by number of applicants") | ||
@JsonProperty(defaultValue = "pd") | ||
public Sort sort; | ||
|
||
@JsonPropertyDescription("A list of job_code in job_code_table separated by comma. example 1) 1,2,3,4 example 2) 43,7,12,56,12,78,45,23,2") | ||
public String codes; | ||
|
||
// @JsonProperty(value = "job_cd", required = true) | ||
// public String job_cd; | ||
// | ||
// @JsonProperty(value = "job_type", required = true) | ||
// public String job_type; | ||
// | ||
// @JsonProperty(value = "edu_lv", required = true) | ||
// public String edu_lv; | ||
// | ||
// @JsonProperty(value = "loc_cd", required = true) | ||
// public String loc_cd; | ||
// | ||
// @JsonProperty(value = "access-key", required = true) | ||
// public String access_key; | ||
} | ||
} |
97a3457
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
g