|
|
package cn.bronet.admin.tree.common.module.common.enums;
|
|
|
|
|
|
public enum WechatMiniAppEnum {
|
|
|
/**
|
|
|
* 请求header的Key标识
|
|
|
*/
|
|
|
WECHAT_MINI_APP_HEADER_KEY("WECHAT-KEY", "请求header的Key标识"),
|
|
|
/**
|
|
|
* 成果树小程序
|
|
|
*/
|
|
|
WECHAT_MINI_APP_TREE("MINI-APP-TREE", "成果树小程序"),
|
|
|
/**
|
|
|
* 名片小程序
|
|
|
*/
|
|
|
WECHAT_MINI_APP_CARD("MINI-APP-CARD", "名片小程序"),
|
|
|
|
|
|
WECHAT_MINI_APP_PRACTICAL("MINI-APP-PRACTICAL", "实建家小程序"),
|
|
|
|
|
|
WECHAT_MINI_APP_CODE_PASS("MINI-APP-CODE-PASS", "一码通小程序"),
|
|
|
;
|
|
|
|
|
|
/**
|
|
|
* 小程序key
|
|
|
*/
|
|
|
private String key;
|
|
|
/**
|
|
|
* 小程序名称
|
|
|
*/
|
|
|
private String name;
|
|
|
|
|
|
/**
|
|
|
* @Description: 构造函数
|
|
|
* @param key key标识
|
|
|
* @param name 小程序名称
|
|
|
* @return:
|
|
|
* @Author: 啊雷
|
|
|
* @Date: 2021/9/26 14:22
|
|
|
**/
|
|
|
WechatMiniAppEnum(String key, String name) {
|
|
|
this.key = key;
|
|
|
this.name = name;
|
|
|
}
|
|
|
|
|
|
public String key() {
|
|
|
return key;
|
|
|
}
|
|
|
public String getKey() {
|
|
|
return key;
|
|
|
}
|
|
|
|
|
|
public void setKey(String key) {
|
|
|
this.key = key;
|
|
|
}
|
|
|
|
|
|
public String getName() {
|
|
|
return name;
|
|
|
}
|
|
|
|
|
|
public void setName(String name) {
|
|
|
this.name = name;
|
|
|
}
|
|
|
|
|
|
public boolean equals(String key){
|
|
|
return this.key.equals(key);
|
|
|
}
|
|
|
} |
...
|
...
|
|