From 93c034764819c81eb6389e876bc9febb405664a1 Mon Sep 17 00:00:00 2001 From: wgd <862422848@qq.com> Date: Mon, 28 Mar 2022 10:08:36 +0800 Subject: [PATCH] 运营后台-- 保险列表 --- src/main/java/cn/timer/api/controller/insure/enums/InsuranceEnum.java | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/main/java/cn/timer/api/controller/insure/enums/InsuranceEnum.java diff --git a/src/main/java/cn/timer/api/controller/insure/enums/InsuranceEnum.java b/src/main/java/cn/timer/api/controller/insure/enums/InsuranceEnum.java new file mode 100644 index 0000000..953637e --- /dev/null +++ b/src/main/java/cn/timer/api/controller/insure/enums/InsuranceEnum.java @@ -0,0 +1,64 @@ +package cn.timer.api.controller.insure.enums; + +import io.swagger.models.auth.In; +import lombok.Data; + +/** + * @Description TODO + * @Author wgd + * @Date 2022/3/24 17:20 + */ +public enum InsuranceEnum { + A_30(12,"30万意外/3万医疗/扩展24小时(A类)","A类"), + A_50(15,"50万意外/5万医疗/扩展24小时(A类)","A类"), + A_80(18,"80万意外/10万医疗/扩展24小时(A类)","A类"), + A_80_20(25,"80万意外/20万医疗/扩展24小时(A类)","A类"), + A_100(28,"100万意外/10万医疗/扩展24小时(A类)","A类"), + B_30(18,"30万意外/3万医疗/扩展24小时(B类)","B类"), + B_50(20,"50万意外/5万医疗/扩展24小时(B类)","B类"), + B_80(35,"80万意外/10万医疗/扩展24小时(B类)","B类"), + B_80_20(38,"80万意外/20万医疗/扩展24小时(B类)","B类"), + B_100(40,"100万意外/10万医疗/扩展24小时(B类)","B类"), + C_50(60,"50万意外/5万医疗/扩展24小时(C类)","C类"), + C_80(75,"80万意外/10万医疗/扩展24小时(C类)","C类"); + private Integer price; + private String name; + private String type; + + InsuranceEnum(Integer price, String name,String type) { + this.price = price; + this.name = name; + this.type=type; + } + + public Integer getPrice() { + return price; + } + + public void setPrice(Integer price) { + this.price = price; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public static InsuranceEnum getEnum(Integer value) { + for(InsuranceEnum v : values()) + if(v.price==value) return v; + throw new IllegalArgumentException(); + } + +} -- libgit2 0.26.0