新增 根据当前年月日生成桩密钥

This commit is contained in:
Lemon
2024-06-21 13:50:19 +08:00
parent 2fb720c527
commit 55ae000f3d
2 changed files with 39 additions and 3 deletions

View File

@@ -233,4 +233,21 @@ public class PileBasicInfoController extends BaseController {
}
/**
* 根据当前日期生成桩密钥
* @return
*/
@GetMapping("/getPileSecretStr")
public RestApiResponse<?> getPileSecretStr() {
RestApiResponse<?> response = null;
try {
String result = pileService.generatePileSecret();
response = new RestApiResponse<>(result);
}catch (Exception e) {
logger.error("生成桩密钥 error", e);
response = new RestApiResponse<>(e);
}
logger.info("生成桩密钥 result:{}", response);
return response;
}
}