Commit 546c7be7 by 陶光胜

小程序二维码生成

parent 9c8a03fd
......@@ -32,10 +32,10 @@ public class CustomChatController {
private AppletCustomPageApiService appletCustomPageApiService;
@RequestMapping("get-custom-chat-detail")
public RestResponse getDetail(String appid){
public RestResponse getDetail(String appId){
AppletPageQO qo = new AppletPageQO();
qo.setEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
qo.setAppId(appid);
qo.setAppId(appId);
qo.setPageType(AppletPageTypeEnum.CUSTOMER_SERVICE.getCode());
ServiceResponse<Page<AppletCustomPageDTO>> page = this.appletCustomPageApiService.page(qo);
if(page.isSuccess() && page.getResult() != null){
......
......@@ -28,7 +28,7 @@ public class CustomGuideController {
private CustomGuideApiService customGuideApiService;
@RequestMapping("save-custom-guide")
public RestResponse saveCustomGuide(String param, boolean isNeedNewVersion, String appid){
public RestResponse saveCustomGuide(String param, boolean isNeedNewVersion, String appId){
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(appid);
guideDTO.setAppid(appId);
this.getPath(guideDTO, list, response.getResult());
list.add(guideDTO);
}
if(!isNeedNewVersion && this.isNeedNewVersion(list, enterpriseId, appid)){
if(!isNeedNewVersion && this.isNeedNewVersion(list, enterpriseId, appId)){
return RestResponse.failure(ErrorCode.ISNEEDNEWVERSION.getCode(), ErrorCode.ISNEEDNEWVERSION.getErrorMsg());
}
ServiceResponse<Void> serviceResponse = this.customGuideApiService.saveGuide(list, isNeedNewVersion, enterpriseId, appid);
ServiceResponse<Void> serviceResponse = this.customGuideApiService.saveGuide(list, isNeedNewVersion, enterpriseId, appId);
if(serviceResponse.isSuccess()){
return RestResponse.success();
}else {
......@@ -61,8 +61,8 @@ public class CustomGuideController {
}
@RequestMapping("list-custom-guide")
public RestResponse listCustomGuide(String appid){
ServiceResponse<List<CustomGuideDTO>> response = this.customGuideApiService.listGuide(UserDetailUtils.getUserDetail().getEnterpriseId(), appid);
public RestResponse listCustomGuide(String appId){
ServiceResponse<List<CustomGuideDTO>> response = this.customGuideApiService.listGuide(UserDetailUtils.getUserDetail().getEnterpriseId(), appId);
return RestResponse.success(response.getResult());
}
......@@ -74,8 +74,8 @@ public class CustomGuideController {
@RequestMapping("get-ext-json")
@IgnoreLogin
public RestResponse getExtJson(Integer enterpriseId, String appid){
ServiceResponse<Map<String, Object>> extJson = this.customGuideApiService.getExtJson(enterpriseId, appid);
public RestResponse getExtJson(Integer enterpriseId, String appId){
ServiceResponse<Map<String, Object>> extJson = this.customGuideApiService.getExtJson(enterpriseId, appId);
return RestResponse.success(extJson.getResult());
}
......
......@@ -37,7 +37,7 @@ public class CustomStoreController {
if(response.isSuccess()){
CustomStoreDTO dto = new CustomStoreDTO();
dto.setTitle(customStoreQO.getTitle());
dto.setAppid(customStoreQO.getAppid());
dto.setAppid(customStoreQO.getAppId());
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 appid, PageQO pageQO){
if(StringUtils.isBlank(appid)){
public RestResponse pageCustomStore(String search, String appId, PageQO pageQO){
if(StringUtils.isBlank(appId)){
return RestResponse.success();
}
ServiceResponse<Page<CustomStoreDTO>> response = this.customStoreApiService.pageCustomStore(UserDetailUtils.getUserDetail().getEnterpriseId(),
search, appid, pageQO.getCurrentPage(), pageQO.getPageSize());
search, appId, 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 appid){
this.customStoreApiService.openCustomStore(UserDetailUtils.getUserDetail().getEnterpriseId(), appid, customStoreId);
public RestResponse updateCustomStoreStatus(Integer customStoreId, String appId){
this.customStoreApiService.openCustomStore(UserDetailUtils.getUserDetail().getEnterpriseId(), appId, customStoreId);
return RestResponse.success();
}
}
......@@ -14,14 +14,14 @@ public class CustomThemeController {
private CustomThemeApiService customThemeApiService;
@RequestMapping("save-theme")
public RestResponse saveTheme(String appid, Integer theme, Integer type){
ServiceResponse<Integer> response = this.customThemeApiService.saveTheme(UserDetailUtils.getUserDetail().getEnterpriseId(), appid, theme, type);
public RestResponse saveTheme(String appId, Integer theme, Integer type){
ServiceResponse<Integer> response = this.customThemeApiService.saveTheme(UserDetailUtils.getUserDetail().getEnterpriseId(), appId, theme, type);
return RestResponse.success(response.getResult());
}
@RequestMapping("get-theme")
public RestResponse getTheme(String appid){
ServiceResponse<Integer> theme = this.customThemeApiService.getTheme(UserDetailUtils.getUserDetail().getEnterpriseId(), appid);
public RestResponse getTheme(String appId){
ServiceResponse<Integer> theme = this.customThemeApiService.getTheme(UserDetailUtils.getUserDetail().getEnterpriseId(), appId);
return RestResponse.success(theme.getResult());
}
}
......@@ -3,7 +3,7 @@ package com.gic.enterprise.web.qo;
public class CustomStoreQO {
private Integer customStoreId;
private String title;
private String appid;
private String appId;
private Integer appType;
private Integer storewidgetId;
private String authSearchParam;
......@@ -59,12 +59,12 @@ public class CustomStoreQO {
this.saveType = saveType;
}
public String getAppid() {
return appid;
public String getAppId() {
return appId;
}
public void setAppid(String appid) {
this.appid = appid;
public void setAppId(String appId) {
this.appId = appId;
}
public Integer getAppType() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment