| 
									
										
										
										
											2025-07-13 16:36:20 +08:00
										 |  |  | package responses | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import ( | 
					
						
							|  |  |  | 	"time" | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // RegisterUserResponse 用户注册响应 | 
					
						
							|  |  |  | // @Description 用户注册成功响应 | 
					
						
							|  |  |  | type RegisterUserResponse struct { | 
					
						
							|  |  |  | 	ID    string `json:"id" example:"123e4567-e89b-12d3-a456-426614174000"` | 
					
						
							|  |  |  | 	Phone string `json:"phone" example:"13800138000"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // EnterpriseInfoResponse 企业信息响应 | 
					
						
							|  |  |  | // @Description 企业信息响应 | 
					
						
							|  |  |  | type EnterpriseInfoResponse struct { | 
					
						
							|  |  |  | 	ID                string     `json:"id" example:"123e4567-e89b-12d3-a456-426614174000"` | 
					
						
							|  |  |  | 	CompanyName       string     `json:"company_name" example:"示例企业有限公司"` | 
					
						
							|  |  |  | 	UnifiedSocialCode string     `json:"unified_social_code" example:"91110000123456789X"` | 
					
						
							|  |  |  | 	LegalPersonName   string     `json:"legal_person_name" example:"张三"` | 
					
						
							|  |  |  | 	LegalPersonID     string     `json:"legal_person_id" example:"110101199001011234"` | 
					
						
							| 
									
										
										
										
											2025-07-28 01:46:39 +08:00
										 |  |  | 	LegalPersonPhone  string     `json:"legal_person_phone" example:"13800138000"` | 
					
						
							|  |  |  | 	EnterpriseAddress string     `json:"enterprise_address" example:"北京市朝阳区xxx街道xxx号"` | 
					
						
							|  |  |  | 	EnterpriseEmail   string     `json:"enterprise_email" example:"contact@example.com"` | 
					
						
							| 
									
										
										
										
											2025-07-13 16:36:20 +08:00
										 |  |  | 	CertifiedAt       *time.Time `json:"certified_at,omitempty" example:"2024-01-01T00:00:00Z"` | 
					
						
							|  |  |  | 	CreatedAt         time.Time  `json:"created_at" example:"2024-01-01T00:00:00Z"` | 
					
						
							|  |  |  | 	UpdatedAt         time.Time  `json:"updated_at" example:"2024-01-01T00:00:00Z"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // LoginUserResponse 用户登录响应 | 
					
						
							|  |  |  | // @Description 用户登录成功响应 | 
					
						
							|  |  |  | type LoginUserResponse struct { | 
					
						
							|  |  |  | 	User        *UserProfileResponse `json:"user"` | 
					
						
							|  |  |  | 	AccessToken string               `json:"access_token" example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."` | 
					
						
							|  |  |  | 	TokenType   string               `json:"token_type" example:"Bearer"` | 
					
						
							|  |  |  | 	ExpiresIn   int64                `json:"expires_in" example:"86400"` | 
					
						
							|  |  |  | 	LoginMethod string               `json:"login_method" example:"password"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // UserProfileResponse 用户信息响应 | 
					
						
							|  |  |  | // @Description 用户基本信息 | 
					
						
							|  |  |  | type UserProfileResponse struct { | 
					
						
							|  |  |  | 	ID             string                  `json:"id" example:"123e4567-e89b-12d3-a456-426614174000"` | 
					
						
							|  |  |  | 	Phone          string                  `json:"phone" example:"13800138000"` | 
					
						
							| 
									
										
										
										
											2025-07-20 20:53:26 +08:00
										 |  |  | 	Username       string                  `json:"username,omitempty" example:"admin"` | 
					
						
							|  |  |  | 	UserType       string                  `json:"user_type" example:"user"` | 
					
						
							|  |  |  | 	IsActive       bool                    `json:"is_active" example:"true"` | 
					
						
							|  |  |  | 	LastLoginAt    *time.Time              `json:"last_login_at,omitempty" example:"2024-01-01T00:00:00Z"` | 
					
						
							|  |  |  | 	LoginCount     int                     `json:"login_count" example:"10"` | 
					
						
							|  |  |  | 	Permissions    []string                `json:"permissions,omitempty" example:"['user:read','user:write']"` | 
					
						
							| 
									
										
										
										
											2025-07-13 16:36:20 +08:00
										 |  |  | 	EnterpriseInfo *EnterpriseInfoResponse `json:"enterprise_info,omitempty"` | 
					
						
							| 
									
										
										
										
											2025-07-15 13:21:34 +08:00
										 |  |  | 	IsCertified    bool                    `json:"is_certified" example:"false"` | 
					
						
							| 
									
										
										
										
											2025-07-13 16:36:20 +08:00
										 |  |  | 	CreatedAt      time.Time               `json:"created_at" example:"2024-01-01T00:00:00Z"` | 
					
						
							|  |  |  | 	UpdatedAt      time.Time               `json:"updated_at" example:"2024-01-01T00:00:00Z"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // SendCodeResponse 发送验证码响应 | 
					
						
							|  |  |  | // @Description 发送短信验证码成功响应 | 
					
						
							|  |  |  | type SendCodeResponse struct { | 
					
						
							|  |  |  | 	Message   string    `json:"message" example:"验证码发送成功"` | 
					
						
							|  |  |  | 	ExpiresAt time.Time `json:"expires_at" example:"2024-01-01T00:05:00Z"` | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // UpdateProfileResponse 更新用户信息响应 | 
					
						
							|  |  |  | // @Description 更新用户信息成功响应 | 
					
						
							|  |  |  | type UpdateProfileResponse struct { | 
					
						
							|  |  |  | 	ID        string    `json:"id" example:"123e4567-e89b-12d3-a456-426614174000"` | 
					
						
							|  |  |  | 	Phone     string    `json:"phone" example:"13800138000"` | 
					
						
							|  |  |  | 	UpdatedAt time.Time `json:"updated_at" example:"2024-01-01T00:00:00Z"` | 
					
						
							|  |  |  | } |