|
|
@ -9,10 +9,7 @@ import com.elink.esua.epdc.dto.epdc.form.EpdcCompleteVolunteerInfoFormDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.result.EpdcGetVolunteerRankDTO; |
|
|
|
import com.elink.esua.epdc.service.VolunteerInfoService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.PathVariable; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
@ -46,7 +43,7 @@ public class EpdcAppVolunteerInfoController { |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@GetMapping("insertVolunteerInfo") |
|
|
|
public Result<Integer> insertVolunteerInfo(EpdcCompleteVolunteerInfoFormDTO epdcCompleteVolunteerInfoFormDTO) { |
|
|
|
public Result<Integer> insertVolunteerInfo(@RequestBody EpdcCompleteVolunteerInfoFormDTO epdcCompleteVolunteerInfoFormDTO) { |
|
|
|
//效验数据
|
|
|
|
ValidatorUtils.validateEntity(epdcCompleteVolunteerInfoFormDTO, UpdateGroup.class, DefaultGroup.class); |
|
|
|
Result<Integer> result = volunteerInfoService.insertVolunteerInfo(epdcCompleteVolunteerInfoFormDTO); |
|
|
|