Commit 72ad8d77 by guojuxing

卡券组件:卡券组件列表接口

parent 6e4c4ebe
......@@ -7,6 +7,10 @@ import java.util.Map;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.download.utils.OperationResultUtils;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.web.vo.ShelfCouponVO;
import com.gic.marketing.api.service.coupon.CouponShelfApiService;
import org.apache.commons.lang3.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -30,6 +34,8 @@ public class CustomPageController {
@Autowired
private AppletCustomPageApiService appletCustomPageApiService;
@Autowired
private CouponShelfApiService couponShelfApiService;
@RequestMapping("/save-page")
public RestResponse savePage(String param, Integer pageId, Integer saveType, Integer appType, String appId) {
......@@ -75,6 +81,18 @@ public class CustomPageController {
return OperationResultUtils.operationResult(result, "删除装修页面", OperationResultUtils.getOperationObject(result));
}
@RequestMapping("/list-shelf-coupon")
public RestResponse listShelfCoupon(String memberCardId) {
if (StringUtils.isBlank(memberCardId)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "会员卡ID不能为空");
}
if (!StringUtils.isNumeric(memberCardId)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "会员卡ID值非法");
}
return ResultControllerUtils.commonResult(couponShelfApiService
.listShelf(UserDetailUtils.getUserDetail().getEnterpriseId(), Long.parseLong(memberCardId)), ShelfCouponVO.class);
}
/**
* 数据资产类型
* @Title: listDataIcon

......
package com.gic.enterprise.web.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
* 卡券组件,卡券组件计划列表
* @ClassName: ShelfCouponVO

* @Description: 

* @author guojuxing

* @date 2020/3/24 2:59 PM

*/
public class ShelfCouponVO implements Serializable{
private static final long serialVersionUID = 3617935422350069220L;
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long couponShelfId;
/**展架名称*/
private String title;
public Long getCouponShelfId() {
return couponShelfId;
}
public ShelfCouponVO setCouponShelfId(Long couponShelfId) {
this.couponShelfId = couponShelfId;
return this;
}
public String getTitle() {
return title;
}
public ShelfCouponVO setTitle(String title) {
this.title = title;
return this;
}
}
......@@ -111,4 +111,6 @@
<dubbo:reference interface="com.gic.open.api.service.market.MarketUserApiService" id="marketUserApiService" timeout="6000" />
<dubbo:reference interface="com.gic.enterprise.service.ProjectItemApiService" id="projectItemApiService" timeout="6000"/>
<dubbo:reference interface="com.gic.marketing.api.service.coupon.CouponShelfApiService" id="couponShelfApiService" timeout="6000"/>
</beans>
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