| | |
| | | package com.java110.core.smo.user; |
| | | |
| | | import com.java110.dto.UserDto; |
| | | import org.springframework.cloud.netflix.feign.FeignClient; |
| | | import com.java110.core.feign.FeignConfiguration; |
| | | import com.java110.dto.user.UserDto; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | |
| | | /** |
| | | * 用户服务接口类(供服务间调用) |
| | | */ |
| | | @FeignClient("user-service") |
| | | @FeignClient(name = "user-service", configuration = {FeignConfiguration.class}) |
| | | @RequestMapping("/userApi") |
| | | public interface IUserInnerServiceSMO { |
| | | |
| | |
| | | */ |
| | | @RequestMapping(value = "/getUserInfo", method = RequestMethod.GET) |
| | | List<UserDto> getUserInfo(@RequestParam("userIds") String[] userIds); |
| | | |
| | | |
| | | /** |
| | | * 查询员工总数 |
| | | * |
| | | * @param userDto 用户ID |
| | | * 支持 多个查询 |
| | | * @return 用户封装信息 |
| | | */ |
| | | @RequestMapping(value = "/getStaffCount", method = RequestMethod.POST) |
| | | int getStaffCount(@RequestBody UserDto userDto); |
| | | |
| | | |
| | | /** |
| | | * 查询员工信息 |
| | | * |
| | | * @param userDto 用户ID |
| | | * 支持 多个查询 |
| | | * @return 用户封装信息 |
| | | */ |
| | | @RequestMapping(value = "/getStaffs", method = RequestMethod.POST) |
| | | List<UserDto> getStaffs(@RequestBody UserDto userDto); |
| | | |
| | | |
| | | /** |
| | | * 查询用户总数 |
| | | * |
| | | * @param userDto 用户ID |
| | | * 支持 多个查询 |
| | | * @return 用户封装信息 |
| | | */ |
| | | @RequestMapping(value = "/getUserCount", method = RequestMethod.POST) |
| | | int getUserCount(@RequestBody UserDto userDto); |
| | | |
| | | |
| | | /** |
| | | * 查询员工信息 |
| | | * |
| | | * @param userDto 用户ID |
| | | * 支持 多个查询 |
| | | * @return 用户封装信息 |
| | | */ |
| | | @RequestMapping(value = "/getUsers", method = RequestMethod.POST) |
| | | List<UserDto> getUsers(@RequestBody UserDto userDto); |
| | | |
| | | @RequestMapping(value = "/getUserHasPwd", method = RequestMethod.POST) |
| | | List<UserDto> getUserHasPwd(@RequestBody UserDto userDto); |
| | | } |