puzhibing
2023-11-25 53e7558400dcacecdce70e39ebfe1727740f9296
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.dsh.course.feignclient.account;
 
import com.dsh.course.feignclient.account.model.Student;
import com.dsh.course.feignclient.account.model.TStudent;
import io.swagger.models.auth.In;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
 
import java.util.List;
 
/**
 * @author zhibing.pu
 * @date 2023/7/4 23:38
 */
@FeignClient("mb-cloud-account")
public interface StudentClient {
 
 
    /**
     * 获取默认学员
     *
     * @param appUserId
     * @return
     */
    @PostMapping("/student/queryDefaultStudent")
    Student queryDefaultStudent(Integer appUserId);
 
 
    /**
     * 根据id获取学员数据
     *
     * @param id
     * @return
     */
    @PostMapping("/student/queryStudentById")
    Student queryStudentById(Integer id);
 
 
    /**
     * 根据名称模糊搜索数据
     *
     * @param name
     * @return
     */
    @PostMapping("/student/queryStudentListByName")
    List<Student> queryStudentListByName(String name);
 
    /**
     * 根据名称模糊搜索学员
     *
     * @param name
     * @return
     */
    @PostMapping("/student/queryTStudentListByName")
    List<TStudent> queryTStudentListByName(@RequestBody String name);
 
 
}