| | |
| | | @Autowired |
| | | private TIntegralRuleService integralRuleService; |
| | | @GetMapping("/getSet") |
| | | @ApiOperation(value = "获取积分设置") |
| | | @ApiOperation(tags = {"管理后台-积分管理"},value = "获取积分设置") |
| | | public R<TIntegralRule> getSet() { |
| | | TIntegralRule res = integralRuleService.getOne(new QueryWrapper<>()); |
| | | return R.ok(res); |
| | | } |
| | | @PostMapping("/saveSet") |
| | | @ApiOperation(value = "保存积分设置") |
| | | @ApiOperation(tags = {"管理后台-积分管理"},value = "保存积分设置") |
| | | public R saveSet(@RequestBody TIntegralRule dto) { |
| | | integralRuleService.updateById(dto); |
| | | return R.ok(); |
| | | } |
| | | @GetMapping("/getInfo") |
| | | @ApiOperation(value = "type 1=积分规则说明," + |
| | | @ApiOperation(tags = {"管理后台-积分管理"},value = "type 1=积分规则说明," + |
| | | "2=会员折扣说明," + |
| | | "3=优惠券说明," + |
| | | "4=双倍积分说明," + |
| | |
| | | return R.ok(g.getContent()); |
| | | } |
| | | @GetMapping("/saveInfo") |
| | | @ApiOperation(value = "保存积分说明") |
| | | @ApiOperation(tags = {"管理后台-积分管理"},value = "保存积分说明") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "info", value = "内容", required = true), |
| | | @ApiImplicitParam(name = "type", value = "type 1=积分规则说明,\" +\n" + |