web

package
v0.0.0-...-7efebb4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTKey = []byte("k6CswdUm77WKcbM68UQUuxVsHSpTCwgK")

Functions

This section is empty.

Types

type ArticleHandler

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

func (*ArticleHandler) Detail

func (h *ArticleHandler) Detail(ctx *gin.Context)

func (*ArticleHandler) Edit

func (h *ArticleHandler) Edit(ctx *gin.Context)

func (*ArticleHandler) List

func (h *ArticleHandler) List(ctx *gin.Context)

func (*ArticleHandler) PubDetail

func (h *ArticleHandler) PubDetail(ctx *gin.Context)

func (*ArticleHandler) Publish

func (h *ArticleHandler) Publish(ctx *gin.Context)

func (*ArticleHandler) RegisterRoutes

func (h *ArticleHandler) RegisterRoutes(server *gin.Engine)

func (*ArticleHandler) Withdraw

func (h *ArticleHandler) Withdraw(ctx *gin.Context)

type UserClaim

type UserClaim struct {
	jwt.RegisteredClaims
	Id        int64
	UserAgent string
	Ssid      string
}

type UserHandler

type UserHandler struct {
	EmailRegExp *regexp.Regexp
	// contains filtered or unexported fields
}

func NewUserHandler

func NewUserHandler(svc service.UserService, codeSvc service.CodeService, logger logger.Logger) *UserHandler

func (*UserHandler) Edit

func (h *UserHandler) Edit(ctx *gin.Context)

func (*UserHandler) Login

func (h *UserHandler) Login(ctx *gin.Context)

func (*UserHandler) LoginJWT

func (h *UserHandler) LoginJWT(ctx *gin.Context)

func (*UserHandler) LoginSMS

func (h *UserHandler) LoginSMS(ctx *gin.Context)

func (*UserHandler) Profile

func (h *UserHandler) Profile(ctx *gin.Context)

func (*UserHandler) RegisterRoutes

func (h *UserHandler) RegisterRoutes(server *gin.Engine)

func (*UserHandler) SendSMSLoginCode

func (h *UserHandler) SendSMSLoginCode(ctx *gin.Context)

func (*UserHandler) SignUp

func (h *UserHandler) SignUp(ctx *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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