Commit 95955186 by guojuxing

添加获取详情接口

parent f151dd13
...@@ -3,6 +3,7 @@ package com.gic.operation.web.controller; ...@@ -3,6 +3,7 @@ package com.gic.operation.web.controller;
import com.gic.commons.webapi.reponse.RestResponse; import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.service.AppletCustomPageApiService; import com.gic.enterprise.service.AppletCustomPageApiService;
import com.gic.enterprise.utils.ResultControllerUtils; import com.gic.enterprise.utils.ResultControllerUtils;
import com.gic.operation.web.vo.AppletCustomPageVO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
...@@ -36,5 +37,11 @@ public class AppletCustomPageController { ...@@ -36,5 +37,11 @@ public class AppletCustomPageController {
return ResultControllerUtils.commonResult( return ResultControllerUtils.commonResult(
appletCustomPageApiService.saveOrUpdate(param, pageId, enterpriseId, saveType, appType, appId)); appletCustomPageApiService.saveOrUpdate(param, pageId, enterpriseId, saveType, appType, appId));
} }
@RequestMapping("/get-default-page")
public RestResponse getDefaultPage(Integer pageType) {
return ResultControllerUtils.commonResultOne(
appletCustomPageApiService.getDefault(pageType), AppletCustomPageVO.class);
}
} }
package com.gic.operation.web.vo;
import java.io.Serializable;
/**
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/8/2 4:02 PM

*/
public class AppletCustomPageVO implements Serializable{
private static final long serialVersionUID = -385494257098317977L;
/**
*
*/
private Integer pageId;
/**
*
*/
private Integer enterpriseId;
/**
*
*/
private String title;
/**
* 进入条件,0不限,1开卡会员,2认证会员
*/
private Integer entryCondition;
/**
* 快捷导航开关 1:开启 0:关闭 默认开启
*/
private Integer quickGuideSwitch;
/**
* 小程序标题
*/
private String appletTitle;
/**
* 背景颜色 0 灰色 1 白色 ,默认灰色(会员中心页面、积分服务页面、自定义页面、商城装首页 有该设置)2:背景图片(自定义页面有)
*/
private Integer backgroundType;
/**
* 自定义页面有。页面背景是图片的时候有值
*/
private String backgroundImage;
/**
* 背景颜色 灰色 白色 ,默认灰色(会员中心页面、积分服务页面、自定义页面、商城装首页 有该设置)
*/
private String backgroundColor;
/**
* 配置json
*/
private String setting;
/**
* 组件字符串,用于详情接口
*/
private String componentStr;
/**
* 人群筛选器ID(积分服务页面专用
*/
private Long crowdWidgetId;
/**
* 自定义页面专属 导航颜色,#ffffff
*/
private String guideTopColor;
/**
* 自定义页面专属 标题颜色1:黑色 2:白色
*/
private Integer titleColor;
public Integer getPageId() {
return pageId;
}
public AppletCustomPageVO setPageId(Integer pageId) {
this.pageId = pageId;
return this;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public AppletCustomPageVO setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
return this;
}
public String getTitle() {
return title;
}
public AppletCustomPageVO setTitle(String title) {
this.title = title;
return this;
}
public Integer getEntryCondition() {
return entryCondition;
}
public AppletCustomPageVO setEntryCondition(Integer entryCondition) {
this.entryCondition = entryCondition;
return this;
}
public Integer getQuickGuideSwitch() {
return quickGuideSwitch;
}
public AppletCustomPageVO setQuickGuideSwitch(Integer quickGuideSwitch) {
this.quickGuideSwitch = quickGuideSwitch;
return this;
}
public String getAppletTitle() {
return appletTitle;
}
public AppletCustomPageVO setAppletTitle(String appletTitle) {
this.appletTitle = appletTitle;
return this;
}
public Integer getBackgroundType() {
return backgroundType;
}
public AppletCustomPageVO setBackgroundType(Integer backgroundType) {
this.backgroundType = backgroundType;
return this;
}
public String getBackgroundImage() {
return backgroundImage;
}
public AppletCustomPageVO setBackgroundImage(String backgroundImage) {
this.backgroundImage = backgroundImage;
return this;
}
public String getBackgroundColor() {
return backgroundColor;
}
public AppletCustomPageVO setBackgroundColor(String backgroundColor) {
this.backgroundColor = backgroundColor;
return this;
}
public String getSetting() {
return setting;
}
public AppletCustomPageVO setSetting(String setting) {
this.setting = setting;
return this;
}
public String getComponentStr() {
return componentStr;
}
public AppletCustomPageVO setComponentStr(String componentStr) {
this.componentStr = componentStr;
return this;
}
public Long getCrowdWidgetId() {
return crowdWidgetId;
}
public AppletCustomPageVO setCrowdWidgetId(Long crowdWidgetId) {
this.crowdWidgetId = crowdWidgetId;
return this;
}
public String getGuideTopColor() {
return guideTopColor;
}
public AppletCustomPageVO setGuideTopColor(String guideTopColor) {
this.guideTopColor = guideTopColor;
return this;
}
public Integer getTitleColor() {
return titleColor;
}
public AppletCustomPageVO setTitleColor(Integer titleColor) {
this.titleColor = titleColor;
return this;
}
@Override
public String toString() {
return "AppletCustomPageVO{" +
"pageId=" + pageId +
", enterpriseId=" + enterpriseId +
", title='" + title + '\'' +
", entryCondition=" + entryCondition +
", quickGuideSwitch=" + quickGuideSwitch +
", appletTitle='" + appletTitle + '\'' +
", backgroundType=" + backgroundType +
", backgroundImage='" + backgroundImage + '\'' +
", backgroundColor='" + backgroundColor + '\'' +
", setting='" + setting + '\'' +
", componentStr='" + componentStr + '\'' +
", crowdWidgetId=" + crowdWidgetId +
", guideTopColor='" + guideTopColor + '\'' +
", titleColor=" + titleColor +
'}';
}
}
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