2023-10-09 10:31:12 +08:00
|
|
|
package com.engine.recruit.enums;
|
|
|
|
|
|
2023-10-10 11:06:31 +08:00
|
|
|
import com.engine.recruit.exception.CustomizeRunTimeException;
|
2024-06-28 15:38:27 +08:00
|
|
|
import com.weaver.rpa.sdk.clients.application.resume.common.ResumePlatform;
|
2023-10-10 11:06:31 +08:00
|
|
|
|
2023-10-09 10:31:12 +08:00
|
|
|
/**
|
|
|
|
|
* 发布渠道枚举类
|
|
|
|
|
*
|
|
|
|
|
* @author:dxfeng
|
|
|
|
|
* @createTime: 2023/10/08
|
|
|
|
|
* @version: 1.0
|
|
|
|
|
*/
|
|
|
|
|
public enum PositionThirdChannelEnum {
|
|
|
|
|
/**
|
|
|
|
|
* 发布渠道
|
|
|
|
|
*/
|
2024-06-28 15:38:27 +08:00
|
|
|
BOSSZHIPIN("0", "BOSS直聘", ResumePlatform.BOSSZHIPIN),
|
|
|
|
|
ZHILIANZHAOPIN("1", "智联招聘", ResumePlatform.ZHILIANZHAOPIN),
|
|
|
|
|
QIANCHENGWUYOU("2", "前程无忧", ResumePlatform.QIANCHENGWUYOU),
|
|
|
|
|
LAGO("3", "拉勾", ResumePlatform.LAGO),
|
|
|
|
|
LIEPIN("4", "猎聘", ResumePlatform.LIEPIN);
|
2023-10-09 10:31:12 +08:00
|
|
|
|
2024-06-28 15:38:27 +08:00
|
|
|
PositionThirdChannelEnum(String value, String desc, int resumePlatformId) {
|
2023-10-09 10:31:12 +08:00
|
|
|
this.value = value;
|
2023-10-10 16:14:49 +08:00
|
|
|
this.desc = desc;
|
2024-06-28 15:38:27 +08:00
|
|
|
this.resumePlatformId = resumePlatformId;
|
2023-10-09 10:31:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private String value;
|
2023-10-10 16:14:49 +08:00
|
|
|
private String desc;
|
2024-06-28 15:38:27 +08:00
|
|
|
private int resumePlatformId;
|
2023-10-09 10:31:12 +08:00
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setValue(String value) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
}
|
|
|
|
|
|
2023-10-10 16:14:49 +08:00
|
|
|
public String getDesc() {
|
|
|
|
|
return desc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDesc(String desc) {
|
|
|
|
|
this.desc = desc;
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-28 15:38:27 +08:00
|
|
|
public int getResumePlatformId() {
|
|
|
|
|
return resumePlatformId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setResumePlatformId(int resumePlatformId) {
|
|
|
|
|
resumePlatformId = resumePlatformId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static PositionThirdChannelEnum getEnumByValue(String value) {
|
2023-10-09 10:31:12 +08:00
|
|
|
for (PositionThirdChannelEnum item : PositionThirdChannelEnum.values()) {
|
|
|
|
|
if (item.value.equalsIgnoreCase(value)) {
|
|
|
|
|
return item;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-10-10 11:06:31 +08:00
|
|
|
throw new CustomizeRunTimeException("不支持的发布渠道");
|
2023-10-09 10:31:12 +08:00
|
|
|
}
|
2024-06-28 15:38:27 +08:00
|
|
|
|
|
|
|
|
public static PositionThirdChannelEnum getEnumByPlatformId(int resumePlatformId) {
|
|
|
|
|
for (PositionThirdChannelEnum item : PositionThirdChannelEnum.values()) {
|
|
|
|
|
if (item.resumePlatformId == resumePlatformId) {
|
|
|
|
|
return item;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
throw new CustomizeRunTimeException("不支持的发布渠道");
|
|
|
|
|
}
|
2023-10-09 10:31:12 +08:00
|
|
|
}
|