| | |
| | | import com.moon.server.helper.WebHelper; |
| | | import com.moon.server.service.all.PermsService; |
| | | import com.moon.server.service.data.PublishService; |
| | | import com.moon.server.service.data.ShuJianService; |
| | | import com.moon.server.service.sys.TokenService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | @Resource |
| | | PermsService permsService; |
| | | |
| | | @Resource |
| | | ShuJianService shuJianService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "分页查询元数据") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "分页查询数简的颜色表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "int", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "int", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectColorTables") |
| | | public void selectColorTables(int pageSize, int pageIndex, HttpServletRequest req, HttpServletResponse res) { |
| | | pageIndex = Math.max(pageIndex, 1); |
| | | pageSize = Math.max(pageSize, 5); |
| | | |
| | | shuJianService.selectColorTables(pageSize, pageIndex, req, res); |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入发布数据") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PubEntity", paramType = "body") |