Documentation ¶
Index ¶
- type UserImpl
- func (u *UserImpl) Delete(ctx context.Context, req *pb.DeleteUserRequest) (*pb.NullResponse, error)
- func (u *UserImpl) DeleteFriend(ctx context.Context, req *pb.DeleteFriendsRequest) (*pb.NullResponse, error)
- func (u *UserImpl) InsertFriend(ctx context.Context, req *pb.InsertFriendsRequest) (*pb.NullResponse, error)
- func (u *UserImpl) Query(ctx context.Context, req *pb.QueryUserRequest) (*pb.UserResponse, error)
- func (u *UserImpl) QueryFriends(ctx context.Context, req *pb.QueryFriendsRequest) (*pb.UsersResponse, error)
- func (u *UserImpl) Update(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserImpl ¶
type UserImpl struct { Config *config.ServerConfig `di:"~"` Logger *logrus.Logger `di:"~"` Mappers *xentity.EntityMappers `di:"~"` JwtService *module.JwtService `di:"~"` UserDao *dao.UserDao `di:"~"` FriendDao *dao.FriendDao `di:"~"` }
noinspection GoNameStartsWithPackageName
func NewUserImpl ¶
func NewUserImpl(dic *xdi.DiContainer) *UserImpl
func (*UserImpl) Delete ¶
func (u *UserImpl) Delete(ctx context.Context, req *pb.DeleteUserRequest) (*pb.NullResponse, error)
func (*UserImpl) DeleteFriend ¶
func (u *UserImpl) DeleteFriend(ctx context.Context, req *pb.DeleteFriendsRequest) (*pb.NullResponse, error)
func (*UserImpl) InsertFriend ¶
func (u *UserImpl) InsertFriend(ctx context.Context, req *pb.InsertFriendsRequest) (*pb.NullResponse, error)
func (*UserImpl) Query ¶
func (u *UserImpl) Query(ctx context.Context, req *pb.QueryUserRequest) (*pb.UserResponse, error)
func (*UserImpl) QueryFriends ¶
func (u *UserImpl) QueryFriends(ctx context.Context, req *pb.QueryFriendsRequest) (*pb.UsersResponse, error)
func (*UserImpl) Update ¶
func (u *UserImpl) Update(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UserResponse, error)
Click to show internal directories.
Click to hide internal directories.