package com.ruoyi.projectManagement.controller;
|
|
import com.ruoyi.framework.web.domain.AjaxResult;
|
import com.ruoyi.projectManagement.service.InfoService;
|
import com.ruoyi.projectManagement.vo.SaveInfoVo;
|
import io.swagger.annotations.Api;
|
import lombok.RequiredArgsConstructor;
|
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;
|
|
import javax.validation.Valid;
|
|
/**
|
* @author buhuazhen
|
* @date 2026/3/9
|
* @email 3038525872@qq.com
|
*/
|
@RestController
|
@RequestMapping("/projectManagement/info")
|
@Api(value = "InfoController", tags = "项目管理信息表(项目管理类型)")
|
@RequiredArgsConstructor
|
public class InfoController {
|
|
private final InfoService infoService;
|
|
@PostMapping("/save")
|
public AjaxResult save(@RequestBody @Valid SaveInfoVo saveInfoVo) {
|
infoService.save(saveInfoVo);
|
return AjaxResult.success();
|
}
|
}
|