| 
									
										
										
										
											2025-07-15 13:21:34 +08:00
										 |  |  | package queries | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // ListSubscriptionsQuery 订阅列表查询 | 
					
						
							|  |  |  | type ListSubscriptionsQuery struct { | 
					
						
							| 
									
										
										
										
											2025-07-20 20:53:26 +08:00
										 |  |  | 	Page      int    `form:"page" binding:"omitempty,min=1" comment:"页码"` | 
					
						
							|  |  |  | 	PageSize  int    `form:"page_size" binding:"omitempty,min=1,max=100" comment:"每页数量"` | 
					
						
							| 
									
										
										
										
											2025-08-02 02:54:21 +08:00
										 |  |  | 	UserID    string `form:"user_id" binding:"omitempty" comment:"用户ID"` | 
					
						
							| 
									
										
										
										
											2025-07-20 20:53:26 +08:00
										 |  |  | 	Keyword   string `form:"keyword" binding:"omitempty,max=100" comment:"搜索关键词"` | 
					
						
							|  |  |  | 	SortBy    string `form:"sort_by" binding:"omitempty,oneof=created_at updated_at price" comment:"排序字段"` | 
					
						
							|  |  |  | 	SortOrder string `form:"sort_order" binding:"omitempty,sort_order" comment:"排序方向"` | 
					
						
							| 
									
										
										
										
											2025-08-02 02:54:21 +08:00
										 |  |  | 	 | 
					
						
							|  |  |  | 	// 新增筛选字段 | 
					
						
							|  |  |  | 	CompanyName string `form:"company_name" binding:"omitempty,max=100" comment:"企业名称"` | 
					
						
							|  |  |  | 	ProductName string `form:"product_name" binding:"omitempty,max=100" comment:"产品名称"` | 
					
						
							|  |  |  | 	StartTime   string `form:"start_time" binding:"omitempty,datetime=2006-01-02 15:04:05" comment:"订阅开始时间"` | 
					
						
							|  |  |  | 	EndTime     string `form:"end_time" binding:"omitempty,datetime=2006-01-02 15:04:05" comment:"订阅结束时间"` | 
					
						
							| 
									
										
										
										
											2025-07-15 13:21:34 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // GetSubscriptionQuery 获取订阅详情查询 | 
					
						
							|  |  |  | type GetSubscriptionQuery struct { | 
					
						
							| 
									
										
										
										
											2025-07-20 20:53:26 +08:00
										 |  |  | 	ID string `uri:"id" binding:"required,uuid" comment:"订阅ID"` | 
					
						
							| 
									
										
										
										
											2025-07-15 13:21:34 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // GetUserSubscriptionsQuery 获取用户订阅查询 | 
					
						
							|  |  |  | type GetUserSubscriptionsQuery struct { | 
					
						
							| 
									
										
										
										
											2025-07-20 20:53:26 +08:00
										 |  |  | 	UserID string `form:"user_id" binding:"required,uuid" comment:"用户ID"` | 
					
						
							| 
									
										
										
										
											2025-07-15 13:21:34 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // GetProductSubscriptionsQuery 获取产品订阅查询 | 
					
						
							|  |  |  | type GetProductSubscriptionsQuery struct { | 
					
						
							| 
									
										
										
										
											2025-07-20 20:53:26 +08:00
										 |  |  | 	ProductID string `form:"product_id" binding:"required,uuid" comment:"产品ID"` | 
					
						
							| 
									
										
										
										
											2025-07-15 13:21:34 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // GetActiveSubscriptionsQuery 获取活跃订阅查询 | 
					
						
							|  |  |  | type GetActiveSubscriptionsQuery struct { | 
					
						
							| 
									
										
										
										
											2025-07-20 20:53:26 +08:00
										 |  |  | 	UserID string `form:"user_id" binding:"omitempty,uuid" comment:"用户ID"` | 
					
						
							| 
									
										
										
										
											2025-07-15 13:21:34 +08:00
										 |  |  | } |