消息修改

This commit is contained in:
梁琦涛
2021-09-23 15:51:29 +08:00
parent 916ec71b55
commit 58b8a8bc49
8 changed files with 178 additions and 98 deletions
@@ -0,0 +1,76 @@
package com.jero.common.enums;
import org.apache.commons.lang3.StringUtils;
/**
* @Description 企业端消息
* @Author lqt
* @Date 2021/9/22
* @Param
* @Return
* @Exception
*/
public enum CompanyMessageEnums {
MSG1("HYTZ_WORK_GROUP_CREATE","会议提醒","点击跳转到报名页面"),
MSG2("HYTZ_WORK_GROUP_SIGN_UP","会议提醒","弹窗:查看该会议详情"),
MSG3("HYTZ_WORK_GROUP_UPLOAD","会议提醒","弹窗:查看该会议详情"),
MSG4("HYTZ_WORK_GROUP_NOT_UPLOAD","会议提醒","弹窗:查看该会议详情"),
MSG5("HYTZ_NOT_AUDIT","会议提醒","弹窗:上传汇款凭证"),
MSG6("HYTZ_AUDIT","会议提醒","弹窗:查看该会议详情"),
MSG7("WJTZ_MEETING_SEND","文件提醒","弹窗:查看该会议详情"),
MSG8("HTTZ_PHASE","合同提醒","无"),
MSG9("YJTZ_MAIL","邮寄提醒","查看该物流信息"),
MSG10("YJTZ_MAIL_CONTRACT","邮寄提醒","查看该物流信息"),
MSG11("CKTZ_PAY","催款提醒","弹窗:查看该项目详情"),
MSG12("WJTZ_WORK_GROUP_SEND","文件提醒","弹窗:查看该项目详情");
private String code;
private String value;
private String detail;
CompanyMessageEnums(String code, String value, String detail){
this.code = code;
this.value = value;
this.detail = detail;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public static CompanyMessageEnums getByCode(String code) {
if (StringUtils.isBlank(code)) {
return null;
}
for (CompanyMessageEnums val : values()) {
if (val.code.equals(code)) {
return val;
}
}
return null;
}
}
@@ -0,0 +1,71 @@
package com.jero.common.enums;
import org.apache.commons.lang3.StringUtils;
/**
* @Description 管理端消息
* @Author lqt
* @Date 2021/9/22
* @Param
* @Return
* @Exception
*/
public enum ManagementMessageEnums {
MSG1("HTTZ_CREATE_PROJECT","项目提醒","查看详情"),
MSG2("HTTZ_SUBMIT","合同提醒","跳转到合同的详情页面"),
MSG3("HTTZ_AUDIT","合同提醒","跳转到合同的详情页面"),
MSG4("HTTZ_NOT_AUDIT","合同提醒","跳转到合同的详情页面"),
MSG5("HYTZ_SIGN_UP_UPLOAD","会议提醒","审核弹窗"),
MSG6("DBTZ_ADD","打包提醒","查看该项目详情"),
MSG7("DBTZ_CONTRACT","打包提醒","查看项目详情"),
MSG8("HYTZ_ON_ACCESS_UPDATE","会议提醒","查看该参会人详情"),
MSG9("QYTZ_CREATE","企业提醒","企业列表页");
private String code;
private String value;
private String detail;
ManagementMessageEnums(String code, String value, String detail){
this.code = code;
this.value = value;
this.detail = detail;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public static ManagementMessageEnums getByCode(String code) {
if (StringUtils.isBlank(code)) {
return null;
}
for (ManagementMessageEnums val : values()) {
if (val.code.equals(code)) {
return val;
}
}
return null;
}
}
@@ -1,76 +0,0 @@
package com.jero.common.enums;
import java.util.Objects;
/**
* @Description 企业端消息
* @Author lqt
* @Date 2021/9/22
* @Param
* @Return
* @Exception
*/
public enum MessageEnums {
MSG1(1,"项目通知","查看详情"),//项目通知- 查看详情
MSG2(2,"合同通知","跳转到合同的详情页面"),//合同通知-跳转到合同的详情页面
MSG3(3,"会议通知","审核弹窗"),//会议通知-审核弹窗
MSG4(4,"打包通知","查看该项目详情"),//打包通知-查看该项目详情
MSG5(5,"会议通知","查看该参会人详情"),//会议通知-查看该参会人详情
MSG6(6,"企业通知","企业列表页"),//企业通知-企业列表页
MSG7(7,"会议通知","点击跳转到报名页面"),//会议通知-点击跳转到报名页面
MSG8(8,"会议通知","弹窗:查看该会议详情"),//会议通知-弹窗:查看该会议详情
MSG9(9,"会议通知","弹窗:上传汇款凭证"),//会议通知-弹窗:上传汇款凭证
MSG10(10,"文件通知","弹窗:查看该会议详情"),//文件通知-弹窗:查看该会议详情
MSG11(11,"合同通知","无"),//合同通知-无
MSG12(12,"邮寄通知","查看该物流信息"),//邮寄通知-查看该物流信息
MSG13(13,"邮寄通知","查看该物流信息"),//邮寄通知-查看该物流信息
MSG14(14,"催款通知","弹窗:查看该项目详情"),//催款通知-弹窗:查看该项目详情
MSG15(15,"文件通知","弹窗:查看该项目详情");//文件通知-弹窗:查看该项目详情
private Integer code;
private String value;
private String detail;
MessageEnums(Integer code, String value, String detail){
this.code = code;
this.value = value;
this.detail = detail;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
public String getDetail() {
return detail;
}
public void setDetail(String detail) {
this.detail = detail;
}
public static MessageEnums getByCode(Integer code) {
if (Objects.isNull(code)) {
return null;
}
for (MessageEnums val : values()) {
if (val.code.equals(code)) {
return val;
}
}
return null;
}
}