ActivityRaceRuleController.java 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. package com.crm.custom.controller;
  2. import com.crm.custom.service.activity.ActivityRaceRuleFeignService;
  3. import com.crm.rely.backend.core.dto.base.BaseLongSelectDto;
  4. import com.crm.rely.backend.core.dto.base.BaseResultDto;
  5. import com.crm.rely.backend.core.entity.login.InfoEntity;
  6. import com.crm.rely.backend.model.entity.activity.ActivityRaceRuleDropDownEntity;
  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. * @author y
  15. * @create 2022/7/21
  16. */
  17. @RestController
  18. @RequestMapping("/activity/race/rule")
  19. public class ActivityRaceRuleController {
  20. @Autowired
  21. private ActivityRaceRuleFeignService activityRaceRuleFeignService;
  22. @PostMapping("/dropdown")
  23. public BaseResultDto<List<BaseLongSelectDto>> dropdown(@RequestBody ActivityRaceRuleDropDownEntity entity, InfoEntity infoEntity) throws Exception {
  24. entity.setCustomId(infoEntity.getId());
  25. return activityRaceRuleFeignService.dropdown(entity);
  26. }
  27. }