2020-12-11 21:39:10 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								package models
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-11 08:30:53 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								// UserBill 用户账单
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-11 21:39:10 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								type UserBill struct {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Id          uint64  `field:"id"`          // ID
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UserId      uint32  `field:"userId"`      // 用户ID
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Type        string  `field:"type"`        // 消费类型
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-21 15:45:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									PricePeriod string  `field:"pricePeriod"` // 计费周期
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-11 21:39:10 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Description string  `field:"description"` // 描述
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Amount      float64 `field:"amount"`      // 消费数额
							 | 
						
					
						
							
								
									
										
										
										
											2022-01-23 19:16:52 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									DayFrom     string  `field:"dayFrom"`     // YYYYMMDD
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DayTo       string  `field:"dayTo"`       // YYYYMMDD
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-11 21:39:10 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Month       string  `field:"month"`       // 帐期YYYYMM
							 | 
						
					
						
							
								
									
										
										
										
											2022-03-22 22:11:32 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									CanPay      bool    `field:"canPay"`      // 是否可以支付
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									IsPaid      bool    `field:"isPaid"`      // 是否已支付
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-11 21:39:10 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									PaidAt      uint64  `field:"paidAt"`      // 支付时间
							 | 
						
					
						
							
								
									
										
										
										
											2021-11-11 08:30:53 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									Code        string  `field:"code"`        // 账单编号
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-11 21:39:10 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreatedAt   uint64  `field:"createdAt"`   // 创建时间
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-21 15:45:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									CreatedDay  string  `field:"createdDay"`  // 创建日期
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 10:03:29 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									State       uint8   `field:"state"`       // 状态
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-11 21:39:10 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								type UserBillOperator struct {
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 10:03:29 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									Id          any // ID
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									UserId      any // 用户ID
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Type        any // 消费类型
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-21 15:45:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									PricePeriod any // 计费周期
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 10:03:29 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									Description any // 描述
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Amount      any // 消费数额
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DayFrom     any // YYYYMMDD
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									DayTo       any // YYYYMMDD
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Month       any // 帐期YYYYMM
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CanPay      any // 是否可以支付
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									IsPaid      any // 是否已支付
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									PaidAt      any // 支付时间
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									Code        any // 账单编号
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									CreatedAt   any // 创建时间
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-21 15:45:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									CreatedDay  any // 创建日期
							 | 
						
					
						
							
								
									
										
										
										
											2022-10-14 10:03:29 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									State       any // 状态
							 | 
						
					
						
							
								
									
										
										
										
											2020-12-11 21:39:10 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								func NewUserBillOperator() *UserBillOperator {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									return &UserBillOperator{}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |