package com.sptg.permissions.api.feigns;

import com.sptg.permissions.api.entity.SmsTemplate;
import com.sptg.permissions.api.feigns.fallback.SmsTemplateFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author zwx
 * @create 2020/11/2 15:42
 */
@FeignClient(name = "smart-house-permissions",fallbackFactory = SmsTemplateFallbackFactory.class)
public interface SmsTemplateFeign {

    @PostMapping(value = "/smsTemplate/getByCode/{code}")
    public SmsTemplate getByCode(@PathVariable(value = "code") String code);
}
