AgentBalanceFrozenController.java 1.1 KB

123456789101112131415161718192021222324252627282930
  1. package com.crm.manager.controller;
  2. import com.crm.manager.service.ib.AgentBalanceFrozenFeignService;
  3. import com.crm.rely.backend.core.dto.base.BaseResultDto;
  4. import com.crm.rely.backend.core.entity.custom.info.InfoEntity;
  5. import com.crm.rely.backend.core.entity.ib.balance.AgentBalanceFrozenAddEntity;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.validation.annotation.Validated;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RestController;
  12. /**
  13. * Created by max on 2020/11/20.
  14. */
  15. @RestController
  16. @RequestMapping("/agent/balance/frozen")
  17. public class AgentBalanceFrozenController {
  18. @Autowired
  19. private AgentBalanceFrozenFeignService agentBalanceFrozenFeignService;
  20. @PostMapping("/add")
  21. public BaseResultDto<Object> add(@RequestBody @Validated AgentBalanceFrozenAddEntity entity, InfoEntity infoEntity) throws Exception {
  22. return agentBalanceFrozenFeignService.add(entity);
  23. }
  24. }