| 1234567891011121314151617181920212223242526272829303132 |
- package com.crm.custom.controller;
- import com.crm.custom.service.activity.ActivityRaceRuleFeignService;
- import com.crm.rely.backend.core.dto.base.BaseLongSelectDto;
- import com.crm.rely.backend.core.dto.base.BaseResultDto;
- import com.crm.rely.backend.core.entity.login.InfoEntity;
- import com.crm.rely.backend.model.entity.activity.ActivityRaceRuleDropDownEntity;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.PostMapping;
- import org.springframework.web.bind.annotation.RequestBody;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.List;
- /**
- * @author y
- * @create 2022/7/21
- */
- @RestController
- @RequestMapping("/activity/race/rule")
- public class ActivityRaceRuleController {
- @Autowired
- private ActivityRaceRuleFeignService activityRaceRuleFeignService;
- @PostMapping("/dropdown")
- public BaseResultDto<List<BaseLongSelectDto>> dropdown(@RequestBody ActivityRaceRuleDropDownEntity entity, InfoEntity infoEntity) throws Exception {
- entity.setCustomId(infoEntity.getId());
- return activityRaceRuleFeignService.dropdown(entity);
- }
- }
|