|
|
|
@ -74,10 +74,10 @@ public class ActivityController { |
|
|
|
|
* @return 返回报名结果 |
|
|
|
|
*/ |
|
|
|
|
@PostMapping(Constants.ACTIVITY_INTERFACE_APPLY) |
|
|
|
|
public JSONResponse<DefaultRes,Void> apply(ApplyActivityForm activityForm,@CookieValue(Constants.USER_COOKIE) String userId){ |
|
|
|
|
if(StringUtils.isNotEmpty(userId)&&ObjectUtils.allNotNull(activityForm.getActivityId(),activityForm.getActivityStatus())){ |
|
|
|
|
activityForm.setUserId(userId); |
|
|
|
|
return activityService.apply(activityForm); |
|
|
|
|
public JSONResponse<DefaultRes,Void> apply(UpdateActivityForm updateActivityForm,@CookieValue(Constants.USER_COOKIE) String userId){ |
|
|
|
|
if(StringUtils.isNotEmpty(userId)&&ObjectUtils.allNotNull(updateActivityForm.getActivityId(),updateActivityForm.getActivityStatus())){ |
|
|
|
|
updateActivityForm.setUserId(userId); |
|
|
|
|
return activityService.apply(updateActivityForm); |
|
|
|
|
}else{ |
|
|
|
|
return new JSONResponse<>(DefaultRes.fail,Result.FAIL); |
|
|
|
|
} |
|
|
|
|