刘光辉
12 小时以前 34981c30a78e8bbd7791131059a9210f9928b62c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package jnpf.message.fallback;
 
import jnpf.exception.DataException;
import jnpf.message.UserDeviceApi;
import jnpf.message.entity.UserDeviceEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;
 
import java.util.List;
 
/**
 * 调用系统消息Api降级处理
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * @date 2021-03-24
 */
@Component
@Slf4j
public class UserDeviceApiFallback implements UserDeviceApi {
 
    @Override
    public UserDeviceEntity getInfoByClientId(String id) {
        return null;
    }
 
    @Override
    public boolean update(String id, UserDeviceEntity userDeviceEntity) {return false; }
 
    @Override
    public boolean create(UserDeviceEntity userDeviceEntity) {return false; }
 
    @Override
    public void delete(UserDeviceEntity userDeviceEntity) {
        log.error("删除失败");
    }
 
}