| | |
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
|
| | | public enum CloudOrderMenuEnum {
|
| | | robotMonth(20.00, 1, 1, "机器人月套餐");
|
| | |
|
| | | robotMonth(20, 4, 1, "全能机器人", "一个月");
|
| | | |
| | | private double money;
|
| | | private Integer type;
|
| | | private Integer robotType;
|
| | | private Integer month;
|
| | | private String desc;
|
| | | private String descShow;
|
| | |
|
| | | private CloudOrderMenuEnum(double money, Integer type, Integer month, String desc) {
|
| | | private CloudOrderMenuEnum(double money, Integer robotType, Integer month, String desc, String descShow) {
|
| | | this.money = money;
|
| | | this.type = type;
|
| | | this.robotType = robotType;
|
| | | this.month = month;
|
| | | this.desc = desc;
|
| | | this.descShow = descShow;
|
| | | }
|
| | |
|
| | | public double getMoney() {
|
| | | return money;
|
| | | }
|
| | |
|
| | | public Integer getType() {
|
| | | return type;
|
| | | public Integer getRobotType() {
|
| | | return robotType;
|
| | | }
|
| | |
|
| | | public Integer getMonth() {
|
| | |
| | | return desc;
|
| | | }
|
| | |
|
| | | public String getDescShow() {
|
| | | return descShow;
|
| | | }
|
| | |
|
| | | public static CloudOrderMenuEnum getMenuEnum(String type) {
|
| | | if (StringUtil.isNullOrEmpty(type))
|