| | |
| | | package com.doumee.api.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.Labels; |
| | | import com.doumee.service.business.LabelsService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | return ApiResponse.success(labelsService.findPage(pageWrap)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation("列表查询") |
| | | @PostMapping("/list") |
| | | public ApiResponse<List<Labels>> list (@RequestBody Labels labels) { |
| | | return ApiResponse.success(labelsService.findList(labels)); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation("导出Excel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:labels:exportExcel") |