1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- package com.miniframe.generate.appcode;
- /**
- * 商标公证状态
- */
- public enum TrademarkApplyStatus {
- apply("apply", "0", "申请提交"),
- applyEnd("applyEnd", "1", "提交完成"),
- aliveCheckSuc("aliveCheckSuc", "2", "活体检测"),
- aliveCheckFail("aliveCheckFail", "3", "活体检测失败"),
- verifySuc("verifySuc", "4", "审核成功"),
- verifyFail("verifyFail", "5", "审核失败"),
- certSuc("certSuc", "6", "已发证");
- // 成员变量
- private String index; // value
- private String name; // key
- private String desc; // 描述
-
- /**
- * 构造方法
- * @param name
- * @param index
- * @param desc
- */
- private TrademarkApplyStatus(String name, String index, String desc) {
- this.name = name;
- this.index = index;
- this.desc = desc;
- }
- /**
- * 通过index获取对象
- *
- * @param index
- * @return
- */
- public static TrademarkApplyStatus getTrademarkApplyStatus(String index) {
- for (TrademarkApplyStatus c : TrademarkApplyStatus.values()) {
- if (c.getIndex().equals(index)) {
- return c;
- }
- }
- return null;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public String getIndex() {
- return index;
- }
- public void setIndex(String index) {
- this.index = index;
- }
- public String getDesc() {
- return desc;
- }
- public void setDesc(String desc) {
- this.desc = desc;
- }
- }
|