From ae61f7fcc58fe49fb1e240a140e396d76529bc45 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 21 Jun 2022 09:47:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9C=B0=E7=82=B9=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application.yml | 3 +++ .../io/renren/common/constant/Constant.java | 27 +++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/renren-admin/src/main/resources/application.yml b/renren-admin/src/main/resources/application.yml index c03112e1..425c184e 100644 --- a/renren-admin/src/main/resources/application.yml +++ b/renren-admin/src/main/resources/application.yml @@ -1,3 +1,6 @@ +project: +# 平台部署位置 0:青岛市区 1:青岛西海岸 2:包头 + place: # 大数据部门相关配置 big_date: name: 青岛市大数据发展管理局 diff --git a/renren-common/src/main/java/io/renren/common/constant/Constant.java b/renren-common/src/main/java/io/renren/common/constant/Constant.java index 104bc037..eb0c1beb 100644 --- a/renren-common/src/main/java/io/renren/common/constant/Constant.java +++ b/renren-common/src/main/java/io/renren/common/constant/Constant.java @@ -212,4 +212,31 @@ public interface Constant { return value; } } + + /** + * 项目运行地点 + */ + enum ProjectPlace { + /** + * 青岛市区 + */ + TSINGTAO(0), + /** + * 青岛西海岸 + */ + TSINGTAO_XHA(1), + /** + * 包头 + */ + BAOTOU(2); + private int value; + + ProjectPlace(int value) { + this.value = value; + } + + public int getValue() { + return value; + } + } } \ No newline at end of file