| | |
| | | import com.ruoyi.system.api.domain.dto.MgtAfterSaleSettingDTO; |
| | | import com.ruoyi.system.domain.dto.PointsConfigDTO; |
| | | import com.ruoyi.system.domain.vo.CustomConfigVO; |
| | | import com.ruoyi.system.domain.vo.RefundOfDepositVO; |
| | | import com.ruoyi.system.domain.vo.WishSettingVO; |
| | | import com.ruoyi.system.service.ICustomConfigService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Valid; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | |
| | | * @author mitao |
| | | * @since 2024-05-21 |
| | | */ |
| | | @Validated |
| | | @RestController |
| | | @RequestMapping("/custom-config") |
| | | @Api(value = "系统配置接口", tags = "系统配置接口") |
| | |
| | | @Resource |
| | | private ICustomConfigService iCustomConfigService; |
| | | @GetMapping(value = "/{configId}") |
| | | @ApiOperation("获取配置") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "configId", value = "配置键", required = true)}) |
| | | public R<CustomConfig> getconfig(@PathVariable String configId) |
| | | { |
| | | LambdaQueryWrapper<CustomConfig> wrapper = Wrappers.lambdaQuery(); |
| | |
| | | iCustomConfigService.deleteServicePhone(phone); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 获取心愿求购说明 |
| | | * |
| | | * @return |
| | | */ |
| | | @ApiOperation("获取心愿求购说明、分享配置") |
| | | @GetMapping("/wish-setting") |
| | | public R<WishSettingVO> getWishSetting() { |
| | | return R.ok(iCustomConfigService.getWishSetting()); |
| | | } |
| | | |
| | | /** |
| | | * 保存心愿求购设置 |
| | | * |
| | | * @param vo 保存心愿求购设置 |
| | | */ |
| | | @ApiOperation(value = "保存心愿设置") |
| | | @PostMapping("/save-wish-setting") |
| | | public R<?> saveWishDescription(@Valid @RequestBody WishSettingVO vo) { |
| | | iCustomConfigService.saveWishDescription(vo); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 获取保证金退还文案 |
| | | */ |
| | | @ApiOperation("获取保证金退还文案") |
| | | @GetMapping("/refund-of-deposit") |
| | | public R<String> getRefundOfDeposit() { |
| | | return R.ok(iCustomConfigService.getRefundOfDeposit()); |
| | | } |
| | | |
| | | /** |
| | | * 保存保证金退还设置 |
| | | */ |
| | | @ApiOperation(value = "保存保证金退还设置") |
| | | @PostMapping("/save-refund-of-deposit") |
| | | public R<?> saveRefundOfDeposit(@RequestBody RefundOfDepositVO refundOfDepositVO) { |
| | | iCustomConfigService.saveRefundOfDeposit(refundOfDepositVO.getRefundOfDeposit()); |
| | | return R.ok(); |
| | | } |
| | | } |