Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSuscription

func CreateSuscription(driverID primitive.ObjectID, renew bool) error

CreateSuscription 创建用户订阅信息

func LoadRoutes

func LoadRoutes(r router.Router)

LoadRoutes 路由添加

Types

type RespSuscirption

type RespSuscirption struct {
	model.Suscription `json:",inline"`
	IsExpired         bool `json:"isExpired"`
}

RespSuscirption 系统内部订阅状态返回

func GetSuscription

func GetSuscription(driverID primitive.ObjectID) (*RespSuscirption, error)

GetSuscription 获取订阅状态