From 8093da07320e4a1fbdb1b52103347fa19e2a9521 Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Wed, 8 Sep 2021 11:42:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=85=A5=E4=BA=86=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=A8=A1=E5=9D=97=20,=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BA=86=E6=B5=B7=E6=8A=A5=E5=88=86=E4=BA=AB=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cardbigdata/CardBigdataAppController.java | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/main/java/cn/com/tenlion/systemcard/controller/app/api/cardbigdata/CardBigdataAppController.java diff --git a/src/main/java/cn/com/tenlion/systemcard/controller/app/api/cardbigdata/CardBigdataAppController.java b/src/main/java/cn/com/tenlion/systemcard/controller/app/api/cardbigdata/CardBigdataAppController.java new file mode 100644 index 0000000..c2dbcce --- /dev/null +++ b/src/main/java/cn/com/tenlion/systemcard/controller/app/api/cardbigdata/CardBigdataAppController.java @@ -0,0 +1,54 @@ +package cn.com.tenlion.systemcard.controller.app.api.cardbigdata; + +import cn.com.tenlion.systemcard.pojo.dtos.cardviolation.CardViolationDTO; +import cn.com.tenlion.systemcard.service.account.IAccountService; +import cn.com.tenlion.systemcard.service.cardviolation.ICardViolationService; +import ink.wgink.common.base.DefaultBaseController; +import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.result.ErrorResult; +import ink.wgink.pojo.result.SuccessResultList; +import io.swagger.annotations.*; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestHeader; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import java.util.List; +import java.util.Map; + +/** + * @ClassName: CardBigdataAppController + * @Description: + * @Author: CodeFactory + * @Date: 2021-08-31 10:41:09 + * @Version: 3.0 + **/ +@Api(tags = ISystemConstant.API_TAGS_APP_PREFIX + "接口") +@RestController +@RequestMapping(ISystemConstant.APP_PREFIX + "/cardbigdata") +public class CardBigdataAppController extends DefaultBaseController { + + @Autowired + private IAccountService accountService; + @Autowired + private ICardViolationService cardViolationService; + + @ApiOperation(value = "名片系统违规记录表分页列表", notes = "名片系统违规记录表分页列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "token", value = "token", paramType = "header"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listpageviolation") + public SuccessResultList> listPage( ListPage page) { + Map params = requestParams(); + page.setParams(params); + return cardViolationService.listPage(page); + } + +} \ No newline at end of file