This commit is contained in:
Guoqs
2024-08-16 10:03:21 +08:00
8 changed files with 107 additions and 48 deletions

View File

@@ -93,6 +93,25 @@ public class ThirdPartyNotificationController extends BaseController {
return result;
}
/**
* 站点功率信息推送
*/
@PostMapping("/notificationStationPowerInfo")
public AjaxResult notificationStationPowerInfo(@RequestBody NotificationDTO dto) {
AjaxResult result;
try {
notificationService.notificationStationPowerInfo(dto);
result = AjaxResult.success();
} catch (BusinessException e) {
logger.error("站点功率信息推送失败", e);
result = AjaxResult.error(e.getMessage());
} catch (Exception e) {
logger.error("站点功率信息推送失败", e);
result = AjaxResult.error();
}
return result;
}
/**
* 站点费率变化推送
*/