猫妈狗爸伴宠师小程序后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.4 KiB

1 year ago
  1. package com.ruoyi.applet.contoller;
  2. import com.ruoyi.common.core.controller.BaseController;
  3. import com.ruoyi.common.core.domain.AjaxResult;
  4. import com.ruoyi.common.core.page.TableDataInfo;
  5. import com.ruoyi.model.service.IAppBondConfigService;
  6. import com.ruoyi.model.service.IAppDepositService;
  7. import io.swagger.annotations.Api;
  8. import io.swagger.annotations.ApiOperation;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.GetMapping;
  11. import org.springframework.web.bind.annotation.PathVariable;
  12. import org.springframework.web.bind.annotation.RequestMapping;
  13. import org.springframework.web.bind.annotation.RestController;
  14. @Api(description = "保证金")
  15. @RestController
  16. @RequestMapping("/applet/bond")
  17. public class AppletBondController extends BaseController {
  18. @Autowired
  19. private IAppBondConfigService appBondConfigService;
  20. @Autowired
  21. private IAppDepositService appDepositService;
  22. @ApiOperation("保证金规则")
  23. @GetMapping("/bondConfig")
  24. public AjaxResult getAppBondConfig(){
  25. return AjaxResult.success(appBondConfigService.getAppBondConfig());
  26. }
  27. @ApiOperation("保证金记录")
  28. @GetMapping("/getDeposit{userId}")
  29. public TableDataInfo getDepositByUserId(@PathVariable Long userId){
  30. return getDataTable(appDepositService.getAppDepositListByUserId(userId));
  31. }
  32. }