Documentation
¶
Index ¶
- type AssetHandler
- type AuthHandler
- func (a *AuthHandler) EthereumEip712Signature(c *gin.Context)
- func (a *AuthHandler) EthereumEip712SignatureNonce(c *gin.Context)
- func (a *AuthHandler) GetPayload(c *gin.Context)
- func (a *AuthHandler) GetPrivateKey() *ecdsa.PrivateKey
- func (a *AuthHandler) GoogleOauthCallback(c *gin.Context)
- func (a *AuthHandler) LoginWithEmail(c *gin.Context)
- func (a *AuthHandler) Refresh(c *gin.Context)
- func (a *AuthHandler) SendVerificationCode(c *gin.Context)
- func (a *AuthHandler) SimpleOauthHandler(c *gin.Context)
- type BannerHandler
- type GroupHandler
- type PointHandler
- func (p *PointHandler) AddPoints(c *gin.Context)
- func (p *PointHandler) DeletePoints(c *gin.Context)
- func (p *PointHandler) ExchangePoints(c *gin.Context)
- func (p *PointHandler) GetUserLeaderboard(c *gin.Context)
- func (p *PointHandler) GetUserPoints(c *gin.Context)
- func (p *PointHandler) UpdatePoints(c *gin.Context)
- type PostHandler
- func (p *PostHandler) Comment(c *gin.Context)
- func (p *PostHandler) CommentLike(c *gin.Context)
- func (p *PostHandler) CreatePost(c *gin.Context)
- func (p *PostHandler) Detail(c *gin.Context)
- func (p *PostHandler) Edit(c *gin.Context)
- func (p *PostHandler) Like(c *gin.Context)
- func (p *PostHandler) ListPosts(c *gin.Context)
- func (p *PostHandler) PostComments(c *gin.Context)
- func (p *PostHandler) Reply(c *gin.Context)
- func (p *PostHandler) Share(c *gin.Context)
- func (p *PostHandler) View(c *gin.Context)
- type TopicHandler
- type UserHandler
- func (u *UserHandler) EditProfile(c *gin.Context)
- func (u *UserHandler) Following(c *gin.Context)
- func (u *UserHandler) Info(c *gin.Context)
- func (u *UserHandler) QueryFollowedList(c *gin.Context)
- func (u *UserHandler) QueryFollowerList(c *gin.Context)
- func (u *UserHandler) QueryUserInfo(c *gin.Context)
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) OssPolicy ¶
func (o *AssetHandler) OssPolicy(c *gin.Context)
OssPolicy https://help.aliyun.com/zh/oss/developer-reference/postobject#section-d5z-1ww-wdb 需要绑定自定义域名: https://help.aliyun.com/zh/oss/user-guide/map-custom-domain-names-5
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) DeletePoints ¶
func (p *PointHandler) DeletePoints(c *gin.Context)
DeletePoints 删除用户积分
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) 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) PostComments ¶
func (p *PostHandler) PostComments(c *gin.Context)
PostComments 查询 post 的评论列表
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) 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)
Click to show internal directories.
Click to hide internal directories.