Documentation
¶
Index ¶
- type UserService
- func (m *UserService) CreateUser(ctx context.Context, req *proto.UserRequest) (*proto.UserResponse, error)
- func (m *UserService) Info(ctx context.Context, req *proto.UserInfoRequest) (*proto.UserResponse, error)
- func (m *UserService) ListUser(ctx context.Context, req *proto.UserListRequest) (*proto.UserListResponse, error)
- func (m *UserService) RegisterMetadata() metadata.ServiceRegisterMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
proto.UnimplementedUserServiceServer
metadata.UnimplementedServiceRegister
}
UserService 用户服务
func NewUserService ¶
func NewUserService() *UserService
func (*UserService) CreateUser ¶
func (m *UserService) CreateUser(ctx context.Context, req *proto.UserRequest) (*proto.UserResponse, error)
func (*UserService) Info ¶
func (m *UserService) Info(ctx context.Context, req *proto.UserInfoRequest) (*proto.UserResponse, error)
func (*UserService) ListUser ¶
func (m *UserService) ListUser(ctx context.Context, req *proto.UserListRequest) (*proto.UserListResponse, error)
func (*UserService) RegisterMetadata ¶
func (m *UserService) RegisterMetadata() metadata.ServiceRegisterMetadata
Click to show internal directories.
Click to hide internal directories.