Documentation ¶
Index ¶
- Variables
- type Content
- type FeedRepo
- type FeedUsecase
- type Message
- type MessageRepo
- type MessageSearch
- type MessageUsecase
- type Moment
- type MomentsSearch
- type User
- type UserRelation
- type UserRepo
- type UserSearch
- type UserUsecase
- func (uc *UserUsecase) Followers(ctx context.Context, us *UserSearch) ([]*User, int32, error)
- func (uc *UserUsecase) Following(ctx context.Context, us *UserSearch) ([]*User, int32, error)
- func (uc *UserUsecase) Info(ctx context.Context, uid int32) (*User, error)
- func (uc *UserUsecase) Register(ctx context.Context, u *User) error
- func (uc *UserUsecase) Relation(ctx context.Context, ur *UserRelation) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewUserUsecase, NewFeedUsecase, NewMessageUsecase, )
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type FeedUsecase ¶
type FeedUsecase struct {
// contains filtered or unexported fields
}
func NewFeedUsecase ¶
func NewFeedUsecase(repo FeedRepo, logger log.Logger) *FeedUsecase
func (*FeedUsecase) History ¶
func (uc *FeedUsecase) History(ctx context.Context, ds *MomentsSearch) ([]*Moment, error)
func (*FeedUsecase) Moments ¶
func (uc *FeedUsecase) Moments(ctx context.Context, ds *MomentsSearch) ([]*Moment, error)
type MessageRepo ¶
type MessageSearch ¶
type MessageUsecase ¶
type MessageUsecase struct {
// contains filtered or unexported fields
}
func NewMessageUsecase ¶
func NewMessageUsecase(repo MessageRepo, logger log.Logger) *MessageUsecase
func (*MessageUsecase) MessageHistory ¶
func (uc *MessageUsecase) MessageHistory(ctx context.Context, ms *MessageSearch) ([]*Message, error)
func (*MessageUsecase) RecallMessage ¶
func (uc *MessageUsecase) RecallMessage(ctx context.Context, ms *MessageSearch) error
func (*MessageUsecase) SendMessage ¶
func (uc *MessageUsecase) SendMessage(ctx context.Context, m *Message) error
type MomentsSearch ¶
type UserRelation ¶
type UserSearch ¶
type UserUsecase ¶
type UserUsecase struct {
// contains filtered or unexported fields
}
func NewUserUsecase ¶
func NewUserUsecase(repo UserRepo, logger log.Logger) *UserUsecase
func (*UserUsecase) Followers ¶
func (uc *UserUsecase) Followers(ctx context.Context, us *UserSearch) ([]*User, int32, error)
func (*UserUsecase) Following ¶
func (uc *UserUsecase) Following(ctx context.Context, us *UserSearch) ([]*User, int32, error)
func (*UserUsecase) Relation ¶
func (uc *UserUsecase) Relation(ctx context.Context, ur *UserRelation) error
Click to show internal directories.
Click to hide internal directories.