package com.its.op.controller.database.mybatis; import com.its.op.controller.AbstractDatabaseController; import com.its.op.model.vo.database.TbIfscVo; import com.its.op.service.database.impl.TbIfscServiceImpl; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import javax.servlet.http.HttpServletRequest; @Slf4j //@RestController @RequestMapping("/api-mybatis/database/tb-ifsc") @Api(tags = "09.기초데이터관리-03.서비스링크", description="서비스링크") public class TbIfscControllerMybatis extends AbstractDatabaseController { private final TbIfscServiceImpl service; public TbIfscControllerMybatis(TbIfscServiceImpl service) { super(service); this.service = service; } @ApiOperation(value = "이름변경(TB_IFSC)", response = TbIfscVo.class) @PutMapping(value = "/name/", produces = {"application/json; charset=utf8"}) public int updateNameById(@RequestBody TbIfscVo obj, HttpServletRequest request) { return this.service.updateNameById(obj); } }