接口全部使用使用POST请求加请求体的方式
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.controller;
|
||||
|
||||
import com.cool.store.dto.content.ContentQueryDetailDto;
|
||||
import com.cool.store.dto.content.ContentQueryListDto;
|
||||
import com.cool.store.entity.HyContentInfoDO;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
@@ -35,8 +36,8 @@ public class ContentController {
|
||||
|
||||
@PostMapping("/detail")
|
||||
@ApiOperation("动态详情")
|
||||
public ResponseResult<HyContentInfoDO> queryContentInfo(@RequestBody String contentId) {
|
||||
return ResponseResult.success(contentService.queryContentInfo(contentId));
|
||||
public ResponseResult<HyContentInfoDO> queryContentInfo(@RequestBody ContentQueryDetailDto dto) {
|
||||
return ResponseResult.success(contentService.queryContentInfo(dto.getContentId()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.cool.store.controller;
|
||||
|
||||
import com.cool.store.dto.partner.EnterInterviewDto;
|
||||
import com.cool.store.dto.partner.PartnerGetPassLetterDetailDto;
|
||||
import com.cool.store.dto.partner.PartnerQueryInterviewDto;
|
||||
import com.cool.store.exception.ApiException;
|
||||
import com.cool.store.request.CreateAppointmentReq;
|
||||
import com.cool.store.request.ModifyInterviewTimeReq;
|
||||
@@ -30,8 +32,8 @@ public class InterviewController {
|
||||
|
||||
@PostMapping("/queryByPartnerId")
|
||||
@ApiOperation("根据用户id查询面试信息")
|
||||
public ResponseResult<PartnerInterviewInfoVO> queryByPartnerId(@RequestBody String partnerId) {
|
||||
return ResponseResult.success(interviewService.queryByPartnerId(partnerId));
|
||||
public ResponseResult<PartnerInterviewInfoVO> queryByPartnerId(@RequestBody PartnerQueryInterviewDto dto) {
|
||||
return ResponseResult.success(interviewService.queryByPartnerId(dto.getPartnerId()));
|
||||
}
|
||||
|
||||
@PostMapping("/enter")
|
||||
@@ -42,8 +44,8 @@ public class InterviewController {
|
||||
|
||||
@PostMapping("/passLetter/detail")
|
||||
@ApiOperation("通过函详情")
|
||||
public ResponseResult<PartnerPassLetterDetailVO> passLetterDetail(@RequestParam String interviewPlanId) {
|
||||
return ResponseResult.success(interviewService.passLetterDetail(interviewPlanId));
|
||||
public ResponseResult<PartnerPassLetterDetailVO> passLetterDetail(@RequestBody PartnerGetPassLetterDetailDto dto) {
|
||||
return ResponseResult.success(interviewService.passLetterDetail(dto.getInterviewPlanId()));
|
||||
}
|
||||
|
||||
@PostMapping("/appointment/submit")
|
||||
|
||||
Reference in New Issue
Block a user