Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐少华
midjourney-proxy
Commits
7ef6b679
Commit
7ef6b679
authored
Aug 19, 2021
by
吴博
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '3.x' of
ssh://begitlab.chubanyun.me:12122/rays/pcloud-common-parent
into 3.x
parents
61bff431
5e05a3bd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
7 deletions
+23
-7
pom.xml
pcloud-common-core/pom.xml
+12
-1
DataSourceConfig.java
...a/com/pcloud/common/core/datasource/DataSourceConfig.java
+4
-0
AppProductTypeEnum.java
...java/com/pcloud/common/core/enums/AppProductTypeEnum.java
+2
-1
ResourceUtils.java
.../src/main/java/com/pcloud/common/utils/ResourceUtils.java
+5
-5
No files found.
pcloud-common-core/pom.xml
View file @
7ef6b679
...
...
@@ -15,7 +15,7 @@
<name>
pcloud-common-core
</name>
<properties>
<universe-error-alarm.version>
3.0.1-SNAPSHOT
</universe-error-alarm.version>
</properties>
<dependencies>
...
...
@@ -50,6 +50,17 @@
<artifactId>
jackson-mapper-asl
</artifactId>
</dependency>
<!-- Jackson End -->
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-sleuth
</artifactId>
</dependency>
<dependency>
<groupId>
com.pcloud.universe
</groupId>
<artifactId>
universe-error-alarm
</artifactId>
<version>
${universe-error-alarm.version}
</version>
</dependency>
</dependencies>
</project>
pcloud-common-core/src/main/java/com/pcloud/common/core/datasource/DataSourceConfig.java
View file @
7ef6b679
...
...
@@ -41,6 +41,10 @@ public class DataSourceConfig {
public
static
final
String
SESSION_FACTORY_NAME
=
"sqlSessionFactory"
;
public
static
final
String
SESSION_TEMPLATE_NAME
=
"sqlSessionTemplate"
;
static
{
System
.
setProperty
(
"druid.mysql.usePingMethod"
,
"false"
);
}
private
String
url
;
private
String
type
;
...
...
pcloud-common-core/src/main/java/com/pcloud/common/core/enums/AppProductTypeEnum.java
View file @
7ef6b679
...
...
@@ -108,5 +108,6 @@ public enum AppProductTypeEnum {
AppTypeEnum
.
TEST_PAPER
.
value
,
AppTypeEnum
.
AUDIO
.
value
,
AppTypeEnum
.
VIDEO
.
value
,
AppTypeEnum
.
MATCH_LISTEN
.
value
,
AppTypeEnum
.
PBSTORY
.
value
,
AppTypeEnum
.
WORD_DICTATION
.
value
,
AppTypeEnum
.
ENGLISH_WALKMAN
.
value
,
AppTypeEnum
.
ARTICLE_READING
.
value
,
AppTypeEnum
.
ORAL_EVALUATION
.
value
,
AppTypeEnum
.
IMAGE
.
value
,
AppTypeEnum
.
STROKE_ORDER
.
value
,
AppTypeEnum
.
SUBJECTNOTE
.
value
,
AppTypeEnum
.
ZSCORE
.
value
,
AppTypeEnum
.
RECITE_WORD
.
value
};
AppTypeEnum
.
STROKE_ORDER
.
value
,
AppTypeEnum
.
SUBJECTNOTE
.
value
,
AppTypeEnum
.
ZSCORE
.
value
,
AppTypeEnum
.
RECITE_WORD
.
value
,
AppTypeEnum
.
ARTICLE
.
value
};
}
pcloud-common/src/main/java/com/pcloud/common/utils/ResourceUtils.java
View file @
7ef6b679
...
...
@@ -14,8 +14,8 @@ import java.util.ResourceBundle;
* @创建时间:2016年3月10日,上午11:46:33
* @版本:1.0
*/
public
class
ResourceUtils
{
private
ResourceBundle
resourceBundle
;
class
ResourceUtils
{
private
ResourceBundle
resourceBundle
;
private
ResourceUtils
(
String
resource
)
{
resourceBundle
=
ResourceBundle
.
getBundle
(
resource
);
...
...
@@ -26,7 +26,7 @@ private ResourceBundle resourceBundle;
* @param resource 资源
* @return 解析
*/
public
static
ResourceUtils
getResource
(
String
resource
)
{
static
ResourceUtils
getResource
(
String
resource
)
{
return
new
ResourceUtils
(
resource
);
}
...
...
@@ -36,7 +36,7 @@ private ResourceBundle resourceBundle;
* @param args value中参数序列,参数:{0},{1}...,{n}
* @return
*/
public
String
getValue
(
String
key
,
Object
...
args
)
{
String
getValue
(
String
key
,
Object
...
args
)
{
String
temp
=
resourceBundle
.
getString
(
key
);
return
MessageFormat
.
format
(
temp
,
args
);
}
...
...
@@ -45,7 +45,7 @@ private ResourceBundle resourceBundle;
* 获取所有资源的Map表示
* @return 资源Map
*/
public
Map
<
String
,
String
>
getMap
()
{
Map
<
String
,
String
>
getMap
()
{
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
for
(
String
key:
resourceBundle
.
keySet
())
{
map
.
put
(
key
,
resourceBundle
.
getString
(
key
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment