package com.zd.system.api.smartlock;

import com.zd.common.core.constant.ServiceNameConstants;
import com.zd.common.core.domain.R;
import com.zd.system.api.speak.factory.RemoteSpeakFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;



/***
 *
 * 智能锁远程调用
 */
@FeignClient(contextId = "remoteSmartlockService",value = ServiceNameConstants.SMARTLOCK_SERVICE,fallbackFactory = RemoteSpeakFallbackFactory.class)
public interface RemoteSmartlockService {

    @GetMapping(value = "/approval/sysMsgApprova")
    public R sysMsgApprova(@RequestParam(value = "phone", required = true) String phone,
                        @RequestParam(value = "content", required = true) String content,
                        @RequestParam(value = "lockApplyId",required = true) Long lockApplyId);
}
