package com.xcong.excoin.modules.documentary.controller;
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
import org.springframework.stereotype.Controller;
|
import org.springframework.ui.Model;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import com.xcong.excoin.common.controller.BaseController;
|
import com.xcong.excoin.common.entity.FebsConstant;
|
import com.xcong.excoin.common.utils.FebsUtil;
|
import com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity;
|
import com.xcong.excoin.modules.documentary.service.DocumentaryService;
|
import com.xcong.excoin.modules.member.entity.MemberEntity;
|
|
import lombok.RequiredArgsConstructor;
|
@Controller("documentaryView")
|
@RequestMapping(FebsConstant.VIEW_PREFIX + "modules/documentary")
|
@RequiredArgsConstructor
|
public class ViewController extends BaseController{
|
|
private final DocumentaryService documentaryService;
|
|
/**
|
* 交易员申请
|
* @return
|
*/
|
@GetMapping("traderUpdate")
|
@RequiresPermissions("traderUpdate:view")
|
public String traderUpdate() {
|
return FebsUtil.view("modules/documentary/traderUpdate");
|
}
|
|
/**
|
* 交易员申请--审核
|
* @return
|
*/
|
@GetMapping("traderDetail/{id}")
|
@RequiresPermissions("traderDetail:update")
|
public String traderDetail(@PathVariable long id, Model model) {
|
FollowTraderInfoEntity data = documentaryService.selectTraderDetailByid(id);
|
model.addAttribute("member", data);
|
return FebsUtil.view("modules/documentary/traderDetail");
|
}
|
|
}
|