GamePayWayController.java 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.zanxiang.manage.controller;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.zanxiang.common.domain.ResultVo;
  4. import com.zanxiang.manage.domain.params.GamePayWayListParam;
  5. import com.zanxiang.manage.domain.params.GamePayWayParam;
  6. import com.zanxiang.manage.domain.vo.GamePayWayListVO;
  7. import com.zanxiang.manage.service.GamePayWayService;
  8. import io.swagger.annotations.Api;
  9. import io.swagger.annotations.ApiOperation;
  10. import io.swagger.annotations.ApiResponse;
  11. import io.swagger.annotations.ApiResponses;
  12. import org.springframework.beans.factory.annotation.Autowired;
  13. import org.springframework.validation.annotation.Validated;
  14. import org.springframework.web.bind.annotation.PostMapping;
  15. import org.springframework.web.bind.annotation.RequestBody;
  16. import org.springframework.web.bind.annotation.RequestMapping;
  17. import org.springframework.web.bind.annotation.RestController;
  18. /**
  19. * 游戏支付配置表 前端控制器
  20. *
  21. * @author xufeng
  22. * @date 2022-06-30 14:22
  23. */
  24. @Api(tags = "游戏支付配置")
  25. @RestController
  26. @RequestMapping("/game-pay-way")
  27. public class GamePayWayController {
  28. @Autowired
  29. private GamePayWayService gamePayWayService;
  30. @ApiOperation(value = "新增/编辑/删除")
  31. @PostMapping(value = "/save")
  32. public ResultVo<Boolean> save(@Validated @RequestBody GamePayWayParam param) {
  33. return ResultVo.ok(gamePayWayService.saveOrUpdate(param));
  34. }
  35. @ApiOperation(value = "列表")
  36. @PostMapping(value = "/list")
  37. @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GamePayWayListVO.class, responseContainer = "list")})
  38. public ResultVo<IPage<GamePayWayListVO>> list(@Validated @RequestBody GamePayWayListParam param) {
  39. return ResultVo.ok(gamePayWayService.list(param));
  40. }
  41. }