api

package
Version: v0.0.0-...-afd247e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 9 Imported by: 0

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 获取订阅状态

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL