package com.macro.mall.portal.domain;

import com.macro.mall.model.SmsCoupon;
import com.macro.mall.model.SmsCouponHistory;
import com.macro.mall.model.SmsCouponProductCategoryRelation;
import com.macro.mall.model.SmsCouponProductRelation;

import java.util.List;

/**
 * 优惠券领取历史详情（包括优惠券信息和关联关系）
 * Created by macro on 2018/8/29.
 */
public class SmsCouponHistoryDetail extends SmsCouponHistory {
    //相关优惠券信息
    private SmsCoupon coupon;
    //优惠券关联商品
    private List<SmsCouponProductRelation> productRelationList;
    //优惠券关联商品分类
    private List<SmsCouponProductCategoryRelation> categoryRelationList;

    public SmsCoupon getCoupon() {
        return coupon;
    }

    public void setCoupon(SmsCoupon coupon) {
        this.coupon = coupon;
    }

    public List<SmsCouponProductRelation> getProductRelationList() {
        return productRelationList;
    }

    public void setProductRelationList(List<SmsCouponProductRelation> productRelationList) {
        this.productRelationList = productRelationList;
    }

    public List<SmsCouponProductCategoryRelation> getCategoryRelationList() {
        return categoryRelationList;
    }

    public void setCategoryRelationList(List<SmsCouponProductCategoryRelation> categoryRelationList) {
        this.categoryRelationList = categoryRelationList;
    }
}

@@ -232,16 +232,108 @@
 elation;
+%0Aimport io.swagger.annotations.ApiModelProperty;%0Aimport lombok.Getter;%0Aimport lombok.Setter;
 %0A%0Aimport
@@ -419,16 +419,32 @@
 29.%0A */%0A
+@Getter%0A@Setter%0A
 public c
@@ -506,17 +506,36 @@
     
-//
+@ApiModelProperty(%22
 %E7%9B%B8%E5%85%B3%E4%BC%98%E6%83%A0%E5%88%B8%E4%BF%A1%E6%81%AF
+%22)
 %0A   
@@ -569,97 +569,36 @@
     
-//%E4%BC%98%E6%83%A0%E5%88%B8%E5%85%B3%E8%81%94%E5%95%86%E5%93%81%0A    private List%3CSmsCouponProductRelation%3E productRelationList;%0A    //
+@ApiModelProperty(%22
 %E4%BC%98%E6%83%A0%E5%88%B8%E5%85%B3%E8%81%94%E5%95%86%E5%93%81
-%E5%88%86%E7%B1%BB
+%22)
 %0A   
@@ -623,32 +623,24 @@
 ouponProduct
-Category
 Relation%3E ca
@@ -641,734 +641,135 @@
 on%3E 
-categoryRelationList;%0A%0A    public SmsCoupon getCoupon() %7B%0A        return coupon;%0A    %7D%0A%0A    public void setCoupon(SmsCoupon coupon) %7B%0A        this.coupon = coupon;%0A    %7D%0A%0A    public List%3CSmsCouponProductRelation%3E getProductRelationList() %7B%0A        return productRelationList;%0A    %7D%0A%0A    public void setProductRelationList(List%3CSmsCouponProductRelation%3E productRelationList) %7B%0A        this.productRelationList = productRelationList;%0A    %7D%0A%0A    public List%3CSmsCouponProductCategoryRelation%3E getCategoryRelationList() %7B%0A        return categoryRelationList;%0A    %7D%0A%0A    public void setCategoryRelationList(List%3CSmsCouponProductCategoryRelation%3E categoryRelationList) %7B%0A        this.categoryRelationList = categoryRelationList;%0A    %7D
+productRelationList;%0A    @ApiModelProperty(%22%E4%BC%98%E6%83%A0%E5%88%B8%E5%85%B3%E8%81%94%E5%95%86%E5%93%81%E5%88%86%E7%B1%BB%22)%0A    private List%3CSmsCouponProductCategoryRelation%3E categoryRelationList;
 %0A%7D%0A

Update SmsCouponHistoryDetail.java