Documentation ¶
Index ¶
- type UserServiceServer
- func (s *UserServiceServer) ChangePassword(ctx context.Context, req *pb.ChangePasswordRequest) (*pb.ChangePasswordResponse, error)
- func (s *UserServiceServer) Create(ctx context.Context, req *pb.CreateRequest) (*pb.CreateResponse, error)
- func (s *UserServiceServer) Delete(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteResponse, error)
- func (s *UserServiceServer) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)
- func (s *UserServiceServer) GetByUsername(ctx context.Context, req *pb.GetByUsernameRequest) (*pb.GetByUsernameResponse, error)
- func (s *UserServiceServer) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)
- func (s *UserServiceServer) Update(ctx context.Context, req *pb.UpdateRequest) (*pb.UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserServiceServer ¶
type UserServiceServer struct { pb.UnimplementedUserServiceServer // contains filtered or unexported fields }
userServiceServer 是 UserServiceServer 接口的实现
func GetUserInsOr ¶
func GetUserInsOr(store store.Factory) (*UserServiceServer, error)
GetUserInsOr return cache server instance with given factory.
func (*UserServiceServer) ChangePassword ¶
func (s *UserServiceServer) ChangePassword(ctx context.Context, req *pb.ChangePasswordRequest) (*pb.ChangePasswordResponse, error)
实现 ChangePassword 方法
func (*UserServiceServer) Create ¶
func (s *UserServiceServer) Create(ctx context.Context, req *pb.CreateRequest) (*pb.CreateResponse, error)
实现 Create 方法
func (*UserServiceServer) Delete ¶
func (s *UserServiceServer) Delete(ctx context.Context, req *pb.DeleteRequest) (*pb.DeleteResponse, error)
实现 Delete 方法
func (*UserServiceServer) Get ¶
func (s *UserServiceServer) Get(ctx context.Context, req *pb.GetRequest) (*pb.GetResponse, error)
实现 Get 方法
func (*UserServiceServer) GetByUsername ¶
func (s *UserServiceServer) GetByUsername(ctx context.Context, req *pb.GetByUsernameRequest) (*pb.GetByUsernameResponse, error)
func (*UserServiceServer) List ¶
func (s *UserServiceServer) List(ctx context.Context, req *pb.ListRequest) (*pb.ListResponse, error)
实现 List 方法
func (*UserServiceServer) Update ¶
func (s *UserServiceServer) Update(ctx context.Context, req *pb.UpdateRequest) (*pb.UpdateResponse, error)
实现 Update 方法 Update 方法更新一个用户
Click to show internal directories.
Click to hide internal directories.