| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * 会员配置接口类 |
| | |
| | | public FebsResponse list(QueryRequest request) { |
| | | return new FebsResponse().success().data(getDataTable(mallVipConfigService.vipConfigList(request))); |
| | | } |
| | | |
| | | |
| | | @PostMapping(value = "/add") |
| | | public FebsResponse add(@RequestBody MallVipConfig config) { |
| | | mallVipConfigService.addVipConfig(config); |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |
| | | @GetMapping(value = "/del/{id}") |
| | | public FebsResponse del(@PathVariable("id") Long id) { |
| | | mallVipConfigService.delVipConfig(id); |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | } |