Documentation ¶
Index ¶
- func BindAny(c *gin.Context, obj any) mir.Error
- func RenderAny(c *gin.Context, data any, err mir.Error)
- func UserFrom(c *gin.Context) (*core.User, bool)
- func UserIdFrom(c *gin.Context) (int64, bool)
- func UserNameFrom(c *gin.Context) (string, bool)
- type BaseBinding
- type BaseRender
- type BaseServant
- type DaoServant
- func (s *DaoServant) DeleteSearchPost(post *core.Post) error
- func (s *DaoServant) GetTweetBy(id int64) (*core.PostFormated, error)
- func (s *DaoServant) GetTweetList(conditions *core.ConditionsT, offset, limit int) ([]*core.Post, []*core.PostFormated, error)
- func (s *DaoServant) PushPostToSearch(post *core.Post)
- func (s *DaoServant) PushPostsToSearch(c context.Context)
- type JsonResp
- type PageInfoSetter
- type PageResp
- type Pager
- type UserIdSetter
- type UserSetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseBinding ¶
type BaseRender ¶
type BaseServant ¶
type DaoServant ¶
type DaoServant struct { Redis *redis.Client Ds core.DataService Ts core.TweetSearchService }
func (*DaoServant) DeleteSearchPost ¶
func (s *DaoServant) DeleteSearchPost(post *core.Post) error
func (*DaoServant) GetTweetBy ¶
func (s *DaoServant) GetTweetBy(id int64) (*core.PostFormated, error)
func (*DaoServant) GetTweetList ¶
func (s *DaoServant) GetTweetList(conditions *core.ConditionsT, offset, limit int) ([]*core.Post, []*core.PostFormated, error)
func (*DaoServant) PushPostToSearch ¶
func (s *DaoServant) PushPostToSearch(post *core.Post)
func (*DaoServant) PushPostsToSearch ¶
func (s *DaoServant) PushPostsToSearch(c context.Context)
type PageInfoSetter ¶
type PageInfoSetter interface {
SetPageInfo(page, pageSize int)
}
type UserIdSetter ¶
type UserIdSetter interface {
SetUserId(int64)
}
type UserSetter ¶
Click to show internal directories.
Click to hide internal directories.