| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.Base64; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | if(user==null){ |
| | | return ResultUtil.error("用户已删除"); |
| | | }else{ |
| | | one.setPassword(user.getDescription()); |
| | | one.setPassword(Base64.getEncoder().encodeToString(user.getDescription().getBytes(StandardCharsets.UTF_8))); |
| | | } |
| | | return new ResultUtil<Object>().setData(one); |
| | | } |