| 
									
										
										
										
											2025-07-13 16:36:20 +08:00
										 |  |  | package user | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"context" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	"tyapi-server/internal/application/user/dto/commands" | 
					
						
							| 
									
										
										
										
											2025-07-28 01:46:39 +08:00
										 |  |  | 	"tyapi-server/internal/application/user/dto/queries" | 
					
						
							| 
									
										
										
										
											2025-07-13 16:36:20 +08:00
										 |  |  | 	"tyapi-server/internal/application/user/dto/responses" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // UserApplicationService 用户应用服务接口 | 
					
						
							|  |  |  | type UserApplicationService interface { | 
					
						
							|  |  |  | 	Register(ctx context.Context, cmd *commands.RegisterUserCommand) (*responses.RegisterUserResponse, error) | 
					
						
							|  |  |  | 	LoginWithPassword(ctx context.Context, cmd *commands.LoginWithPasswordCommand) (*responses.LoginUserResponse, error) | 
					
						
							|  |  |  | 	LoginWithSMS(ctx context.Context, cmd *commands.LoginWithSMSCommand) (*responses.LoginUserResponse, error) | 
					
						
							|  |  |  | 	ChangePassword(ctx context.Context, cmd *commands.ChangePasswordCommand) error | 
					
						
							| 
									
										
										
										
											2025-07-15 13:21:34 +08:00
										 |  |  | 	ResetPassword(ctx context.Context, cmd *commands.ResetPasswordCommand) error | 
					
						
							| 
									
										
										
										
											2025-07-13 16:36:20 +08:00
										 |  |  | 	GetUserProfile(ctx context.Context, userID string) (*responses.UserProfileResponse, error) | 
					
						
							|  |  |  | 	SendCode(ctx context.Context, cmd *commands.SendCodeCommand, clientIP, userAgent string) error | 
					
						
							| 
									
										
										
										
											2025-07-28 01:46:39 +08:00
										 |  |  | 	 | 
					
						
							|  |  |  | 	// 管理员功能 | 
					
						
							|  |  |  | 	ListUsers(ctx context.Context, query *queries.ListUsersQuery) (*responses.UserListResponse, error) | 
					
						
							|  |  |  | 	GetUserStats(ctx context.Context) (*responses.UserStatsResponse, error) | 
					
						
							| 
									
										
										
										
											2025-07-13 16:36:20 +08:00
										 |  |  | } |