| | |
| | | package com.ruoyi.other.controller; |
| | | |
| | | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.account.api.model.UserClickLog; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.other.api.domain.RechargeSet; |
| | | import com.ruoyi.other.service.RechargeSetService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RestController |
| | | @RequestMapping("/recharge-set") |
| | | public class RechargeSetController { |
| | | @Resource |
| | | private RechargeSetService rechargeSetService; |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation(value = "充值设置查询", tags = {"后台"}) |
| | | public R<List<RechargeSet>> list() { |
| | | return R.ok(rechargeSetService.list()); |
| | | } |
| | | @PostMapping("/set") |
| | | @ApiOperation(value = "充值设置", tags = {"后台"}) |
| | | public R<List<RechargeSet>> detail(@RequestBody List<RechargeSet> rechargeSets) { |
| | | boolean remove = rechargeSetService.remove(Wrappers.lambdaQuery()); |
| | | rechargeSetService.saveBatch(rechargeSets); |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| | | |