SmFeign.java
1.73 KB
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 com.sincere.weigeng.feign;
import com.sincere.common.dto.smartCampus.SchoolDto;
import com.sincere.common.dto.smartCampus.StudentCardDto;
import com.sincere.common.dto.smartCampus.UpdateCardDto;
import com.sincere.common.dto.smartCampus.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author chen
* @version 1.0
* @date 2019/11/12 0012 11:08
*/
@FeignClient("smartCampusSearch")
public interface SmFeign {
@RequestMapping(value = "/sm/wg/updateLinkTime",method = RequestMethod.GET)
int updateLinkTime(@RequestParam("sno") String sno);
@RequestMapping(value = "/sm/wg/selectOutOrderId",method = RequestMethod.GET)
String selectOutOrderId(@RequestParam("type") int type, @RequestParam("insideOrderId") int insideOrderId);
@RequestMapping(value = "/sm/wg/checkLeave",method = RequestMethod.GET)
String checkLeave(@RequestParam("cardNo") String cardNo);
@RequestMapping(value = "/sm/wg/selectSchoolBySchoolId",method = RequestMethod.GET)
SchoolDto selectSchoolBySchoolId(@RequestParam("schoolId") int schoolId);
@RequestMapping(value = "/sm/wg/selectUserByCardNum",method = RequestMethod.GET)
UserDto selectUserByCardNum(@RequestParam("cardNum") String cardNum);
@RequestMapping(value = "/sm/wg/selectUpdateCardByUpdateId",method = RequestMethod.GET)
UpdateCardDto selectUpdateCardByUpdateId(@RequestParam("updateId") int updateId);
@RequestMapping(value = "/sm/wg/selectStudentCard",method = RequestMethod.GET)
StudentCardDto selectStudentCard(@RequestParam("cardNum") String cardNum);
}