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

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.core.dto.AppCommand;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * CP rights config query.
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class CpRightsConfigQueryCmd extends AppCommand {

  /**
   * Relationship type: CP/BROTHER/SISTERS, defaults to CP.
   */
  private String relationType;

  /**
   * Optional relationship user id. If absent, only config can be returned safely.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long cpUserId;
}
