| | |
| | | package com.yeshi.fanli.entity.bus.user.cloud;
|
| | |
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
|
| | | public enum CloudOrderMenuEnum {
|
| | | robotMonth(0.01, 4, 1, "机器人月套餐", "一个月");
|
| | | |
| | | private double money;
|
| | | private Integer robotType;
|
| | | private Integer month;
|
| | | private String desc;
|
| | | private String descShow;
|
| | |
|
| | | private CloudOrderMenuEnum(double money, Integer robotType, Integer month, String desc, String descShow) {
|
| | | this.money = money;
|
| | | this.robotType = robotType;
|
| | | this.month = month;
|
| | | this.desc = desc;
|
| | | this.descShow = descShow;
|
| | | }
|
| | |
|
| | | public double getMoney() {
|
| | | return money;
|
| | | }
|
| | |
|
| | | public Integer getRobotType() {
|
| | | return robotType;
|
| | | }
|
| | |
|
| | | public Integer getMonth() {
|
| | | return month;
|
| | | }
|
| | | |
| | | public String getDesc() {
|
| | | return desc;
|
| | | }
|
| | | |
| | | public String getDescShow() {
|
| | | return descShow;
|
| | | }
|
| | |
|
| | | public static CloudOrderMenuEnum getMenuEnum(String type) {
|
| | | if (StringUtil.isNullOrEmpty(type)) |
| | | return null;
|
| | | CloudOrderMenuEnum[] array = CloudOrderMenuEnum.values();
|
| | | for (CloudOrderMenuEnum menuEnum: array) {
|
| | | if(menuEnum.name().equals(type))
|
| | | return menuEnum;
|
| | | }
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | package com.yeshi.fanli.entity.bus.user.cloud; |
| | | |
| | | import com.yeshi.fanli.util.StringUtil; |
| | | |
| | | public enum CloudOrderMenuEnum { |
| | | robotMonth(20, 4, 1, "全能机器人", "月卡"),//全价 |
| | | robotMonthHalfPrice(10, 4, 1, "全能机器人", "月卡"),//半价 |
| | | robotMonthVip(0.01, 4, 1, "全能机器人", "月卡");//会员价 |
| | | |
| | | private double money; |
| | | private Integer robotType; |
| | | private Integer month; |
| | | private String desc; |
| | | private String descShow; |
| | | |
| | | private CloudOrderMenuEnum(double money, Integer robotType, Integer month, String desc, String descShow) { |
| | | this.money = money; |
| | | this.robotType = robotType; |
| | | this.month = month; |
| | | this.desc = desc; |
| | | this.descShow = descShow; |
| | | } |
| | | |
| | | public double getMoney() { |
| | | return money; |
| | | } |
| | | |
| | | public Integer getRobotType() { |
| | | return robotType; |
| | | } |
| | | |
| | | public Integer getMonth() { |
| | | return month; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public String getDescShow() { |
| | | return descShow; |
| | | } |
| | | |
| | | public static CloudOrderMenuEnum getMenuEnum(String type) { |
| | | if (StringUtil.isNullOrEmpty(type)) |
| | | return null; |
| | | CloudOrderMenuEnum[] array = CloudOrderMenuEnum.values(); |
| | | for (CloudOrderMenuEnum menuEnum: array) { |
| | | if(menuEnum.name().equals(type)) |
| | | return menuEnum; |
| | | } |
| | | return null; |
| | | } |
| | | } |
| | | |