package cn.sikey.hmd.api.hmd;

import cn.sikey.framework.common.pojo.CommonResult;
import cn.sikey.hmd.api.hmd.vo.plans.PlansRespVO;
import cn.sikey.hmd.enums.ApiConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: qin
 * @Date: 2025/4/25
 * @Description: 套餐
 */
@FeignClient(name = ApiConstants.NAME)
public interface PlansApi {
    String PREFIX = ApiConstants.PREFIX;

    @GetMapping(PREFIX + "/queryPlansDO")
    CommonResult<PlansRespVO> queryPlansDO(@RequestParam int validity);

    @GetMapping(PREFIX + "/queryPlansDOById")
    CommonResult<PlansRespVO> queryPlansDOById(@RequestParam Long id);
}
