Back to

Package api

Latest Go to latest

The highest tagged major version is .

Published: Mar 18, 2020 | License: MIT | Module:


func CreateSuscription

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

CreateSuscription 创建用户订阅信息

func LoadRoutes

func LoadRoutes(r router.Router)

LoadRoutes 路由添加

type RespSuscirption

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

RespSuscirption 系统内部订阅状态返回

func GetSuscription

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

GetSuscription 获取订阅状态

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier