| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ard.data.domain.ArdModelManagement; |
| | | import com.ard.data.service.IArdModelManagementService; |
| | | import com.ard.system.domain.data.ArdModelManagement; |
| | | import com.ard.system.service.data.IArdModelManagementService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | */ |
| | | @Api(tags = "模型管理接口") |
| | | @RestController |
| | | @RequestMapping("/data/management") |
| | | @RequestMapping("/data/model") |
| | | public class ArdModelManagementController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | * 查询模型管理列表 |
| | | */ |
| | | @ApiOperation("查询模型管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:list')") |
| | | @PreAuthorize("@ss.hasPermi('system:model:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArdModelManagement ardModelManagement) { |
| | | startPage(); |
| | |
| | | * 导出模型管理列表 |
| | | */ |
| | | @ApiOperation("导出模型管理列表") |
| | | @PreAuthorize("@ss.hasPermi('system:management:export')") |
| | | @PreAuthorize("@ss.hasPermi('system:model:export')") |
| | | @Log(title = "模型管理", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArdModelManagement ardModelManagement) { |
| | |
| | | * 获取模型管理详细信息 |
| | | */ |
| | | @ApiOperation("获取模型管理详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:management:query')") |
| | | @PreAuthorize("@ss.hasPermi('system:model:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") String id) { |
| | | return success(ardModelManagementService.selectArdModelManagementById(id)); |
| | |
| | | * 新增模型管理 |
| | | */ |
| | | @ApiOperation("新增模型管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:add')") |
| | | @PreAuthorize("@ss.hasPermi('system:model:add')") |
| | | @Log(title = "模型管理", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody ArdModelManagement ardModelManagement) { |
| | |
| | | * 修改模型管理 |
| | | */ |
| | | @ApiOperation("修改模型管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:edit')") |
| | | @PreAuthorize("@ss.hasPermi('system:model:edit')") |
| | | @Log(title = "模型管理", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody ArdModelManagement ardModelManagement) { |
| | |
| | | * 删除模型管理 |
| | | */ |
| | | @ApiOperation("删除模型管理") |
| | | @PreAuthorize("@ss.hasPermi('system:management:remove')") |
| | | @PreAuthorize("@ss.hasPermi('system:model:remove')") |
| | | @Log(title = "模型管理", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable String[] ids) { |