Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Record ¶
type Record struct { ID primitive.ObjectID `bson:"_id" json:"id" valid:"required"` DriverID primitive.ObjectID `bson:"driverID" json:"driverID" valid:"required"` Charge int64 `bson:"charge" json:"charge" valid:"required"` Refund int64 `bson:"refund" json:"refund" valid:"-"` StartDate string `bson:"startDate" json:"startDate" valid:"required"` EndDate string `bson:"endDate" json:"endDate" valid:"required"` CreatedAt time.Time `bson:"createdAt" json:"createdAt" valid:"required"` }
Record 订阅记录
func GetRecords ¶
GetRecords 获取用户的订阅记录
type Suscription ¶
type Suscription struct { DriverID primitive.ObjectID `bson:"_id" json:"driverID" valid:"required"` Renew bool `bson:"renew" json:"renew" valid:"required"` ExpiredDate string `bson:"expiredDate" json:"expiredDate" valid:"required"` CreatedAt time.Time `bson:"createdAt" json:"createdAt" valid:"required"` }
Suscription 用户的订阅状态
func GetSuscription ¶
func GetSuscription(driverID primitive.ObjectID) (*Suscription, error)
GetSuscription 获取用户的订阅状态
Click to show internal directories.
Click to hide internal directories.