刘光辉
10 小时以前 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
41
42
package jnpf.message;
 
import jnpf.message.entity.UserDeviceEntity;
import jnpf.message.fallback.UserDeviceApiFallback;
import jnpf.utils.FeignName;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
 
/**
 * 调用发送配置Api
 *
 * @author JNPF开发平台组
 * @version V3.1.0
 * @copyright 引迈信息技术有限公司(https://www.jnpfsoft.com)
 * @date 2021-03-24
 */
@FeignClient(name = FeignName.MESSAGE_SERVER_NAME, fallback = UserDeviceApiFallback.class, path = "/UserDevice")
public interface UserDeviceApi {
 
 
    /**
     * 通过Id获取用户信息
     *
     * @param id 主键值
     * @return
     */
    @GetMapping("/getInfoByClientId/{id}")
    UserDeviceEntity getInfoByClientId(@RequestParam("id") String id);
 
    @PostMapping("/update/{id}")
    boolean update(@RequestParam("id") String id, @RequestBody UserDeviceEntity userDeviceEntity);
 
 
    @PostMapping("/create")
    boolean create(@RequestBody UserDeviceEntity userDeviceEntity);
 
    @PostMapping("/delete")
    void delete(@RequestBody UserDeviceEntity userDeviceEntity);
}