From 3f497f19ddc39bd5d3a989ce9a981dc840096c71 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 04 Mar 2022 11:11:51 +0800 Subject: [PATCH] Merge branch 'bea-back' of http://120.27.238.55:7000/r/exchange-back into bea-back --- src/main/java/com/xcong/excoin/modules/zhiya/controller/ZhiyaController.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/zhiya/controller/ZhiyaController.java b/src/main/java/com/xcong/excoin/modules/zhiya/controller/ZhiyaController.java new file mode 100644 index 0000000..6e66a88 --- /dev/null +++ b/src/main/java/com/xcong/excoin/modules/zhiya/controller/ZhiyaController.java @@ -0,0 +1,38 @@ +package com.xcong.excoin.modules.zhiya.controller; + +import com.xcong.excoin.common.controller.BaseController; +import com.xcong.excoin.common.entity.FebsResponse; +import com.xcong.excoin.common.entity.QueryRequest; +import com.xcong.excoin.modules.zhiya.entity.ZhiYaEntity; +import com.xcong.excoin.modules.zhiya.service.ZhiyaService; +import lombok.RequiredArgsConstructor; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import java.util.Map; + +@Validated +@RestController +@RequiredArgsConstructor +@RequestMapping(value = "/zhiya") +public class ZhiyaController extends BaseController { + + private final ZhiyaService zhiyaService; + + /** + * 质押账户记录 + * @param zhiYaEntity + * @param request + * @return + */ + @GetMapping("/zhiyaList") + @RequiresPermissions("zhiyaList:view") + public FebsResponse getZhiyaListPage(ZhiYaEntity zhiYaEntity, QueryRequest request) { + Map<String, Object> data = getDataTable(zhiyaService.findZhiyaListInPage(zhiYaEntity, request)); + return new FebsResponse().success().data(data); + } + +} -- Gitblit v1.9.1