| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ard.route.domain.ArdRouteFile; |
| | | import com.ard.route.domain.route.ArdRouteFile; |
| | | import com.ard.route.service.IArdRouteFileService; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Api(tags = "文件") |
| | | @RestController |
| | | @RequestMapping("/file") |
| | | @RequestMapping("/route/file") |
| | | public class ArdRouteFileController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | @Log(title = "文件", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdRouteFile ardRouteFile) { |
| | | ardRouteFile.setCreateBy(getUsername()); |
| | | return toAjax(ardRouteFileService.insertArdRouteFile(ardRouteFile)); |
| | | } |
| | | |
| | |
| | | @Log(title = "文件", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdRouteFile ardRouteFile) { |
| | | ardRouteFile.setUpdateBy(getUsername()); |
| | | return toAjax(ardRouteFileService.updateArdRouteFile(ardRouteFile)); |
| | | } |
| | | |