package com.red.circle.common.business.dto.cmd;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.core.dto.CommonCommand;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author pengliang on 2021/1/22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class IdSortCmd extends CommonCommand {

  @NotNull(message = "id required.")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;


  @NotNull(message = "sort required.")
  @JsonSerialize(using = ToStringSerializer.class)
  private Integer sort;

}
