| | |
| | | package com.ard.work.service.impl; |
| | | |
| | | import com.ard.common.annotation.DataScope; |
| | | import com.ard.common.utils.uuid.IdUtils; |
| | | import com.ard.work.component.forest.TyClient; |
| | | import com.ard.work.component.netty.TyTcpClientManager; |
| | |
| | | * @return 服务器管理 |
| | | */ |
| | | @Override |
| | | @DataScope(deptAlias = "d", userAlias = "u") |
| | | public List<ArdServerInfo> selectArdServerInfoList(ArdServerInfo ardServerInfo) { |
| | | return ardServerInfoMapper.selectArdServerInfoList(ardServerInfo); |
| | | } |
| | |
| | | return ardServerInfoMapper.updateServerStatus(id,status); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> getServerIdsList() { |
| | | return ardServerInfoMapper.getServerIdsList(); |
| | | } |
| | | |
| | | private String getEncryptStr(ArdServerInfo serverInfo, long timeStamp) { |
| | | String sb = serverInfo.getAccessKeyId() + serverInfo.getAccessKeySecret() + timeStamp; |
| | | return DigestUtils.md5DigestAsHex(sb.getBytes()); |