AgentPointController.java 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package com.crm.manager.controller;
  2. import com.crm.manager.service.ib.AgentPointFeignService;
  3. import com.crm.rely.backend.core.dto.base.BaseResultWithPagerDto;
  4. import com.crm.rely.backend.core.dto.ib.point.AgentPointRecordDto;
  5. import com.crm.rely.backend.core.entity.custom.info.InfoEntity;
  6. import com.crm.rely.backend.core.entity.ib.point.AgentPointRecordListEntity;
  7. import org.springframework.beans.factory.annotation.Autowired;
  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. import java.util.List;
  13. /**
  14. * Created by max on 2020/8/31.
  15. */
  16. @RestController
  17. @RequestMapping("/agent/point/change")
  18. public class AgentPointController {
  19. @Autowired
  20. private AgentPointFeignService agentPointFeignService;
  21. @PostMapping("/list")
  22. public BaseResultWithPagerDto<List<AgentPointRecordDto>> getList(@RequestBody AgentPointRecordListEntity entity, InfoEntity infoEntity) throws Exception {
  23. return agentPointFeignService.getList(entity);
  24. }
  25. }