1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package com.boman.system.api;
- import com.boman.domain.SysUser;
- import org.springframework.cloud.openfeign.FeignClient;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.PathVariable;
- import com.boman.domain.constant.ServiceNameConstants;
- import com.boman.domain.dto.R;
- import com.boman.system.api.factory.RemoteUserFallbackFactory;
- import com.boman.system.api.model.LoginUser;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import java.util.List;
- /**
- * 用户服务
- *
- * @author ruoyi
- */
- @FeignClient(contextId = "remoteUserService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
- public interface RemoteUserService
- {
- /**
- * 通过用户名查询用户信息
- *
- * @param username 用户名
- * @return 结果
- */
- @GetMapping(value = "/user/info/{username}")
- public R<LoginUser> getUserInfo(@PathVariable("username") String username);
- /**
- * 部门下所有人
- *
- * @param deptIdList deptIdList
- * @return 结果
- */
- @PostMapping("/user/listByDeptId")
- List<SysUser> listByDeptId(@RequestBody List<Long> deptIdList);
- }
|