| | |
| | | import cc.mrbird.febs.common.utils.FebsUtil; |
| | | import cc.mrbird.febs.mall.entity.MallNewsCategory; |
| | | import cc.mrbird.febs.mall.entity.MallNewsInfo; |
| | | import cc.mrbird.febs.mall.entity.MallProductNft; |
| | | import cc.mrbird.febs.mall.mapper.MallProductNftMapper; |
| | | import cc.mrbird.febs.mall.service.IMallNewsInfoService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | |
| | | public class ViewNewsController { |
| | | |
| | | private final IMallNewsInfoService mallNewsInfoService; |
| | | private final MallProductNftMapper mallProductNftMapper; |
| | | |
| | | /** |
| | | * NFT预约产品 |
| | | */ |
| | | @GetMapping("productNFTList") |
| | | @RequiresPermissions("productNFTList:view") |
| | | public String productNFTList() { |
| | | return FebsUtil.view("modules/news/productNFTList"); |
| | | } |
| | | |
| | | /** |
| | | * NFT预约产品-新增 |
| | | */ |
| | | @GetMapping("productNFTAdd") |
| | | @RequiresPermissions("productNFTAdd:add") |
| | | public String productNFTAdd() { |
| | | return FebsUtil.view("modules/news/productNFTAdd"); |
| | | } |
| | | |
| | | /** |
| | | * NFT预约产品-详情 |
| | | * @return |
| | | */ |
| | | @GetMapping("productNFTUpdate/{id}") |
| | | @RequiresPermissions("productNFTUpdate:update") |
| | | public String productNFTUpdate(@PathVariable long id, Model model) { |
| | | MallProductNft mallProductNft = mallProductNftMapper.selectById(id); |
| | | model.addAttribute("mallProductNft", mallProductNft); |
| | | return FebsUtil.view("modules/news/productNFTUpdate"); |
| | | } |
| | | |
| | | /** |
| | | * 用户NFT预约列表 |
| | | */ |
| | | @GetMapping("productBuyList") |
| | | @RequiresPermissions("productBuyList:view") |
| | | public String productBuyList() { |
| | | return FebsUtil.view("modules/news/productBuyList"); |
| | | } |
| | | |
| | | /** |
| | | * 用户NFT提现列表 |
| | | */ |
| | | @GetMapping("productSellList") |
| | | @RequiresPermissions("productSellList:view") |
| | | public String productSellList() { |
| | | return FebsUtil.view("modules/news/productSellList"); |
| | | } |
| | | |
| | | /** |
| | | * 新闻中心-列表 |