Documentation
¶
Index ¶
- func ActivateAccount(c *gin.Context)
- func ArticleReply(req component.BetterRequest[ArticleReplyId]) component.Response
- func BookmarkArticle(req component.BetterRequest[BookmarkArticleReq]) component.Response
- func DeleteReply(req component.BetterRequest[DeleteReplyId]) component.Response
- func FollowUser(req component.BetterRequest[FollowUserReq]) component.Response
- func GetOAuthBindings(req component.BetterRequest[null]) component.Response
- func GetSiteStatistics() component.Response
- func LikeArticle(req component.BetterRequest[LikeArticleReq]) component.Response
- func Login(c *gin.Context)
- func LoginPublicKey(c *gin.Context)
- func Logout(c *gin.Context)
- func NotFound(c *gin.Context)
- func ProviderCallback(c *gin.Context)
- func ProviderLogin(c *gin.Context)
- func Register(c *gin.Context)
- func RenderRobotsTxt(c *gin.Context)
- func RenderRss(c *gin.Context)
- func RenderSitemapXml(c *gin.Context)
- func UnbindOAuth(req component.BetterRequest[null]) component.Response
- func UpdateArticleStatus(req component.BetterRequest[ArticleStatusReq]) component.Response
- func UpdateReply(req component.BetterRequest[UpdateReplyReq]) component.Response
- func WriteArticles(req component.BetterRequest[WriteArticleReq]) component.Response
- type ActivateAccountData
- type ArticleReplyId
- type ArticleStatusReq
- type BookmarkArticleReq
- type DeleteReplyId
- type FollowUserReq
- type ForumInfo
- type LikeArticleReq
- type LoginReq
- type SitemapURL
- type UpdateReplyReq
- type UserData
- type WriteArticleReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArticleReply ¶
func ArticleReply(req component.BetterRequest[ArticleReplyId]) component.Response
func BookmarkArticle ¶ added in v0.0.9
func BookmarkArticle(req component.BetterRequest[BookmarkArticleReq]) component.Response
func DeleteReply ¶
func DeleteReply(req component.BetterRequest[DeleteReplyId]) component.Response
func FollowUser ¶ added in v0.0.3
func FollowUser(req component.BetterRequest[FollowUserReq]) component.Response
func GetOAuthBindings ¶ added in v0.0.9
func GetOAuthBindings(req component.BetterRequest[null]) component.Response
GetOAuthBindings 获取用户的OAuth绑定状态
func GetSiteStatistics ¶
func LikeArticle ¶ added in v0.0.2
func LikeArticle(req component.BetterRequest[LikeArticleReq]) component.Response
func LoginPublicKey ¶ added in v0.2.1
func ProviderCallback ¶ added in v0.0.9
ProviderCallback 处理OAuth登录/绑定回调(根据登录状态自动判断)
func ProviderLogin ¶ added in v0.0.9
ProviderLogin 开始OAuth登录/绑定流程(根据登录状态自动判断)
func UnbindOAuth ¶ added in v0.0.9
func UnbindOAuth(req component.BetterRequest[null]) component.Response
UnbindOAuth 解绑OAuth账户
func UpdateArticleStatus ¶ added in v0.2.8
func UpdateArticleStatus(req component.BetterRequest[ArticleStatusReq]) component.Response
func UpdateReply ¶ added in v0.2.8
func UpdateReply(req component.BetterRequest[UpdateReplyReq]) component.Response
func WriteArticles ¶
func WriteArticles(req component.BetterRequest[WriteArticleReq]) component.Response
WriteArticles 创建或更新文章。
Types ¶
type ActivateAccountData ¶ added in v0.1.1
type ActivateAccountData struct {
Title string
Status string
Message string
Success bool
Description string
}
ActivateAccountData 激活页面数据
type ArticleReplyId ¶
type ArticleStatusReq ¶ added in v0.2.8
type BookmarkArticleReq ¶ added in v0.0.9
type DeleteReplyId ¶
type DeleteReplyId struct {
ReplyId uint64 `json:"replyId"`
}
type FollowUserReq ¶ added in v0.0.3
type ForumInfo ¶ added in v0.0.4
func GetGooseForumInfo ¶ added in v0.0.4
func GetGooseForumInfo() ForumInfo
type LikeArticleReq ¶ added in v0.0.2
type SitemapURL ¶ added in v0.0.9
type UpdateReplyReq ¶ added in v0.2.8
type UserData ¶ added in v0.1.1
type UserData struct {
Articles []*vo.ArticlesSimpleVo
UserDetail *vo.UserCard
FollowingList []*users.EntityComplete
FollowerList []*users.EntityComplete
Activities []*userActivities.Entity
MyFollowingIds []uint64
IsOwnProfile bool
}
type WriteArticleReq ¶
type WriteArticleReq struct {
Id int64 `json:"id"`
Content string `json:"content" validate:"required"`
Title string `json:"title" validate:"required"`
Type int8 `json:"type"`
CategoryId []uint64 `json:"categoryId" validate:"min=1,max=3"`
ArticleStatus int8 `json:"articleStatus" validate:"oneof=0 1"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.