package com.pcloud.book.rightsSetting.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.NonNull;
import org.springframework.cloud.netflix.ribbon.RibbonHttpRequest;

/**
 * @ClassName com.pcloud.book.rightsSetting.entity.RightsSettingNow
 * @Author 吴博
 * @Description 即享权益
 * @Date 2020/4/22 17:07
 * @Version 1.0
 **/
@Data
public class RightsSettingNow {

  private Long id;
  /**
   * 权益id
   */
  private Long rightsSettingId;
  /**
   * 权益分类
   */
  private Long rightsClassifyId;
  /**
   * 权益描述
   */
  private String rightsSettingDesc;
  /**
   * 创建时间
   */
  @JsonFormat(
      pattern = "yyyy-MM-dd HH:mm:ss",
      timezone = "GMT+8"
  )
  private Date createTime;

  /**
   * 权益标题
   */
  private String rightsSettingTitle;

  /**
   * 列表
   */
  private List<RightsSettingItem> rightsSettingItemList;

  @ApiModelProperty("除配套资料权益以外的五个")
  private List<RightsSettingTitle> rightsSettingTitles;

  @ApiModelProperty("权益配套资料分组集合")
  private List<RightsItemGroup> rightsItemGroups;

  @NotNull
  @ApiModelProperty("配套资料权益")
  private RightsSettingTitle servesTitle;


  private Boolean onlineCourseOpen;

  /**
   * 排序后的settingTitle集合
   */
  @ApiModelProperty("排序后的settingTitle集合")
  private List<RightsSettingTitle> newRightsSettingTitles;
}