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
a08da22b
Commit
a08da22b
authored
Sep 16, 2019
by
阮思源
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加点读书类型
parent
efddde0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
15 deletions
+26
-15
ProductTypeConstant.java
.../com/pcloud/common/core/constant/ProductTypeConstant.java
+6
-1
AppProductTypeEnum.java
...java/com/pcloud/common/core/enums/AppProductTypeEnum.java
+11
-12
AppRouteEnum.java
...n/src/main/java/com/pcloud/common/enums/AppRouteEnum.java
+6
-1
AppTypeEnum.java
...on/src/main/java/com/pcloud/common/enums/AppTypeEnum.java
+3
-1
No files found.
pcloud-common-core/src/main/java/com/pcloud/common/core/constant/ProductTypeConstant.java
View file @
a08da22b
...
...
@@ -337,6 +337,11 @@ public class ProductTypeConstant {
*/
public
static
final
String
BM
=
"BM"
;
/**
* 点读书
*/
public
static
final
String
BOOK_CLICK_APP
=
"BOOK_CLICK_APP"
;
/**
* 热门作品类型
...
...
@@ -366,7 +371,7 @@ public class ProductTypeConstant {
public
static
final
String
[]
APP_PRODUCT
=
{
LOOK
,
LIVE
,
TUTOR
,
GROUP
,
ZSCORE
,
VOTE
,
CLOCK
,
TEST
,
AUDIOAPP
,
ANSWER
,
EF
,
VIDEO_COURSE
,
PRETESTAPP
,
AUDIO_RESOURCE
,
QA_APP
,
EBOOK_APP
,
AUDIO_MAGIC
,
TEACH_RESOURCE_APP
,
COURSE_WARE
,
TEST_PAPER_APP
,
MATCH_LISTEN
,
WORD_DICTATION
,
STROKE_ORDER_APP
,
IMAGE_APP
,
MEMBER_APP
,
ARTICLE_READING
,
ENGLISH_WALKMAN
,
ORAL_EVALUATION
,
PBSTORY
,
PDF_APP
,
WORD_APP
,
SUBJECTNOTE_APP
};
ARTICLE_READING
,
ENGLISH_WALKMAN
,
ORAL_EVALUATION
,
PBSTORY
,
PDF_APP
,
WORD_APP
,
SUBJECTNOTE_APP
,
BOOK_CLICK_APP
};
/**
* 数据平台埋点型作品
...
...
pcloud-common-core/src/main/java/com/pcloud/common/core/enums/AppProductTypeEnum.java
View file @
a08da22b
package
com
.
pcloud
.
common
.
core
.
enums
;
import
com.pcloud.common.core.constant.ProductTypeConstant
;
import
com.pcloud.common.utils.string.StringUtil
;
import
com.pcloud.common.enums.AppTypeEnum
;
import
com.pcloud.common.utils.string.StringUtil
;
/**
* Description 应用作品类型关联枚举 Created by PENG on 2019/3/27.
*/
public
enum
AppProductTypeEnum
{
KK
(
AppTypeEnum
.
KK
.
value
,
ProductTypeConstant
.
LOOK
),
TUTOR
(
AppTypeEnum
.
TUTOR
.
value
,
ProductTypeConstant
.
TUTOR
),
GROUP
(
AppTypeEnum
.
GROUP
.
value
,
ProductTypeConstant
.
GROUP
),
...
...
@@ -37,20 +37,20 @@ public enum AppProductTypeEnum {
PDF
(
AppTypeEnum
.
PDF
.
value
,
ProductTypeConstant
.
PDF_APP
),
RECITE_WORD
(
AppTypeEnum
.
RECITE_WORD
.
value
,
ProductTypeConstant
.
WORD_APP
),
SUBJECTNOTE
(
AppTypeEnum
.
SUBJECTNOTE
.
value
,
ProductTypeConstant
.
SUBJECTNOTE_APP
),
BM
(
AppTypeEnum
.
BM
.
value
,
ProductTypeConstant
.
BM
);
BM
(
AppTypeEnum
.
BM
.
value
,
ProductTypeConstant
.
BM
),
BOOK_CLICK
(
AppTypeEnum
.
BOOK_CLICK
.
value
,
ProductTypeConstant
.
BOOK_CLICK_APP
);
public
final
String
appTypeCode
;
public
final
String
productTypeCode
;
AppProductTypeEnum
(
String
appTypeCode
,
String
productTypeCode
)
{
this
.
appTypeCode
=
appTypeCode
;
this
.
productTypeCode
=
productTypeCode
;
}
/**
* 根据应用类型编码获取作品类型编码
*
* @param appTypeCode 应用类型编码
* @return
*/
...
...
@@ -68,10 +68,9 @@ public enum AppProductTypeEnum {
}
return
null
;
}
/**
* 根据作品类型编码获取应用类型编码
*
* @param productTypeCode 作品类型编码
* @return
*/
...
...
@@ -89,7 +88,7 @@ public enum AppProductTypeEnum {
}
return
null
;
}
/**
* 会员应用可设置会员免费的作品类型
*/
...
...
@@ -97,7 +96,7 @@ public enum AppProductTypeEnum {
ProductTypeConstant
.
VIDEO
,
ProductTypeConstant
.
PRETEST
,
ProductTypeConstant
.
ARTICLE
,
ProductTypeConstant
.
FORMAT
,
ProductTypeConstant
.
ALBUM
,
ProductTypeConstant
.
BOOK
,
ProductTypeConstant
.
EBOOK
,
ProductTypeConstant
.
VIDEO_SCHEDULE
};
/**
* 会员应用可设置会员免费的应用类型
*/
...
...
pcloud-common/src/main/java/com/pcloud/common/enums/AppRouteEnum.java
View file @
a08da22b
...
...
@@ -161,7 +161,12 @@ public enum AppRouteEnum {
/**
* 错题本
*/
SUBJECTNOTE
(
"subject"
,
AppTypeEnum
.
SUBJECTNOTE
.
value
);
SUBJECTNOTE
(
"subject"
,
AppTypeEnum
.
SUBJECTNOTE
.
value
),
/**
* 点读书
*/
BOOK_CLICK
(
"clickread"
,
AppTypeEnum
.
BOOK_CLICK
.
value
);
/**
* 值
...
...
pcloud-common/src/main/java/com/pcloud/common/enums/AppTypeEnum.java
View file @
a08da22b
...
...
@@ -86,7 +86,9 @@ public enum AppTypeEnum {
/**
* add by songx at 2019-5-25 16:52:07
*/
SUBJECTNOTE
(
"SUBJECTNOTE"
,
"错题本"
);
SUBJECTNOTE
(
"SUBJECTNOTE"
,
"错题本"
),
BOOK_CLICK
(
"BOOK_CLICK"
,
"点读书"
);
/**
* 枚举转换
...
...
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