Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
546c7be7
Commit
546c7be7
authored
Dec 19, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序二维码生成
parent
9c8a03fd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
25 deletions
+25
-25
CustomChatController.java
...m/gic/enterprise/web/controller/CustomChatController.java
+2
-2
CustomGuideController.java
.../gic/enterprise/web/controller/CustomGuideController.java
+8
-8
CustomStoreController.java
.../gic/enterprise/web/controller/CustomStoreController.java
+6
-6
CustomThemeController.java
.../gic/enterprise/web/controller/CustomThemeController.java
+4
-4
CustomStoreQO.java
...rc/main/java/com/gic/enterprise/web/qo/CustomStoreQO.java
+5
-5
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomChatController.java
View file @
546c7be7
...
...
@@ -32,10 +32,10 @@ public class CustomChatController {
private
AppletCustomPageApiService
appletCustomPageApiService
;
@RequestMapping
(
"get-custom-chat-detail"
)
public
RestResponse
getDetail
(
String
app
i
d
){
public
RestResponse
getDetail
(
String
app
I
d
){
AppletPageQO
qo
=
new
AppletPageQO
();
qo
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
qo
.
setAppId
(
app
i
d
);
qo
.
setAppId
(
app
I
d
);
qo
.
setPageType
(
AppletPageTypeEnum
.
CUSTOMER_SERVICE
.
getCode
());
ServiceResponse
<
Page
<
AppletCustomPageDTO
>>
page
=
this
.
appletCustomPageApiService
.
page
(
qo
);
if
(
page
.
isSuccess
()
&&
page
.
getResult
()
!=
null
){
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomGuideController.java
View file @
546c7be7
...
...
@@ -28,7 +28,7 @@ public class CustomGuideController {
private
CustomGuideApiService
customGuideApiService
;
@RequestMapping
(
"save-custom-guide"
)
public
RestResponse
saveCustomGuide
(
String
param
,
boolean
isNeedNewVersion
,
String
app
i
d
){
public
RestResponse
saveCustomGuide
(
String
param
,
boolean
isNeedNewVersion
,
String
app
I
d
){
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
JSONArray
array
=
JSON
.
parseArray
(
param
);
List
<
CustomGuideDTO
>
list
=
new
ArrayList
<>();
...
...
@@ -45,14 +45,14 @@ public class CustomGuideController {
guideDTO
.
setCustomLinkType
(
json
.
getIntValue
(
"customLinkType"
));
guideDTO
.
setSort
(
json
.
getInteger
(
"sort"
));
guideDTO
.
setStatus
(
json
.
getInteger
(
"status"
));
guideDTO
.
setAppid
(
app
i
d
);
guideDTO
.
setAppid
(
app
I
d
);
this
.
getPath
(
guideDTO
,
list
,
response
.
getResult
());
list
.
add
(
guideDTO
);
}
if
(!
isNeedNewVersion
&&
this
.
isNeedNewVersion
(
list
,
enterpriseId
,
app
i
d
)){
if
(!
isNeedNewVersion
&&
this
.
isNeedNewVersion
(
list
,
enterpriseId
,
app
I
d
)){
return
RestResponse
.
failure
(
ErrorCode
.
ISNEEDNEWVERSION
.
getCode
(),
ErrorCode
.
ISNEEDNEWVERSION
.
getErrorMsg
());
}
ServiceResponse
<
Void
>
serviceResponse
=
this
.
customGuideApiService
.
saveGuide
(
list
,
isNeedNewVersion
,
enterpriseId
,
app
i
d
);
ServiceResponse
<
Void
>
serviceResponse
=
this
.
customGuideApiService
.
saveGuide
(
list
,
isNeedNewVersion
,
enterpriseId
,
app
I
d
);
if
(
serviceResponse
.
isSuccess
()){
return
RestResponse
.
success
();
}
else
{
...
...
@@ -61,8 +61,8 @@ public class CustomGuideController {
}
@RequestMapping
(
"list-custom-guide"
)
public
RestResponse
listCustomGuide
(
String
app
i
d
){
ServiceResponse
<
List
<
CustomGuideDTO
>>
response
=
this
.
customGuideApiService
.
listGuide
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
i
d
);
public
RestResponse
listCustomGuide
(
String
app
I
d
){
ServiceResponse
<
List
<
CustomGuideDTO
>>
response
=
this
.
customGuideApiService
.
listGuide
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
I
d
);
return
RestResponse
.
success
(
response
.
getResult
());
}
...
...
@@ -74,8 +74,8 @@ public class CustomGuideController {
@RequestMapping
(
"get-ext-json"
)
@IgnoreLogin
public
RestResponse
getExtJson
(
Integer
enterpriseId
,
String
app
i
d
){
ServiceResponse
<
Map
<
String
,
Object
>>
extJson
=
this
.
customGuideApiService
.
getExtJson
(
enterpriseId
,
app
i
d
);
public
RestResponse
getExtJson
(
Integer
enterpriseId
,
String
app
I
d
){
ServiceResponse
<
Map
<
String
,
Object
>>
extJson
=
this
.
customGuideApiService
.
getExtJson
(
enterpriseId
,
app
I
d
);
return
RestResponse
.
success
(
extJson
.
getResult
());
}
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomStoreController.java
View file @
546c7be7
...
...
@@ -37,7 +37,7 @@ public class CustomStoreController {
if
(
response
.
isSuccess
()){
CustomStoreDTO
dto
=
new
CustomStoreDTO
();
dto
.
setTitle
(
customStoreQO
.
getTitle
());
dto
.
setAppid
(
customStoreQO
.
getApp
i
d
());
dto
.
setAppid
(
customStoreQO
.
getApp
I
d
());
dto
.
setAppType
(
customStoreQO
.
getAppType
());
dto
.
setCustomStoreId
(
customStoreQO
.
getCustomStoreId
());
dto
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
...
...
@@ -58,12 +58,12 @@ public class CustomStoreController {
}
@RequestMapping
(
"page-custom-store"
)
public
RestResponse
pageCustomStore
(
String
search
,
String
app
i
d
,
PageQO
pageQO
){
if
(
StringUtils
.
isBlank
(
app
i
d
)){
public
RestResponse
pageCustomStore
(
String
search
,
String
app
I
d
,
PageQO
pageQO
){
if
(
StringUtils
.
isBlank
(
app
I
d
)){
return
RestResponse
.
success
();
}
ServiceResponse
<
Page
<
CustomStoreDTO
>>
response
=
this
.
customStoreApiService
.
pageCustomStore
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
search
,
app
i
d
,
pageQO
.
getCurrentPage
(),
pageQO
.
getPageSize
());
search
,
app
I
d
,
pageQO
.
getCurrentPage
(),
pageQO
.
getPageSize
());
return
RestResponse
.
success
(
response
.
getResult
());
}
...
...
@@ -99,8 +99,8 @@ public class CustomStoreController {
}
@RequestMapping
(
"open-custom-store"
)
public
RestResponse
updateCustomStoreStatus
(
Integer
customStoreId
,
String
app
i
d
){
this
.
customStoreApiService
.
openCustomStore
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
i
d
,
customStoreId
);
public
RestResponse
updateCustomStoreStatus
(
Integer
customStoreId
,
String
app
I
d
){
this
.
customStoreApiService
.
openCustomStore
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
I
d
,
customStoreId
);
return
RestResponse
.
success
();
}
}
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomThemeController.java
View file @
546c7be7
...
...
@@ -14,14 +14,14 @@ public class CustomThemeController {
private
CustomThemeApiService
customThemeApiService
;
@RequestMapping
(
"save-theme"
)
public
RestResponse
saveTheme
(
String
app
i
d
,
Integer
theme
,
Integer
type
){
ServiceResponse
<
Integer
>
response
=
this
.
customThemeApiService
.
saveTheme
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
i
d
,
theme
,
type
);
public
RestResponse
saveTheme
(
String
app
I
d
,
Integer
theme
,
Integer
type
){
ServiceResponse
<
Integer
>
response
=
this
.
customThemeApiService
.
saveTheme
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
I
d
,
theme
,
type
);
return
RestResponse
.
success
(
response
.
getResult
());
}
@RequestMapping
(
"get-theme"
)
public
RestResponse
getTheme
(
String
app
i
d
){
ServiceResponse
<
Integer
>
theme
=
this
.
customThemeApiService
.
getTheme
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
i
d
);
public
RestResponse
getTheme
(
String
app
I
d
){
ServiceResponse
<
Integer
>
theme
=
this
.
customThemeApiService
.
getTheme
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
app
I
d
);
return
RestResponse
.
success
(
theme
.
getResult
());
}
}
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/qo/CustomStoreQO.java
View file @
546c7be7
...
...
@@ -3,7 +3,7 @@ package com.gic.enterprise.web.qo;
public
class
CustomStoreQO
{
private
Integer
customStoreId
;
private
String
title
;
private
String
app
i
d
;
private
String
app
I
d
;
private
Integer
appType
;
private
Integer
storewidgetId
;
private
String
authSearchParam
;
...
...
@@ -59,12 +59,12 @@ public class CustomStoreQO {
this
.
saveType
=
saveType
;
}
public
String
getApp
i
d
()
{
return
app
i
d
;
public
String
getApp
I
d
()
{
return
app
I
d
;
}
public
void
setApp
id
(
String
appi
d
)
{
this
.
app
id
=
appi
d
;
public
void
setApp
Id
(
String
appI
d
)
{
this
.
app
Id
=
appI
d
;
}
public
Integer
getAppType
()
{
...
...
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