"...com/ruzhoukj/git@gitlab.ruzhoukj.com:wujipeng/ops.git" did not exist on "55efc4237eb336436ac97450e24f9f3fdd3d46d2"
Commit 251fe04c authored by wujipeng's avatar wujipeng
Browse files

元数据新增编辑

parent 80c9f00c
package com.ruzhoukj.integration.controller;
import com.ruzhoukj.integration.pojo.dto.MetaDataDTO;
import com.ruzhoukj.integration.pojo.vo.MetaDataVO;
import com.ruzhoukj.integration.result.Result;
import com.ruzhoukj.integration.service.MetaDataService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
......@@ -43,5 +41,11 @@ public class MetaDataController {
return Result.success(metaDataService.detail(id));
}
@ApiOperation("新增编辑")
@PostMapping("/saveOrUpdate")
public Result<Boolean> saveOrUpdate(@RequestBody MetaDataDTO metaDataDTO) {
return Result.success(metaDataService.saveOrUpdate(metaDataDTO));
}
}
......@@ -19,5 +19,4 @@ public interface MetaDataService extends IService<MetaDataEntity> {
List<MetaDataVO> getDownDataById(String id);
MetaDataVO detail(String id);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment