handler

package
v0.0.0-...-c266f6d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resp

func Resp(ctx *gin.Context, code int, msg string, data interface{})

func SetCookies

func SetCookies(ctx *gin.Context, data map[string]string, domain string)

Types

type AddForm

type AddForm struct {
	Key   string `json:"key"`
	Site  string `json:"site"`
	Url   string `json:"url"`
	Title string `json:"title"`
}

type Auth

type Auth struct {
	// contains filtered or unexported fields
}

func NewAuth

func NewAuth() *Auth

func (*Auth) Auth

func (o *Auth) Auth(ctx *gin.Context)

func (*Auth) Callback

func (o *Auth) Callback(ctx *gin.Context)

func (*Auth) LoginInfo

func (o *Auth) LoginInfo(ctx *gin.Context)

func (*Auth) Platforms

func (o *Auth) Platforms(ctx *gin.Context)

type Favor

type Favor struct {
	// contains filtered or unexported fields
}

func NewFavor

func NewFavor() *Favor

func (*Favor) Add

func (f *Favor) Add(ctx *gin.Context)

func (*Favor) List

func (f *Favor) List(ctx *gin.Context)

func (*Favor) Remove

func (f *Favor) Remove(ctx *gin.Context)

type Index

type Index struct {
	// contains filtered or unexported fields
}

func NewIndex

func NewIndex() *Index

func (*Index) News

func (idx *Index) News(ctx *gin.Context)

func (*Index) Sites

func (idx *Index) Sites(ctx *gin.Context)

type ListForm

type ListForm struct {
	Site    string `form:"s"`
	Keyword string `form:"keyword"`
}

type RemoveForm

type RemoveForm struct {
	Site string `json:"site"`
	Key  string `json:"key"`
}

type RespSt

type RespSt struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

type Stat

type Stat struct{}

func NewStat

func NewStat() *Stat

func (*Stat) Online

func (ctr *Stat) Online(c *gin.Context)

func (*Stat) OnlineList

func (ctr *Stat) OnlineList(c *gin.Context)

type User

type User struct {
	// contains filtered or unexported fields
}

func NewUser

func NewUser() *User

func (*User) List

func (u *User) List(ctx *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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