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);
|
}
|
|
}
|