package com.red.circle.console.app.service.app.pet;

import com.red.circle.framework.core.asserts.ResponseAssert;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.other.inner.endpoint.pet.PetPoolClient;
import com.red.circle.other.inner.model.cmd.pet.PetFeedingRecordCmd;
import com.red.circle.other.inner.model.dto.pet.PetFeedingRecordDTO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 宠物喂养记录 服务实现类
 * </p>
 *
 * @author pengliang
 * @since 2021-11-29
 */
@Service
@RequiredArgsConstructor
public class SysPetFeedingRecordServiceImpl implements SysPetFeedingRecordService {

  private final PetPoolClient petPoolClient;

  @Override
  public PageResult<PetFeedingRecordDTO> page(PetFeedingRecordCmd cmd) {
    return ResponseAssert.requiredSuccess(petPoolClient.feedingPage(cmd));
  }

}
