package com.xcong.excoin.modules.fish.controller;
|
|
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.fish.entity.CannonExchangeRatio;
|
import com.xcong.excoin.modules.fish.entity.CannonSetting;
|
import com.xcong.excoin.modules.fish.service.FishService;
|
import lombok.RequiredArgsConstructor;
|
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;
|
|
@Controller("fishView")
|
@RequestMapping(FebsConstant.VIEW_PREFIX + "modules/fish")
|
@RequiredArgsConstructor
|
public class ViewController extends BaseController {
|
|
private final FishService fishService;
|
|
/**
|
* 兑换比例设置---列表
|
* @return
|
*/
|
@GetMapping("exchangeRatio")
|
@RequiresPermissions("exchangeRatio:view")
|
public String traderUpdate() {
|
return FebsUtil.view("modules/fish/exchangeRatio");
|
}
|
|
/**
|
* 兑换比例设置---详情
|
*/
|
@GetMapping("exchangeRatioUpdate/{id}")
|
@RequiresPermissions("exchangeRatioUpdate:update")
|
public String exchangeRatioUpdate(@PathVariable long id, Model model) {
|
CannonExchangeRatio data = fishService.getExchangeRatioInfoById(id);
|
model.addAttribute("exchangeRatio", data);
|
return FebsUtil.view("modules/fish/exchangeRatioUpdate");
|
}
|
|
/**
|
* 炮台设置---列表
|
* @return
|
*/
|
@GetMapping("cannonList")
|
@RequiresPermissions("cannonList:view")
|
public String cannonList() {
|
return FebsUtil.view("modules/fish/cannonList");
|
}
|
|
/**
|
* 炮台设置---新增
|
*/
|
@GetMapping("cannonAdd")
|
@RequiresPermissions("cannonAdd:add")
|
public String platformBannerAdd() {
|
return FebsUtil.view("modules/fish/cannonAdd");
|
}
|
|
|
/**
|
* 炮台设置---详情
|
*/
|
@GetMapping("cannonUpdate/{id}")
|
@RequiresPermissions("cannonUpdate:update")
|
public String cannonUpdate(@PathVariable long id, Model model) {
|
CannonSetting data = fishService.getCannonInfoById(id);
|
model.addAttribute("cannonsetting", data);
|
return FebsUtil.view("modules/fish/cannonUpdate");
|
}
|
|
/**
|
* 操作记录---列表
|
* @return
|
*/
|
@GetMapping("accountList")
|
@RequiresPermissions("accountList:view")
|
public String accountList() {
|
return FebsUtil.view("modules/fish/accountList");
|
}
|
|
}
|