Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
1eb5d791
Commit
1eb5d791
authored
Apr 24, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ResumeSDK 本地测试
parent
b4dcec11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
87 additions
and
8 deletions
+87
-8
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
+2
-1
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglService.java
+8
-1
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglServiceImpl.java
+0
-0
src/main/java/cn/timer/api/dto/resumesdk/Job_exp_objs.java
+8
-3
src/main/java/cn/timer/api/dto/resumesdk/JsonRootBean.java
+1
-1
src/main/java/cn/timer/api/dto/resumesdk/ReumeSdkResult.java
+3
-2
src/main/java/cn/timer/api/dto/resumesdk/enumresume/ResumeSdk.java
+65
-0
No files found.
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
View file @
1eb5d791
...
...
@@ -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
;
...
...
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglService.java
View file @
1eb5d791
...
...
@@ -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
);
/**
* 招聘-更改招聘职位
...
...
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglServiceImpl.java
View file @
1eb5d791
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/dto/resumesdk/Job_exp_objs.java
View file @
1eb5d791
...
...
@@ -55,7 +55,12 @@ public class Job_exp_objs implements Serializable {
* 工作性质 全职、兼职、实习
*/
private
String
job_nature
;
/**
* 所在部门,部门名称
*/
private
String
job_dept
;
/**
* 离职原因
*/
private
String
job_why_leave
;
}
src/main/java/cn/timer/api/dto/resumesdk/JsonRootBean.java
View file @
1eb5d791
...
...
@@ -19,7 +19,7 @@ import java.io.Serializable;
public
class
JsonRootBean
implements
Serializable
{
private
Status
status
;
private
Result
result
;
private
Re
umeSdkRe
sult
result
;
private
Eval
eval
;
private
Tags
tags
;
...
...
src/main/java/cn/timer/api/dto/resumesdk/Result.java
→
src/main/java/cn/timer/api/dto/resumesdk/Re
umeSdkRe
sult.java
View file @
1eb5d791
...
...
@@ -18,7 +18,7 @@ import java.util.List;
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
Result
implements
Serializable
{
public
class
Re
umeSdkRe
sult
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
;
...
...
src/main/java/cn/timer/api/dto/resumesdk/enumresume/ResumeSdk.java
0 → 100644
View file @
1eb5d791
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
""
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment