12345678910111213141516171819202122232425262728293031323334353637 |
- package cn.cslg.pas.controller;
- import cn.cslg.pas.common.core.base.Constants;
- import cn.cslg.pas.common.dto.es.AddPatentLabelDTO;
- import cn.cslg.pas.common.utils.Response;
- import cn.cslg.pas.service.PatentLabelService;
- import io.swagger.v3.oas.annotations.Operation;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.beans.factory.annotation.Autowired;
- 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;
- /**
- * 专利标签管理
- */
- @Slf4j
- @RequestMapping(Constants.API_XiaoSHI + "/patentLabel")
- @RestController
- public class PatentLabelController {
- @Autowired
- private PatentLabelService patentLabelService;
- @Operation(summary = "添加标签接口")
- @PostMapping("/addPatentLabel")
- public Response addPatentLabel(@RequestBody AddPatentLabelDTO addPatentLabelDTO) {
- String id = null;
- try {
- id = patentLabelService.addPatentLabel(addPatentLabelDTO);
- } catch (Exception e) {
- }
- return Response.success(id);
- }
- }
|