Commit 5e30b96f by 284718418@qq.com

ResumeSDK 本地测试

parent ba5ae48e
......@@ -467,7 +467,8 @@ public class ZpglController {
return ResultUtil.error("导入简历失败,目前支持pdf,doc,docx,wps,txt,jpg,jpeg,png,bmp,tif格式~");
}
importCandidateDto.setSuffix(suffix);
return zpglService.addResumeImportCandidate(userBean, file, importCandidateDto);
// return zpglService.addResumeImportCandidate(userBean, file, importCandidateDto);
return zpglService.addCandidateByResumeSDK(userBean, file, importCandidateDto);
} catch (CustomException e) {
e.printStackTrace();
throw e;
......
......@@ -30,12 +30,19 @@ public interface ZpglService {
SysRegion getSysRegion(Integer keyId);
/**
*
* BaiduTicResume
* @param file
* @return
*/
Result<Object> addResumeImportCandidate(UserBean userBean, MultipartFile file, ImportCandidateDto importCandidateDto);
/**
* ResumeSDK
* @param file
* @return
*/
Result<Object> addCandidateByResumeSDK(UserBean userBean, MultipartFile file, ImportCandidateDto importCandidateDto);
/**
* 招聘-更改招聘职位
......
......@@ -55,7 +55,12 @@ public class Job_exp_objs implements Serializable {
* 工作性质 全职、兼职、实习
*/
private String job_nature;
/**
* 所在部门,部门名称
*/
private String job_dept;
/**
* 离职原因
*/
private String job_why_leave;
}
......@@ -19,7 +19,7 @@ import java.io.Serializable;
public class JsonRootBean implements Serializable {
private Status status;
private Result result;
private ReumeSdkResult result;
private Eval eval;
private Tags tags;
......
......@@ -18,7 +18,7 @@ import java.util.List;
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Result implements Serializable {
public class ReumeSdkResult implements Serializable {
private String name;
private String gender;
......@@ -29,7 +29,7 @@ public class Result implements Serializable {
private String surname;
private String height;
private String weight;
private Date birthday;
private String birthday;
private String city_norm;
private String college;
private String college_type;
......@@ -39,6 +39,7 @@ public class Result implements Serializable {
private String city;
private String grad_time;
private String degree;
private String id_card;
private String race;
private String nationality;
private String english_level;
......
package cn.timer.api.dto.resumesdk.enumresume;
import lombok.Getter;
import org.eclipse.jetty.websocket.api.StatusCode;
import org.springframework.util.StringUtils;
/**
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022/4/24
*/
public interface ResumeSdk {
/**
* 200 正常状态,表示解析成功
* 250 账号(uid)或密码(pwd)错误
* 251 账号剩余用量为0(需及时充值)
* 260 请求参数错误
* 261 简历内容为空
* 262 简历内容过长
* 263 不支持的简历文件格式
* 264 base64解码出错
* 265 图片文件过大,或者长宽大小超过限制
* 266 输入参数file_name缺少文件后缀名(请带上正确的文件后缀,如果是纯文本则为.txt)
* 267 输入的json结构体有误(即解码失败)
* 240 简历解析内部错误
* 280 人岗匹配内部错误
*/
@Getter
enum StatusCodeEnum implements ResumeSdk {
SUCCESSS(200, "解析成功"),
ERROR250(250, "账号(uid)或密码(pwd)错误"),
ERROR251(251, "账号剩余用量为0(需及时充值)"),
ERROR260(260, "请求参数错误"),
ERROR261(261, "简历内容为空"),
ERROR262(262, "简历内容过长"),
ERROR263(263, "不支持的简历文件格式"),
ERROR264(264, "base64解码出错"),
ERROR265(265, "图片文件过大,或者长宽大小超过限制"),
ERROR266(266, "输入参数file_name缺少文件后缀名(请带上正确的文件后缀,如果是纯文本则为.txt)"),
ERROR267(267, "输入的json结构体有误(即解码失败)"),
ERROR240(240, "简历解析内部错误"),
ERROR280(280, "人岗匹配内部错误");
private Integer type;
private String name;
StatusCodeEnum(Integer type, String name) {
this.type = type;
this.name = name;
}
public static String getName(Integer type){
if(type < 0){
return "";
}
for(StatusCodeEnum.StatusCodeEnum statusCodeEnum : StatusCodeEnum.StatusCodeEnum.values()){
if(statusCodeEnum.getType() == type){
return statusCodeEnum.name;
}
}
return "";
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment