Skip to content

Commit

Permalink
Merge pull request #56 from siwonKH/main
Browse files Browse the repository at this point in the history
Add: ApiRequest class
  • Loading branch information
siwonkh authored Jul 2, 2023
2 parents 179a5cf + f458ba4 commit 97a3457
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/main/java/com/khpt/projectkim/functions/ApiRequest.java
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;
}
}

1 comment on commit 97a3457

@Hot-dong
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

g

Please sign in to comment.