|
@ -4,6 +4,8 @@ import com.elink.esua.epdc.activity.ActBannerDTO; |
|
|
import com.elink.esua.epdc.activity.form.ActInfoAppFormDTO; |
|
|
import com.elink.esua.epdc.activity.form.ActInfoAppFormDTO; |
|
|
import com.elink.esua.epdc.activity.result.ActInfoAppResultDTO; |
|
|
import com.elink.esua.epdc.activity.result.ActInfoAppResultDTO; |
|
|
import com.elink.esua.epdc.activity.result.ActInfoDetailAppResultDTO; |
|
|
import com.elink.esua.epdc.activity.result.ActInfoDetailAppResultDTO; |
|
|
|
|
|
import com.elink.esua.epdc.common.token.dto.TokenDto; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.annotation.LoginUser; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.dto.item.result.*; |
|
|
import com.elink.esua.epdc.dto.item.result.*; |
|
|
import com.elink.esua.epdc.service.ActInfoService; |
|
|
import com.elink.esua.epdc.service.ActInfoService; |
|
@ -33,7 +35,8 @@ public class ApiAppActInfoController { |
|
|
* @Date: 2019/11/19 16:34 |
|
|
* @Date: 2019/11/19 16:34 |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("list") |
|
|
@GetMapping("list") |
|
|
public Result<List<ActInfoAppResultDTO>> listItems(ActInfoAppFormDTO formDto) { |
|
|
public Result<List<ActInfoAppResultDTO>> listItems(ActInfoAppFormDTO formDto, @LoginUser TokenDto tokenDto) { |
|
|
|
|
|
formDto.setUserId(tokenDto.getUserId()); |
|
|
return actInfoService.listItems(formDto); |
|
|
return actInfoService.listItems(formDto); |
|
|
} |
|
|
} |
|
|
/** |
|
|
/** |
|
@ -44,7 +47,8 @@ public class ApiAppActInfoController { |
|
|
* @Date: 2019/11/19 16:34 |
|
|
* @Date: 2019/11/19 16:34 |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("signupList") |
|
|
@GetMapping("signupList") |
|
|
public Result<List<ActInfoAppResultDTO>> signupListItems(ActInfoAppFormDTO formDto) { |
|
|
public Result<List<ActInfoAppResultDTO>> signupListItems(ActInfoAppFormDTO formDto, @LoginUser TokenDto tokenDto) { |
|
|
|
|
|
formDto.setUserId(tokenDto.getUserId()); |
|
|
return actInfoService.signupListItems(formDto); |
|
|
return actInfoService.signupListItems(formDto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -56,8 +60,11 @@ public class ApiAppActInfoController { |
|
|
* @Date: 2019/11/19 16:34 |
|
|
* @Date: 2019/11/19 16:34 |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("detail/{id}") |
|
|
@GetMapping("detail/{id}") |
|
|
public Result<ActInfoDetailAppResultDTO> detail(@PathVariable String id) { |
|
|
public Result<ActInfoDetailAppResultDTO> detail(@PathVariable String id, @LoginUser TokenDto tokenDto) { |
|
|
return actInfoService.getDetail(id); |
|
|
ActInfoAppFormDTO formDto = new ActInfoAppFormDTO(); |
|
|
|
|
|
formDto.setId(id); |
|
|
|
|
|
formDto.setUserId(tokenDto.getUserId()); |
|
|
|
|
|
return actInfoService.getDetail(formDto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -68,8 +75,11 @@ public class ApiAppActInfoController { |
|
|
* @Date: 2019/11/19 16:34 |
|
|
* @Date: 2019/11/19 16:34 |
|
|
*/ |
|
|
*/ |
|
|
@GetMapping("rejectDetail/{id}") |
|
|
@GetMapping("rejectDetail/{id}") |
|
|
public Result<ActInfoDetailAppResultDTO> rejectDetail(@PathVariable String id) { |
|
|
public Result<ActInfoDetailAppResultDTO> rejectDetail(@PathVariable String id, @LoginUser TokenDto tokenDto) { |
|
|
return actInfoService.getRejectDetail(id); |
|
|
ActInfoAppFormDTO formDto = new ActInfoAppFormDTO(); |
|
|
|
|
|
formDto.setId(id); |
|
|
|
|
|
formDto.setUserId(tokenDto.getUserId()); |
|
|
|
|
|
return actInfoService.getRejectDetail(formDto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|