| | |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | public R<UserInfo> userInfo(String tenantId, String account, String userType) { |
| | | return R.data(service.userInfo(tenantId, account, UserEnum.of(userType))); |
| | | } |
| | | @Override |
| | | @GetMapping(USER_ALL) |
| | | public R<List<User>> selectAllUser() { |
| | | return R.data(service.selectAllUser()); |
| | | } |
| | | |
| | | @Override |
| | | @PostMapping(USER_AUTH_INFO) |
| | |
| | | return R.data(service.updateUser(user)); |
| | | } |
| | | |
| | | @Override |
| | | @PostMapping(UPDATE_STATUS_BY_ACCOUNT) |
| | | public R<Boolean> updateStatusByAccount(@RequestParam String accounts,@RequestParam String status) { |
| | | return R.data(service.updateStatusByAccount(accounts,status)); |
| | | } |
| | | |
| | | @Override |
| | | @PostMapping(UPDATE_USER_BYACCOUNT) |
| | | public R<Boolean> updateUserByAccount(String oldAccount, String newAccount) { |
| | | return R.data(service.updateByAccount(oldAccount,newAccount)); |
| | | } |
| | | |
| | | @Override |
| | | @PostMapping(UPDATE_USER_STRATEGY_STATUS) |
| | | public R<Boolean> updateStrategyStatus(@RequestParam List<Long> userIds) { |
| | | return R.data(service.updateByUseStrategyId(userIds)); |
| | | } |
| | | |
| | | } |