| 
									
										
										
										
											2024-11-21 12:18:28 +08:00
										 |  |  | package user | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"net/http" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-04-27 12:17:18 +08:00
										 |  |  | 	"tyc-server/app/main/api/internal/logic/user" | 
					
						
							|  |  |  | 	"tyc-server/app/main/api/internal/svc" | 
					
						
							| 
									
										
										
										
											2025-04-09 15:58:06 +08:00
										 |  |  | 	"tyc-server/common/result" | 
					
						
							| 
									
										
										
										
											2024-11-21 12:18:28 +08:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | func DetailHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | 
					
						
							|  |  |  | 	return func(w http.ResponseWriter, r *http.Request) { | 
					
						
							|  |  |  | 		l := user.NewDetailLogic(r.Context(), svcCtx) | 
					
						
							|  |  |  | 		resp, err := l.Detail() | 
					
						
							|  |  |  | 		result.HttpResult(r, w, resp, err) | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } |