handler

package
v0.0.0-...-32bdbe6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetHandler

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

func NewAssetHandler

func NewAssetHandler(svc service.AssetService) *AssetHandler

func (*AssetHandler) Asset

func (o *AssetHandler) Asset(c *gin.Context)

根据图片的UUID打开图片

type AuthHandler

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

func NewAuthHandler

func NewAuthHandler(user service.UserService, sigNonce service.SigNonceService) *AuthHandler

func (*AuthHandler) EthereumEip712Signature

func (a *AuthHandler) EthereumEip712Signature(c *gin.Context)

func (*AuthHandler) EthereumEip712SignatureNonce

func (a *AuthHandler) EthereumEip712SignatureNonce(c *gin.Context)

func (*AuthHandler) GetPayload

func (a *AuthHandler) GetPayload(c *gin.Context)

func (*AuthHandler) GetPrivateKey

func (a *AuthHandler) GetPrivateKey() *ecdsa.PrivateKey

func (*AuthHandler) GoogleOauthCallback

func (a *AuthHandler) GoogleOauthCallback(c *gin.Context)

func (*AuthHandler) LoginWithEmail

func (a *AuthHandler) LoginWithEmail(c *gin.Context)

LoginWithEmail 如果没有注册,则注册

func (*AuthHandler) Refresh

func (a *AuthHandler) Refresh(c *gin.Context)

func (*AuthHandler) SendVerificationCode

func (a *AuthHandler) SendVerificationCode(c *gin.Context)

func (*AuthHandler) SimpleOauthHandler

func (a *AuthHandler) SimpleOauthHandler(c *gin.Context)

根据邮箱直接登陆

type BannerHandler

type BannerHandler struct {
}

func (*BannerHandler) List

func (b *BannerHandler) List(c *gin.Context)

type GroupHandler

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

func NewGroupHandler

func NewGroupHandler(group service.GroupService) *GroupHandler

func (*GroupHandler) AddUser

func (g *GroupHandler) AddUser(c *gin.Context)

func (*GroupHandler) Create

func (g *GroupHandler) Create(c *gin.Context)

func (*GroupHandler) Detail

func (g *GroupHandler) Detail(c *gin.Context)

func (*GroupHandler) Groups

func (g *GroupHandler) Groups(c *gin.Context)

type PointHandler

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

func NewPointHandler

func NewPointHandler(point service.PointService) *PointHandler

func (*PointHandler) AddPoints

func (p *PointHandler) AddPoints(c *gin.Context)

AddPoints 添加积分奖励

func (*PointHandler) DeletePoints

func (p *PointHandler) DeletePoints(c *gin.Context)

DeletePoints 删除用户积分

func (*PointHandler) ExchangePoints

func (p *PointHandler) ExchangePoints(c *gin.Context)

兑换积分

func (*PointHandler) GetUserLeaderboard

func (p *PointHandler) GetUserLeaderboard(c *gin.Context)

GetUserLeaderboard 获取用户排行榜

func (*PointHandler) GetUserPoints

func (p *PointHandler) GetUserPoints(c *gin.Context)

GetUserPoints 获取用户积分

func (*PointHandler) UpdatePoints

func (p *PointHandler) UpdatePoints(c *gin.Context)

UpdatePoints 更新用户积分

type PostHandler

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

func NewPostHandler

func NewPostHandler(post service.PostService, user service.UserService) *PostHandler

func (*PostHandler) Comment

func (p *PostHandler) Comment(c *gin.Context)

Comment 评论

func (*PostHandler) CommentLike

func (p *PostHandler) CommentLike(c *gin.Context)

func (*PostHandler) CreatePost

func (p *PostHandler) CreatePost(c *gin.Context)

func (*PostHandler) Detail

func (p *PostHandler) Detail(c *gin.Context)

func (*PostHandler) Edit

func (p *PostHandler) Edit(c *gin.Context)

func (*PostHandler) Like

func (p *PostHandler) Like(c *gin.Context)

func (*PostHandler) ListPosts

func (p *PostHandler) ListPosts(c *gin.Context)

ListPosts 查询post列表

func (*PostHandler) PostComments

func (p *PostHandler) PostComments(c *gin.Context)

PostComments 查询 post 的评论列表

func (*PostHandler) Reply

func (p *PostHandler) Reply(c *gin.Context)

Reply 回复评论

func (*PostHandler) Share

func (p *PostHandler) Share(c *gin.Context)

func (*PostHandler) View

func (p *PostHandler) View(c *gin.Context)

type TopicHandler

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

func NewTopicHandler

func NewTopicHandler(topic service.TopicService) *TopicHandler

func (*TopicHandler) Create

func (t *TopicHandler) Create(c *gin.Context)

type UserHandler

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

func NewUserHandler

func NewUserHandler(user service.UserService) *UserHandler

func (*UserHandler) EditProfile

func (u *UserHandler) EditProfile(c *gin.Context)

func (*UserHandler) Following

func (u *UserHandler) Following(c *gin.Context)

Following 关注用户

func (*UserHandler) Info

func (u *UserHandler) Info(c *gin.Context)

func (*UserHandler) QueryFollowedList

func (u *UserHandler) QueryFollowedList(c *gin.Context)

QueryFollowedList 查询关注 uuid 的人

func (*UserHandler) QueryFollowerList

func (u *UserHandler) QueryFollowerList(c *gin.Context)

QueryFollowerList 查询 uuid 的关注者

func (*UserHandler) QueryUserInfo

func (u *UserHandler) QueryUserInfo(c *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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