vendorBilibili

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginWithQR

func LoginWithQR(ctx *gin.Context)

func LoginWithSMS

func LoginWithSMS(ctx *gin.Context)

func Logout

func Logout(ctx *gin.Context)

func Me

func Me(ctx *gin.Context)

func NewCaptcha

func NewCaptcha(ctx *gin.Context)

func NewQRCode

func NewQRCode(ctx *gin.Context)

func NewSMS

func NewSMS(ctx *gin.Context)

func Parse

func Parse(ctx *gin.Context)

Types

type BilibiliMeResp

type BilibiliMeResp = model.VendorMeResp[*bilibili.UserInfoResp]

type ParseReq

type ParseReq struct {
	URL string `json:"url"`
}

func (*ParseReq) Decode

func (r *ParseReq) Decode(ctx *gin.Context) error

func (*ParseReq) Validate

func (r *ParseReq) Validate() error

type QRCodeLoginReq

type QRCodeLoginReq struct {
	Key string `json:"key"`
}

func (*QRCodeLoginReq) Decode

func (r *QRCodeLoginReq) Decode(ctx *gin.Context) error

func (*QRCodeLoginReq) Validate

func (r *QRCodeLoginReq) Validate() error

type SMSLoginReq

type SMSLoginReq struct {
	Telephone  string `json:"telephone"`
	CaptchaKey string `json:"captchaKey"`
	Code       string `json:"code"`
}

func (*SMSLoginReq) Decode

func (r *SMSLoginReq) Decode(ctx *gin.Context) error

func (*SMSLoginReq) Validate

func (r *SMSLoginReq) Validate() error

type SMSReq

type SMSReq struct {
	Token     string `json:"token"`
	Challenge string `json:"challenge"`
	Validate_ string `json:"validate"`
	Telephone string `json:"telephone"`
}

func (*SMSReq) Decode

func (r *SMSReq) Decode(ctx *gin.Context) error

func (*SMSReq) Validate

func (r *SMSReq) Validate() error

Jump to

Keyboard shortcuts

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