38 lines
1.1 KiB
Java
38 lines
1.1 KiB
Java
package com.cdzy.operations.controller;
|
|
|
|
import com.cdzy.common.model.response.JsonResult;
|
|
import com.cdzy.operations.model.vo.EbikeBikeBindVo;
|
|
import com.cdzy.operations.service.EbikeBikeInfoService;
|
|
import jakarta.annotation.Resource;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
/**
|
|
* 车辆基本信息 控制层。
|
|
*
|
|
* @author attiya
|
|
* @since 2025-10-17
|
|
*/
|
|
@Validated
|
|
@RestController
|
|
@RequestMapping("/ebikeBikeInfo")
|
|
public class EbikeBikeInfoController {
|
|
|
|
@Resource
|
|
private EbikeBikeInfoService ebikeBikeInfoService;
|
|
|
|
/**
|
|
* 整车绑定
|
|
* @param bindVo 绑定信息
|
|
* @return 绑定结果
|
|
*/
|
|
@PostMapping("bind")
|
|
public JsonResult<?> bind(@Validated @RequestBody EbikeBikeBindVo bindVo) {
|
|
ebikeBikeInfoService.bind(bindVo);
|
|
return JsonResult.success();
|
|
}
|
|
}
|