api

package
v0.0.0-...-8be1489 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_PHONE_CAPTCHA = 10

Variables

This section is empty.

Functions

func AddFriend

func AddFriend(c *gin.Context)

func AlipayNotify

func AlipayNotify(c *gin.Context)

func BindUserPhone

func BindUserPhone(c *gin.Context)

用户绑定手机号

func ChangeAvatar

func ChangeAvatar(c *gin.Context)

修改头像

func ChangeNickname

func ChangeNickname(c *gin.Context)

修改昵称

func ChangeUserPassword

func ChangeUserPassword(c *gin.Context)

修改密码

func ChangeUserStatus

func ChangeUserStatus(c *gin.Context)

修改用户状态

func CreatePost

func CreatePost(c *gin.Context)

func CreatePostComment

func CreatePostComment(c *gin.Context)

func CreatePostCommentReply

func CreatePostCommentReply(c *gin.Context)

func DeleteFriend

func DeleteFriend(c *gin.Context)

func DeletePost

func DeletePost(c *gin.Context)

func DeletePostComment

func DeletePostComment(c *gin.Context)

func DeletePostCommentReply

func DeletePostCommentReply(c *gin.Context)

func DownloadAttachment

func DownloadAttachment(c *gin.Context)

func DownloadAttachmentPrecheck

func DownloadAttachmentPrecheck(c *gin.Context)

func GeneratePath

func GeneratePath(s string) string

func GetCaptcha

func GetCaptcha(c *gin.Context)

func GetContacts

func GetContacts(c *gin.Context)

func GetFileExt

func GetFileExt(s string) (string, error)

func GetImageSize

func GetImageSize(img image.Rectangle) (int, int)

func GetMessages

func GetMessages(c *gin.Context)

func GetPost

func GetPost(c *gin.Context)

func GetPostCollection

func GetPostCollection(c *gin.Context)

func GetPostComments

func GetPostComments(c *gin.Context)

func GetPostList

func GetPostList(c *gin.Context)

func GetPostStar

func GetPostStar(c *gin.Context)

func GetPostTags

func GetPostTags(c *gin.Context)

func GetSuggestTags

func GetSuggestTags(c *gin.Context)

func GetSuggestUsers

func GetSuggestUsers(c *gin.Context)

func GetUnreadMsgCount

func GetUnreadMsgCount(c *gin.Context)

func GetUserCollections

func GetUserCollections(c *gin.Context)

func GetUserInfo

func GetUserInfo(c *gin.Context)

获取用户基本信息

func GetUserPosts

func GetUserPosts(c *gin.Context)

func GetUserProfile

func GetUserProfile(c *gin.Context)
func GetUserRechargeLink(c *gin.Context)

func GetUserRechargeResult

func GetUserRechargeResult(c *gin.Context)

func GetUserStars

func GetUserStars(c *gin.Context)

func GetUserWalletBills

func GetUserWalletBills(c *gin.Context)

func Initialize

func Initialize()

func LockPost

func LockPost(c *gin.Context)

func Login

func Login(c *gin.Context)

Login 用户登录

func PostCaptcha

func PostCaptcha(c *gin.Context)

func PostCollection

func PostCollection(c *gin.Context)

func PostStar

func PostStar(c *gin.Context)

func ReadMessage

func ReadMessage(c *gin.Context)

func Register

func Register(c *gin.Context)

Register 用户注册

func RejectFriend

func RejectFriend(c *gin.Context)

func RequestingFriend

func RequestingFriend(c *gin.Context)

func SendUserWhisper

func SendUserWhisper(c *gin.Context)

func StickPost

func StickPost(c *gin.Context)

func SyncSearchIndex

func SyncSearchIndex(c *gin.Context)

func UploadAttachment

func UploadAttachment(c *gin.Context)

func Version

func Version(c *gin.Context)

func VisiblePost

func VisiblePost(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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