寄点电站数据接入

This commit is contained in:
2026-02-26 09:07:01 +08:00
parent a967f5aa44
commit 36bc9ef2f1
5 changed files with 557 additions and 1 deletions

View File

@ -0,0 +1,32 @@
package com.ho.business.controller;
import com.ho.business.service.ShipEnergyService;
import com.ho.common.tools.annotation.TokenIgnore;
import com.ho.common.tools.constant.ContextConstant;
import com.ho.common.tools.exception.DataResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RequestMapping(ContextConstant.BUSINESS + "shipEnergyStation")
@RestController
@Api(tags = "业务模块-寄点能源电站管理")
public class ShipEnergyController {
@Autowired
ShipEnergyService shipEnergyService;
@PostMapping("add")
@ApiOperation(value = "新增电站接口")
@TokenIgnore
public DataResult add() {
shipEnergyService.addShipEnergyStation();
return DataResult.success();
}
}