|
|
@@ -121,6 +121,19 @@ public class VoteController {
|
|
|
return ApiResponse.successful();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 代理投票
|
|
|
+ *
|
|
|
+ * @param dto 代理投票数据传输对象
|
|
|
+ * @return 接口返回对象
|
|
|
+ */
|
|
|
+ @PutMapping("choise/delegation")
|
|
|
+ public ApiResponse<Void> choiceDelegation(@RequestBody @Valid ChoiceDelegationDto dto) {
|
|
|
+ voteService.madeChoiceDelegation(dto);
|
|
|
+ return ApiResponse.successful();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 异常处理器
|
|
|
*
|