| | |
| | | package com.oying.modules.pc.store.domain.enums; |
| | | |
| | | import lombok.Getter; |
| | | |
| | | @Getter |
| | | public enum StoreStatusEnum { |
| | | |
| | | creating(1000, "筹备中"), |
| | | reviewing(2000, "审核中"), |
| | | business_open(3000, ""), |
| | | business_paused(3001, ""), |
| | | business_banned(3002, ""), |
| | | business_suspended(3003, ""), |
| | | closed(1001, ""), |
| | | deleted(1002, ""); |
| | | DRAFT(1000, "创建中"), |
| | | PENDING(1001, "待审核"), |
| | | UNDER_REVIEW(1002, "审核中"), |
| | | REJECTED(1003, "拒绝"), |
| | | APPROVED(1004, "同意"), |
| | | COMING_SOON(2100, "即将开业"), |
| | | OPEN(2101, "营业中"), |
| | | CLOSED(2102, "停止营业"); |
| | | |
| | | private final int value; |
| | | private final Integer value; |
| | | private final String reasonPhrase; |
| | | |
| | | private StoreStatusEnum(int value, String reasonPhrase) { |
| | | StoreStatusEnum(Integer value, String reasonPhrase) { |
| | | this.value = value; |
| | | this.reasonPhrase = reasonPhrase; |
| | | } |
| | | |
| | | public static StoreStatusEnum get(Integer code) { |
| | | for (StoreStatusEnum value : values()) { |
| | | if (value.value.equals(code)) { |
| | | return value; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |