invite

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

View Source
var GetInviteListByUserRouter = router.Handler(func(c router.Context) {
	var (
		input Query
	)

	c.ResponseFunc(c.ShouldBindQuery(&input), func() schema.Response {
		return GetInviteListByUser(input)
	})
})
View Source
var GetRouter = router.Handler(func(c router.Context) {
	inviteId := c.Param("invite_id")

	c.ResponseFunc(nil, func() schema.Response {
		return Get(helper.NewContext(&c), inviteId)
	})
})

Functions

func DeleteById

func DeleteById(id string)

func Get

func Get(c helper.Context, id string) (res schema.Response)

func GetByStruct

func GetByStruct(m *model.InviteHistory) (res schema.Response)

内部使用, 不对外提供

func GetInviteListByUser

func GetInviteListByUser(input Query) (res schema.Response)

Types

type Query

type Query struct {
	schema.Query
}

Jump to

Keyboard shortcuts

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