package com.ruoyi.system.api;
import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

@FeignClient(contextId = "remoteMonthQRCodeConsumeService", value = ServiceNameConstants.SYSTEM_SERVICE)
public interface RemoteMonthQRCodeConsumeService {

    @PostMapping("/front/qrcode/consume")
    public R<String> consume(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);
}
