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