实训体验
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.enums.ExperienceStatusEnum;
|
||||
import com.cool.store.request.TrainingExperienceDistributionRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.TrainingExperienceService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.websocket.server.PathParam;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/pc/training/experience/")
|
||||
@Api(tags = "PC端-实训体验")
|
||||
@Slf4j
|
||||
public class TrainingExperienceController {
|
||||
|
||||
@Resource
|
||||
TrainingExperienceService trainingExperienceService;
|
||||
|
||||
|
||||
@ApiOperation("实训体验分配")
|
||||
@PostMapping("/distribution")
|
||||
public ResponseResult<Boolean> distribution(@RequestBody TrainingExperienceDistributionRequest request) {
|
||||
return ResponseResult.success(trainingExperienceService.distribution(request));
|
||||
}
|
||||
|
||||
@ApiOperation("实训体验状态变更")
|
||||
@GetMapping("/experience/{status}")
|
||||
public ResponseResult experienceStatusChange(@ApiParam(value = "实训体验状态 DONE:完成 ABANDON:放弃") @PathVariable(value = "status") ExperienceStatusEnum statusEnum,
|
||||
@ApiParam(value = "线索id")@RequestParam(value = "lineId") Long lineId,
|
||||
@ApiParam(value = "放弃原因,状态为ABANDON才填写")@RequestParam(value = "abandonCause",required = false)String abandonCause) {
|
||||
|
||||
trainingExperienceService.experienceStatusChange(lineId,statusEnum.getExperienceStatus(),abandonCause);
|
||||
return ResponseResult.success();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -3,14 +3,12 @@ package com.cool.store.controller.webc;
|
||||
import com.cool.store.request.IntentAgreementSubmitRequest;
|
||||
import com.cool.store.request.JoinIntentionRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.response.SigningBaseInfoResponse;
|
||||
import com.cool.store.service.IntentAgreementService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@@ -29,4 +27,13 @@ public class MiniIntentAgreementController {
|
||||
boolean resp = intentAgreementService.submit(request);
|
||||
return ResponseResult.success(resp);
|
||||
}
|
||||
|
||||
@PostMapping(path = "/get")
|
||||
@ApiOperation("查询意向协议信息")
|
||||
public ResponseResult<SigningBaseInfoResponse> getMiniIntentAgreement(
|
||||
@RequestParam(value = "partnerId",required = false) String partnerId,
|
||||
@RequestParam(value = "lineId",required = false) Long lineId) {
|
||||
SigningBaseInfoResponse resp = intentAgreementService.getMiniIntentAgreement(partnerId,lineId);
|
||||
return ResponseResult.success(resp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user