Back to godoc.org

Package api

v0.0.0-...-afd247e
Latest Go to latest

The highest tagged major version is .

Published: Mar 18, 2020 | License: MIT | Module: github.com/chadhao/logit

Index

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