|
@@ -180,7 +180,7 @@ public class TaskFrontController {
|
|
|
@PostMapping(value = "/post/follow", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
@PostMapping(value = "/post/follow", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
@NoSubmit
|
|
@NoSubmit
|
|
|
public Result<String> toCompleteFollowTask(@ModelAttribute @Validated TaskFollowReq taskFollowReq,
|
|
public Result<String> toCompleteFollowTask(@ModelAttribute @Validated TaskFollowReq taskFollowReq,
|
|
|
- @RequestParam("file") MultipartFile file) {
|
|
|
|
|
|
|
+ @RequestParam(value = "file", required = false) MultipartFile file) {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
taskFollowReq.setUserId(userId);
|
|
taskFollowReq.setUserId(userId);
|
|
|
marketFrontService.toCompleteFollowTask(taskFollowReq, file);
|
|
marketFrontService.toCompleteFollowTask(taskFollowReq, file);
|
|
@@ -204,7 +204,7 @@ public class TaskFrontController {
|
|
|
@PutMapping(value = "/put/follow", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
@PutMapping(value = "/put/follow", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
|
|
|
@NoSubmit
|
|
@NoSubmit
|
|
|
public Result<String> updateFailFollowTask(@ModelAttribute @Validated TaskFollowReq taskFollowReq,
|
|
public Result<String> updateFailFollowTask(@ModelAttribute @Validated TaskFollowReq taskFollowReq,
|
|
|
- @RequestParam("file") MultipartFile file) {
|
|
|
|
|
|
|
+ @RequestParam(value = "file", required = false) MultipartFile file) {
|
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
Long userId = StpUserUtil.getLoginIdAsLong();
|
|
|
taskFollowReq.setUserId(userId);
|
|
taskFollowReq.setUserId(userId);
|
|
|
marketFrontService.updateFailFollowTask(taskFollowReq, file);
|
|
marketFrontService.updateFailFollowTask(taskFollowReq, file);
|