| | |
| | | import com.ruoyi.system.api.factory.SysUserFallbackFactory; |
| | | import com.ruoyi.system.api.model.*; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.management.relation.Role; |
| | | import java.util.List; |
| | |
| | | R<List<CompanyUserListVo>> getSysUserFromCompanyId(@RequestBody CompanySysUserReq companySysUserReq); |
| | | |
| | | @PostMapping("/user/getSysUser") |
| | | R<SysUser> getSysUser(Long userId); |
| | | R<SysUser> getSysUser(@RequestParam("userId")Long userId); |
| | | |
| | | @PostMapping("/user/updateSysUser") |
| | | R<Boolean> updateSysUser(@RequestBody SysUser sysUser); |
| | |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @GetMapping("/user/queryRoleByUserId/{userId}") |
| | | @PostMapping("/user/queryRoleByUserId/{userId}") |
| | | R<SysRole> queryRoleByUserId(@PathVariable("userId") Long userId); |
| | | |
| | | |
| | |
| | | * @param roleId |
| | | * @return |
| | | */ |
| | | @GetMapping("/user/queryRoleByRoleId/{roleId}") |
| | | @PostMapping("/user/queryRoleByRoleId/{roleId}") |
| | | R<SysRole> queryRoleByRoleId(@PathVariable("roleId") Long roleId); |
| | | |
| | | /** |
| | |
| | | */ |
| | | @PostMapping("/user/queryUserByPhone") |
| | | R<SysUser> queryUserByPhone(@RequestBody String phone); |
| | | |
| | | |
| | | /** |
| | | * 根据账号获取用户数据 |
| | | * @param account |
| | | * @return |
| | | */ |
| | | @PostMapping("/user/queryUserByAccount") |
| | | R<SysUser> queryUserByAccount(@RequestBody String account); |
| | | |
| | | /** |
| | | * 通过账号查询用户 |
| | |
| | | * @param user |
| | | */ |
| | | @PostMapping("/user/addSysUser") |
| | | R addSysUser(SysUser user); |
| | | R<Long> addSysUser(@RequestBody SysUser user); |
| | | |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/user/resetPassword") |
| | | R resetPassword(SysUser user); |
| | | R resetPassword(@RequestBody SysUser user); |
| | | } |