package com.doumee.core.wx;
|
|
import com.doumee.core.utils.Constants;
|
|
import java.math.BigDecimal;
|
import java.net.URLDecoder;
|
import java.util.Arrays;
|
import java.util.List;
|
|
public class MeetConstants extends Constants {
|
public static final String PROJECTS = "PROJECTS";
|
public static final String QR_OPENROOM_VALIDTIME = "QR_OPENROOM_VALIDTIME" ;
|
//开门时间有效期(分钟)
|
public static final String QR_OPENBOOK_VALIDTIME="QR_OPENBOOK_VALIDTIME";
|
public static final String ADVANCE_IN="ADVANCE_IN";
|
//发送会议开始 定时提前多少分钟发送
|
public static final String NOTICE_TIME = "NOTICE_TIME";
|
public static final String SYSTEM ="SYSTEM";
|
public static final String EARLY_START = "EARLY_START";
|
public static final String SOON_START = "SOON_START";
|
public static final String MEET_CODE_PREFIX = "MEET_CODE_PREFIX";
|
|
|
|
|
public interface UserRelObjType{
|
int objTypeRoom = 0;
|
int objTypeBook = 1;
|
}
|
public interface RoomRecordObjType{
|
int objTypeRoom = 0;//管理员开门
|
int objTypeBook_in = 1;//参会人员开门
|
int objTypeBook_out = 2;//访客开门
|
}
|
public static void main(String[] args) {
|
String t = URLDecoder.decode("https://lsqw.gtja.com/qwcos/v-index.html#/loginforProperty?corpId=ww4b7aefafeb430e4b&corpId=ww4b7aefafeb430e4b&agentId=1000005&agentId=1000005&fromRoute=&userCode=013561&userCode=&userId=zz&userId=&encryptUserCode=&custQwId=wmIUuSDgAAR8MhtVY8w90EyKltvoK5fA&custCode=&openId=op1wZwD1dKuBQywmWWS5957zUOJI&name=%E8%B9%84%E8%B9%84&headUrl=http%3A%2F%2Fwx.qlogo.cn%2Fmmhead%2FQ3auHgzwzM4QlibSOAvYcvRMdsoyF3Ua7duLOYSJfB3dsGsYxIYonBw%2F0&dbHeadUrl=https%3A%2F%2Ftgf.gtja.com%2Ff%2F%2Fqwoms%2F2022512%2Fqwoms_1652332606613_8.jpg");
|
System.out.println(t);
|
}
|
|
/**
|
* 数据状态枚举
|
*
|
*/
|
public enum Status {
|
|
/** 用户启用禁用枚举值*/
|
ENABLE(0,"正常"),
|
DISABLE(1,"禁用");
|
|
private Integer value;
|
private String des;
|
|
|
Status(Integer value, String des) {
|
this.value = value;
|
this.des = des;
|
}
|
|
public Integer getValue() {
|
return value;
|
}
|
|
public void setValue(Integer value) {
|
this.value = value;
|
}
|
|
public String getDes() {
|
return des;
|
}
|
|
public void setDes(String des) {
|
this.des = des;
|
}
|
}
|
|
|
|
|
|
/**
|
* 标签类型
|
*/
|
public enum LabelsType {
|
GOODSTYPE(0, "商品分类", "商品分类"),
|
GOODSBRAND(1, "商品品牌", "商品品牌"),
|
BUSNESSLABEL(2, "商家标签", "商家标签"),
|
EXPRESSDELIVERY(3, "快递", "快递"),
|
RETURNOPTIONS(4, "退货选项", "退货选项"),
|
EXCHANGEOPTIONS(5, "换货选项", "换货选项"),
|
REFUNDOPTIONS(6, "退款选项", "退款选项"),
|
CANCELORDEROPTIONS(7, "取消订单选项", "取消订单选项"),
|
COFFERBEANTYPE(8, "咖啡百科分类", "咖啡百科分类"),
|
INFOTYPE(9, "咨询分类", "咨询分类"),
|
ACTIVITYMATCHTYPE(10, "活动赛事分类", "活动赛事分类"),
|
DARENTANDIANTYPE(11, "达人探店分类", "达人探店分类"),
|
HOMEZHUANQU(12, "首页专区", "首页专区"),
|
|
;
|
// 成员变量
|
private String name;
|
private int key;
|
private String noteinfo;// 描述
|
|
// 构造方法
|
LabelsType(int key, String name, String noteinfo) {
|
this.name = name;
|
this.key = key;
|
this.noteinfo = noteinfo;
|
}
|
|
// 普通方法
|
public static String getName(int index) {
|
for (LabelsType c : LabelsType.values()) {
|
if (c.getKey() == index) {
|
return c.name;
|
}
|
}
|
return null;
|
}
|
|
// 普通方法
|
public static String getInfo(int index) {
|
for (LabelsType c : LabelsType.values()) {
|
if (c.getKey() == index) {
|
return c.noteinfo;
|
}
|
}
|
return null;
|
}
|
|
// get set 方法
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public int getKey() {
|
return key;
|
}
|
|
public void setKey(int key) {
|
this.key = key;
|
}
|
|
public String getNoteinfo() {
|
return noteinfo;
|
}
|
|
}
|
|
|
/**
|
* 活动类型
|
*/
|
public enum ActivityType {
|
|
SHOPACTIVITY(0, "商家活动", "商家活动"),
|
PLATACTIVITY(1, "平台活动", "平台活动"),
|
TANDIAN(2, "探店", "探店"),
|
CONSULT(3, "资讯", "资讯"),
|
|
;
|
// 成员变量
|
private String name;
|
private int key;
|
private String noteinfo;// 描述
|
|
// 构造方法
|
ActivityType(int key, String name, String noteinfo) {
|
this.name = name;
|
this.key = key;
|
this.noteinfo = noteinfo;
|
}
|
|
// 普通方法
|
public static String getName(int index) {
|
for (ActivityType c : ActivityType.values()) {
|
if (c.getKey() == index) {
|
return c.name;
|
}
|
}
|
return null;
|
}
|
|
// 普通方法
|
public static String getInfo(int index) {
|
for (ActivityType c : ActivityType.values()) {
|
if (c.getKey() == index) {
|
return c.noteinfo;
|
}
|
}
|
return null;
|
}
|
|
// get set 方法
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public int getKey() {
|
return key;
|
}
|
|
public void setKey(int key) {
|
this.key = key;
|
}
|
|
public String getNoteinfo() {
|
return noteinfo;
|
}
|
|
}
|
}
|