package com.red.circle.other.app.dto.clientobject.user.relation.cp;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import com.red.circle.other.inner.model.dto.user.UserProfileDTO;
import com.red.circle.other.inner.enums.user.UserCpLevelEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * cp用户资料
 *
 * @author pengliang on 2021/6/30
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CpUserProfileCO extends ClientObject {

  /**
   * 用户资料.
   */
  private UserProfileDTO userProfile;

  /**
   * 组建天数.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long days;

  /**
   * 开始组件的日期
   */
  private String firstDay;

  /**
   * 用户CP等级.
   */
  private UserCpLevelEnum level;


}
