Documentation ¶
Index ¶
- type Dao
- func (d *Dao) BulkPushDoc(data []map[string]interface{}) (bool, error)
- func (d *Dao) CreateAttachment(attachment *model.Attachment) (*model.Attachment, error)
- func (d *Dao) CreateComment(comment *model.Comment) (*model.Comment, error)
- func (d *Dao) CreateCommentContent(content *model.CommentContent) (*model.CommentContent, error)
- func (d *Dao) CreateCommentReply(reply *model.CommentReply) (*model.CommentReply, error)
- func (d *Dao) CreateMessage(msg *model.Message) (*model.Message, error)
- func (d *Dao) CreatePost(post *model.Post) (*model.Post, error)
- func (d *Dao) CreatePostCollection(postID, userID int64) (*model.PostCollection, error)
- func (d *Dao) CreatePostContent(content *model.PostContent) (*model.PostContent, error)
- func (d *Dao) CreatePostStar(postID, userID int64) (*model.PostStar, error)
- func (d *Dao) CreateRecharge(userId, amount int64) (*model.WalletRecharge, error)
- func (d *Dao) CreateSearchIndex(indexName string)
- func (d *Dao) CreateTag(tag *model.Tag) (*model.Tag, error)
- func (d *Dao) CreateUser(user *model.User) (*model.User, error)
- func (d *Dao) DelDoc(indexName, id string) error
- func (d *Dao) DeleteComment(comment *model.Comment) error
- func (d *Dao) DeleteCommentReply(reply *model.CommentReply) error
- func (d *Dao) DeletePost(post *model.Post) error
- func (d *Dao) DeletePostCollection(p *model.PostCollection) error
- func (d *Dao) DeletePostStar(p *model.PostStar) error
- func (d *Dao) DeleteTag(tag *model.Tag) error
- func (d *Dao) GetCommentByID(id int64) (*model.Comment, error)
- func (d *Dao) GetCommentContentsByIDs(ids []int64) ([]*model.CommentContent, error)
- func (d *Dao) GetCommentCount(conditions *model.ConditionsT) (int64, error)
- func (d *Dao) GetCommentRepliesByID(ids []int64) ([]*model.CommentReplyFormated, error)
- func (d *Dao) GetCommentReplyByID(id int64) (*model.CommentReply, error)
- func (d *Dao) GetComments(conditions *model.ConditionsT, offset, limit int) ([]*model.Comment, error)
- func (d *Dao) GetLatestPhoneCaptcha(phone string) (*model.Captcha, error)
- func (d *Dao) GetMessageByID(id int64) (*model.Message, error)
- func (d *Dao) GetMessageCount(conditions *model.ConditionsT) (int64, error)
- func (d *Dao) GetMessages(conditions *model.ConditionsT, offset, limit int) ([]*model.MessageFormated, error)
- func (d *Dao) GetPostAttatchmentBill(postID, userID int64) (*model.PostAttachmentBill, error)
- func (d *Dao) GetPostByID(id int64) (*model.Post, error)
- func (d *Dao) GetPostContentByID(id int64) (*model.PostContent, error)
- func (d *Dao) GetPostContentsByIDs(ids []int64) ([]*model.PostContent, error)
- func (d *Dao) GetPostCount(conditions *model.ConditionsT) (int64, error)
- func (d *Dao) GetPosts(conditions *model.ConditionsT, offset, limit int) ([]*model.Post, error)
- func (d *Dao) GetRechargeByID(id int64) (*model.WalletRecharge, error)
- func (d *Dao) GetTags(conditions *model.ConditionsT, offset, limit int) ([]*model.Tag, error)
- func (d *Dao) GetTagsByKeyword(keyword string) ([]*model.Tag, error)
- func (d *Dao) GetUnreadCount(userID int64) (int64, error)
- func (d *Dao) GetUserByID(id int64) (*model.User, error)
- func (d *Dao) GetUserByPhone(phone string) (*model.User, error)
- func (d *Dao) GetUserByUsername(username string) (*model.User, error)
- func (d *Dao) GetUserPostCollection(postID, userID int64) (*model.PostCollection, error)
- func (d *Dao) GetUserPostCollectionCount(userID int64) (int64, error)
- func (d *Dao) GetUserPostCollections(userID int64, offset, limit int) ([]*model.PostCollection, error)
- func (d *Dao) GetUserPostStar(postID, userID int64) (*model.PostStar, error)
- func (d *Dao) GetUserPostStarCount(userID int64) (int64, error)
- func (d *Dao) GetUserPostStars(userID int64, offset, limit int) ([]*model.PostStar, error)
- func (d *Dao) GetUserWalletBillCount(userID int64) (int64, error)
- func (d *Dao) GetUserWalletBills(userID int64, offset, limit int) ([]*model.WalletStatement, error)
- func (d *Dao) GetUsersByIDs(ids []int64) ([]*model.User, error)
- func (d *Dao) GetUsersByKeyword(keyword string) ([]*model.User, error)
- func (d *Dao) HandlePostAttachmentBought(post *model.Post, user *model.User) error
- func (d *Dao) HandleRechargeSuccess(recharge *model.WalletRecharge, tradeNo string) error
- func (d *Dao) LockPost(post *model.Post) error
- func (d *Dao) QueryAll(q *QueryT, indexName string, offset, limit int) (*zinc.QueryResultT, error)
- func (d *Dao) QuerySearch(indexName, query string, offset, limit int) (*zinc.QueryResultT, error)
- func (d *Dao) QueryTagSearch(indexName, query string, offset, limit int) (*zinc.QueryResultT, error)
- func (d *Dao) ReadMessage(message *model.Message) error
- func (d *Dao) SendPhoneCaptcha(phone string) error
- func (d *Dao) StickPost(post *model.Post) error
- func (d *Dao) UpdatePost(post *model.Post) error
- func (d *Dao) UpdateUser(user *model.User) error
- func (d *Dao) UsePhoneCaptcha(captcha *model.Captcha) error
- type JuhePhoneCaptchaRsp
- type QueryT
- type SearchType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
func (*Dao) CreateAttachment ¶
func (d *Dao) CreateAttachment(attachment *model.Attachment) (*model.Attachment, error)
func (*Dao) CreateComment ¶
func (*Dao) CreateCommentContent ¶
func (d *Dao) CreateCommentContent(content *model.CommentContent) (*model.CommentContent, error)
func (*Dao) CreateCommentReply ¶
func (d *Dao) CreateCommentReply(reply *model.CommentReply) (*model.CommentReply, error)
func (*Dao) CreatePostCollection ¶
func (d *Dao) CreatePostCollection(postID, userID int64) (*model.PostCollection, error)
func (*Dao) CreatePostContent ¶
func (d *Dao) CreatePostContent(content *model.PostContent) (*model.PostContent, error)
func (*Dao) CreatePostStar ¶
func (*Dao) CreateRecharge ¶
func (d *Dao) CreateRecharge(userId, amount int64) (*model.WalletRecharge, error)
func (*Dao) CreateSearchIndex ¶
func (*Dao) DeleteCommentReply ¶
func (d *Dao) DeleteCommentReply(reply *model.CommentReply) error
func (*Dao) DeletePostCollection ¶
func (d *Dao) DeletePostCollection(p *model.PostCollection) error
func (*Dao) GetCommentContentsByIDs ¶
func (d *Dao) GetCommentContentsByIDs(ids []int64) ([]*model.CommentContent, error)
func (*Dao) GetCommentCount ¶
func (d *Dao) GetCommentCount(conditions *model.ConditionsT) (int64, error)
func (*Dao) GetCommentRepliesByID ¶
func (d *Dao) GetCommentRepliesByID(ids []int64) ([]*model.CommentReplyFormated, error)
func (*Dao) GetCommentReplyByID ¶
func (d *Dao) GetCommentReplyByID(id int64) (*model.CommentReply, error)
func (*Dao) GetComments ¶
func (*Dao) GetLatestPhoneCaptcha ¶
获取最新短信验证码
func (*Dao) GetMessageCount ¶
func (d *Dao) GetMessageCount(conditions *model.ConditionsT) (int64, error)
func (*Dao) GetMessages ¶
func (d *Dao) GetMessages(conditions *model.ConditionsT, offset, limit int) ([]*model.MessageFormated, error)
func (*Dao) GetPostAttatchmentBill ¶
func (d *Dao) GetPostAttatchmentBill(postID, userID int64) (*model.PostAttachmentBill, error)
func (*Dao) GetPostContentByID ¶
func (d *Dao) GetPostContentByID(id int64) (*model.PostContent, error)
func (*Dao) GetPostContentsByIDs ¶
func (d *Dao) GetPostContentsByIDs(ids []int64) ([]*model.PostContent, error)
func (*Dao) GetPostCount ¶
func (d *Dao) GetPostCount(conditions *model.ConditionsT) (int64, error)
func (*Dao) GetRechargeByID ¶
func (d *Dao) GetRechargeByID(id int64) (*model.WalletRecharge, error)
func (*Dao) GetTagsByKeyword ¶
根据关键词模糊获取用户列表
func (*Dao) GetUserByPhone ¶
根据手机号获取用户
func (*Dao) GetUserByUsername ¶
根据用户名获取用户
func (*Dao) GetUserPostCollection ¶
func (d *Dao) GetUserPostCollection(postID, userID int64) (*model.PostCollection, error)
func (*Dao) GetUserPostCollectionCount ¶
func (*Dao) GetUserPostCollections ¶
func (*Dao) GetUserPostStar ¶
func (*Dao) GetUserPostStars ¶
func (*Dao) GetUserWalletBillCount ¶
func (*Dao) GetUserWalletBills ¶
func (*Dao) GetUsersByIDs ¶
根据IDs获取用户列表
func (*Dao) GetUsersByKeyword ¶
根据关键词模糊获取用户列表
func (*Dao) HandlePostAttachmentBought ¶
func (*Dao) HandleRechargeSuccess ¶
func (d *Dao) HandleRechargeSuccess(recharge *model.WalletRecharge, tradeNo string) error
func (*Dao) QuerySearch ¶
func (*Dao) QueryTagSearch ¶
type JuhePhoneCaptchaRsp ¶
type QueryT ¶
type QueryT struct { Query string Type SearchType }
type SearchType ¶
type SearchType string
const SearchTypeDefault SearchType = "search"
const SearchTypeTag SearchType = "tag"
Click to show internal directories.
Click to hide internal directories.