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


import com.red.circle.console.app.service.app.pet.SysPetFeedingRecordService;
import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.web.controller.BaseController;
import com.red.circle.other.inner.model.cmd.pet.PetAddCmd;
import com.red.circle.other.inner.model.cmd.pet.PetFeedingRecordCmd;
import com.red.circle.other.inner.model.cmd.pet.PetPoolCmd;
import com.red.circle.other.inner.model.dto.pet.PetFeedingRecordDTO;
import com.red.circle.other.inner.model.dto.pet.PetPoolPageDTO;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * 宠物池 前端控制器
 *
 * @author xiaofei
 * @since 2024-04-11
 */
@RestController
@RequestMapping("/pet_pool")
@AllArgsConstructor
public class PetPoolRestController extends BaseController {

  //private final PetPoolService petPoolService;
  private final SysPetFeedingRecordService petFeedingRecordService;

  /**
   * 分页列表.
   */
  @GetMapping("/page")
  public PageResult<PetPoolPageDTO> page(PetPoolCmd cmd) {
    return null;
  }

  /**
   * 添加宠物配置信息-存在修改.
   */
  @PostMapping("/add")
  public void addPet(@RequestBody @Validated PetAddCmd cmd) {

  }

  /**
   * 上下架宠物.
   */
  @GetMapping("/off_shelf")
  public void offShelf(Long id, Boolean status) {

  }

  /**
   * 喂养记录.
   */
  @GetMapping("/feeding/page")
  public PageResult<PetFeedingRecordDTO> page(PetFeedingRecordCmd cmd) {
    return petFeedingRecordService.page(cmd);
  }

}
