| | |
| | | import cn.huge.module.ctuser.dto.CtAccountLoginDTO; |
| | | import cn.huge.module.ctuser.dto.CtCipherDTO; |
| | | import cn.huge.module.ctuser.service.CtAccountService; |
| | | import cn.huge.module.sys.dto.GridTokenBaseDTO; |
| | | import cn.huge.module.utils.JwtUtils; |
| | | import com.google.common.collect.Maps; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 微服务调用-数据迁移-批量新增 |
| | | * @url {ctx}/api/web/ctAccount/saveCtAccountList |
| | | * @param targetCtAccountList 实体对象 |
| | | * web端-网格系统单点登录 |
| | | * @url {ctx}/api/web/ctAccount/gridLogin |
| | | * @param gridTokenBaseDTO 网格系统token |
| | | * @return Object |
| | | */ |
| | | @PostMapping("/saveCtAccountList") |
| | | public Object saveCtAccountList(@RequestBody List<CtAccount> targetCtAccountList) { |
| | | @PostMapping(value = "gridLogin") |
| | | public Object gridLogin(@RequestBody GridTokenBaseDTO gridTokenBaseDTO) { |
| | | try { |
| | | service.saveBatch(targetCtAccountList,1000); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | ReturnBO returnBO = service.webGridLogin(gridTokenBaseDTO); |
| | | return returnBO; |
| | | } catch (Exception e) { |
| | | log.info(e.getMessage(), e); |
| | | return ReturnFailUtils.getRepInfo(); |
| | | return ReturnFailUtils.getRepInfo(e.getMessage()); |
| | | } |
| | | } |
| | | |