mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			637 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			637 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package models
 | 
						|
 | 
						|
// UserPlan 用户的套餐
 | 
						|
type UserPlan struct {
 | 
						|
	Id     uint64 `field:"id"`     // ID
 | 
						|
	UserId uint32 `field:"userId"` // 用户ID
 | 
						|
	PlanId uint32 `field:"planId"` // 套餐ID
 | 
						|
	IsOn   uint8  `field:"isOn"`   // 是否启用
 | 
						|
	DayTo  string `field:"dayTo"`  // 结束日期
 | 
						|
	State  uint8  `field:"state"`  // 状态
 | 
						|
}
 | 
						|
 | 
						|
type UserPlanOperator struct {
 | 
						|
	Id     interface{} // ID
 | 
						|
	UserId interface{} // 用户ID
 | 
						|
	PlanId interface{} // 套餐ID
 | 
						|
	IsOn   interface{} // 是否启用
 | 
						|
	DayTo  interface{} // 结束日期
 | 
						|
	State  interface{} // 状态
 | 
						|
}
 | 
						|
 | 
						|
func NewUserPlanOperator() *UserPlanOperator {
 | 
						|
	return &UserPlanOperator{}
 | 
						|
}
 |