面谈/面试

This commit is contained in:
zhangchenbiao
2024-03-20 11:44:29 +08:00
parent 1744150906
commit a2a58c57a1
15 changed files with 244 additions and 31 deletions

View File

@@ -1,7 +1,6 @@
package com.cool.store.enums;
import com.cool.store.constants.CommonConstants;
import org.apache.commons.collections4.ListUtils;
import org.apache.commons.lang3.tuple.Pair;
import java.time.LocalDate;
@@ -9,7 +8,6 @@ import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* @author zhangchenbiao
@@ -93,8 +91,4 @@ public enum InterviewTypeEnum {
return result;
}
public static void main(String[] args) {
System.out.println(getTimeSlots(LocalDate.now(), InterviewTypeEnum.INTERVIEW));
}
}

View File

@@ -0,0 +1,23 @@
package com.cool.store.enums;
/**
* @author zhangchenbiao
* @FileName: InterviewUserTypeEnum
* @Description:
* @date 2024-03-20 9:53
*/
public enum InterviewUserTypeEnum {
LINE("加盟商线索"),
INTERVIEWER("面试官"),;
private String message;
InterviewUserTypeEnum(String message) {
this.message = message;
}
public String getMessage() {
return message;
}
}

View File

@@ -0,0 +1,45 @@
package com.cool.store.enums;
/**
* @author zhangchenbiao
* @FileName: JoinInterviewStatusEnum
* @Description:
* @date 2024-03-20 11:05
*/
public enum JoinInterviewStatusEnum {
NO_JOIN(0, "未参加"),
LINE_JOIN(1,"加盟商先进入"),
INTERVIEW_JOIN(2,"面试官先进入"),
JOIN(3,"双方都参加");
private Integer code;
private String message;
JoinInterviewStatusEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
public Integer getCode() {
return code;
}
public String getMessage() {
return message;
}
public static Integer getJoinInterviewStatus(Integer joinInterviewStatus, InterviewUserTypeEnum userType){
if(NO_JOIN.getCode().equals(joinInterviewStatus)){
return InterviewUserTypeEnum.LINE.equals(userType) ? LINE_JOIN.getCode() : INTERVIEW_JOIN.getCode();
}
if(LINE_JOIN.getCode().equals(joinInterviewStatus)){
return InterviewUserTypeEnum.LINE.equals(userType) ? LINE_JOIN.getCode() : JOIN.getCode();
}
if(INTERVIEW_JOIN.getCode().equals(joinInterviewStatus)){
return InterviewUserTypeEnum.LINE.equals(userType) ? JOIN.getCode() : INTERVIEW_JOIN.getCode();
}
return JOIN.getCode();
}
}

View File

@@ -16,10 +16,10 @@ public class TRTCUtils {
*/
private static final Long expired = 60 * 60 * 24L;
@Value("${trtc.sdkAppId:null}")
@Value("${trtc.sdkAppId}")
private Long sdkAppId;
@Value("${trtc.secretKey:null}")
@Value("${trtc.secretKey}")
private String key;
/**