From 715ebe0b3348a09d513772f2c246463f50c94ca7 Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期三, 01 十二月 2021 18:02:51 +0800
Subject: [PATCH] [update]【todo 131358】otp認證錯誤detail改回傳錯誤代碼供前端轉換對應文案

---
 pamapi/src/main/java/com/pollex/pam/web/rest/AppointmentResource.java |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/pamapi/src/main/java/com/pollex/pam/web/rest/AppointmentResource.java b/pamapi/src/main/java/com/pollex/pam/web/rest/AppointmentResource.java
index afd4c01..79f89c9 100644
--- a/pamapi/src/main/java/com/pollex/pam/web/rest/AppointmentResource.java
+++ b/pamapi/src/main/java/com/pollex/pam/web/rest/AppointmentResource.java
@@ -1,9 +1,7 @@
 package com.pollex.pam.web.rest;
 
-import com.pollex.pam.service.ConsultantService;
-import com.pollex.pam.service.SatisfactionService;
-
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.http.ResponseEntity;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -11,9 +9,8 @@
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
-import com.pollex.pam.domain.Appointment;
-import com.pollex.pam.domain.AppointmentCustomerView;
 import com.pollex.pam.service.AppointmentService;
+import com.pollex.pam.service.SatisfactionService;
 import com.pollex.pam.service.dto.AppointmentCreateDTO;
 import com.pollex.pam.service.dto.AppointmentCustomerViewDTO;
 
@@ -31,16 +28,20 @@
 	public void clientCreateAppointment(@RequestBody AppointmentCreateDTO appointmentCreateDTO) {
 		appointmentService.customerCreateAppointment(appointmentCreateDTO);
 	}
-	
+
 	@PostMapping("/markAsContacted/{appointmentId}")
 	public void markAsContacted(@PathVariable Long appointmentId) {
 		appointmentService.markAsContacted(appointmentId);
 	}
-	
+
 	@GetMapping("/getDetail/{appointmentId}")
 	public AppointmentCustomerViewDTO getAppointmentDetail(@PathVariable Long appointmentId) {
 		return appointmentService.getAppointmentDetail(appointmentId);
 	}
-	
-	
+
+	@PostMapping("/recordRead/{appointmentId}")
+    public ResponseEntity<Void> recordConsultantReadAppointment(@PathVariable Long appointmentId) {
+        appointmentService.recordConsultantReadTime(appointmentId);
+        return ResponseEntity.noContent().build();
+    }
 }

--
Gitblit v1.8.0