package com.github.wxiaoqi.security.admin.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author libin
 * @version 1.0
 * @description
 * @data 2020/6/24 10:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MemberLevelRightsDTO {
    private Integer type;
    private MemberRights rights;
    private String name;
    private Integer status;
    private Boolean sysn;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class MemberRights {
        private Integer discount;
        private List<Coupon> coupons;
        private Boolean isFreeShipping;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Coupon{
        private Long id;
        private String name;
    }
}
