保誠-保戶業務員媒合平台
pamapi/src/main/java/com/pollex/pam/web/rest/InterviewRecordResource.java
@@ -1,5 +1,7 @@
package com.pollex.pam.web.rest;
import com.pollex.pam.aop.logging.audit.AuditLoggingInject;
import com.pollex.pam.aop.logging.audit.AuditLoggingType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
@@ -12,6 +14,8 @@
import com.pollex.pam.service.InterviewRecordService;
import com.pollex.pam.service.dto.InterviewRecordDTO;
import static com.pollex.pam.aop.logging.audit.AuditLoggingType.CONSULTANT_CREATE_INTERVIEW;
@RestController
@RequestMapping("/api/interview_record")
public class InterviewRecordResource {
@@ -19,6 +23,7 @@
   @Autowired
   InterviewRecordService interviewRecordService;
   
    @AuditLoggingInject(type = CONSULTANT_CREATE_INTERVIEW)
   @PostMapping("/create")
   public InterviewRecord create(@RequestBody InterviewRecordDTO dto) {
      return interviewRecordService.create(dto);