package com.red.circle.other.inner.endpoint.sys.api;

import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.sys.GiftPackQryCmd;
import com.red.circle.other.inner.model.dto.sys.SysGiftPackDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zongpubin on 2023/11/1
 */
public interface SysGiftPackClientApi {

  String API_PREFIX = "/sys/gift-pack";

  @PostMapping("/getGiftPackInfo")
  ResultResponse<PageResult<SysGiftPackDTO>> getGiftPackInfo(@RequestBody GiftPackQryCmd query);

  @PostMapping("/addGiftPack")
  ResultResponse<Void> addGiftPack(@RequestBody SysGiftPackDTO sysGiftPackDTO);

  @PostMapping("/updateGiftPack")
  ResultResponse<Void> updateGiftPack(@RequestBody SysGiftPackDTO sysGiftPackDTO);

  @GetMapping("/deleteGiftPack")
  ResultResponse<Void> deleteGiftPack(@RequestParam("id") Long id);
}
