package com.sptg.permissions.api.feigns;


import com.baomidou.mybatisplus.plugins.Page;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.permissions.api.entity.SmsRecords;
import com.sptg.permissions.api.feigns.fallback.SmsFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: SmsFeign
 * package: com.sptg.permissions.api.feigns
 * description: 短信 服务接口
 *
 *
 *
 */
@FeignClient(value = "smart-house-permissions",fallbackFactory = SmsFeignFallbackFactory.class)
public interface SmsFeign {

    @PostMapping(value = "/sms/pagingByCondition")
    ResultBean<Page<SmsRecords>> pagingByCondition(@RequestBody SmsRecords smsRecords);

    @PostMapping(value = "/sms/insert")
    ResultBean<Boolean> insertSms(@RequestBody SmsRecords smsRecords);
}
