service

package
v0.0.0-...-acd6729 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 7 Imported by: 0

README

Service

Documentation

Overview

auto generated not edit

auto generated not edit

auto generated not edit

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

ProviderSet is service providers.

Functions

This section is empty.

Types

type CarService

type CarService struct {
	pb.UnimplementedCarServiceServer
	// contains filtered or unexported fields
}

func NewCarService

func NewCarService(rawLogger log.Logger, bizIns *biz.CarService) *CarService

func (*CarService) Count

func (this *CarService) Count(ctx context.Context, req *pb.Car) (*pb.CountNumber, error)

func (*CarService) Create

func (this *CarService) Create(ctx context.Context, req *pb.Car) (*pb.CarId, error)

func (*CarService) Delete

func (this *CarService) Delete(ctx context.Context, req *pb.CarId) (*emptypb.Empty, error)

func (*CarService) Find

func (this *CarService) Find(ctx context.Context, req *pb.CarPageQuery) (*pb.CarWithCount, error)

func (*CarService) FindById

func (this *CarService) FindById(ctx context.Context, req *pb.CarId) (*pb.Car, error)

func (*CarService) Update

func (this *CarService) Update(ctx context.Context, req *pb.Car) (*emptypb.Empty, error)

type DeptService

type DeptService struct {
	pb.UnimplementedDeptServiceServer
	// contains filtered or unexported fields
}

func NewDeptService

func NewDeptService(rawLogger log.Logger, bizIns *biz.DeptService) *DeptService

func (*DeptService) AddUser

func (this *DeptService) AddUser(ctx context.Context, req *pb.DeptAddUserReq) (*pb.UserId, error)

func (*DeptService) AddUserById

func (this *DeptService) AddUserById(ctx context.Context, req *pb.DeptIdAndUserId) (*emptypb.Empty, error)

func (*DeptService) Count

func (this *DeptService) Count(ctx context.Context, req *pb.Dept) (*pb.CountNumber, error)

func (*DeptService) Create

func (this *DeptService) Create(ctx context.Context, req *pb.Dept) (*pb.DeptId, error)

func (*DeptService) Delete

func (this *DeptService) Delete(ctx context.Context, req *pb.DeptId) (*emptypb.Empty, error)

func (*DeptService) Find

func (this *DeptService) Find(ctx context.Context, req *pb.DeptPageQuery) (*pb.DeptWithCount, error)

func (*DeptService) FindById

func (this *DeptService) FindById(ctx context.Context, req *pb.DeptId) (*pb.Dept, error)

func (*DeptService) FindUsers

func (this *DeptService) FindUsers(ctx context.Context, req *pb.DeptFindUsersReq) (*pb.DeptFindUsersRes, error)

func (*DeptService) RemoveUser

func (this *DeptService) RemoveUser(ctx context.Context, req *pb.DeptRemoveUserReq) (*emptypb.Empty, error)

func (*DeptService) Update

func (this *DeptService) Update(ctx context.Context, req *pb.Dept) (*emptypb.Empty, error)

type GreeterService

type GreeterService struct {
	v1.UnimplementedGreeterServer
	// contains filtered or unexported fields
}

GreeterService is a greeter service.

func NewGreeterService

func NewGreeterService(uc *biz.GreeterUsecase, logger log.Logger) *GreeterService

NewGreeterService new a greeter service.

func (*GreeterService) SayHello

func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)

SayHello implements helloworld.GreeterServer

type UserService

type UserService struct {
	pb.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(rawLogger log.Logger, bizIns *biz.UserService) *UserService

func (*UserService) AddCar

func (this *UserService) AddCar(ctx context.Context, req *pb.Car) (*pb.CarId, error)

func (*UserService) AddCarById

func (this *UserService) AddCarById(ctx context.Context, req *pb.UserIdAndCarId) (*emptypb.Empty, error)

func (*UserService) Count

func (this *UserService) Count(ctx context.Context, req *pb.User) (*pb.CountNumber, error)

func (*UserService) Create

func (this *UserService) Create(ctx context.Context, req *pb.User) (*pb.UserId, error)

func (*UserService) Delete

func (this *UserService) Delete(ctx context.Context, req *pb.UserId) (*emptypb.Empty, error)

func (*UserService) Find

func (this *UserService) Find(ctx context.Context, req *pb.UserPageQuery) (*pb.UserWithCount, error)

func (*UserService) FindById

func (this *UserService) FindById(ctx context.Context, req *pb.UserId) (*pb.User, error)

func (*UserService) FindCars

func (this *UserService) FindCars(ctx context.Context, req *pb.UserFindCarsReq) (*pb.UserFindCarsRes, error)

func (*UserService) FindDepts

func (this *UserService) FindDepts(ctx context.Context, req *pb.UserFindDeptsReq) (*pb.UserFindDeptsRes, error)

func (*UserService) RemoveCar

func (this *UserService) RemoveCar(ctx context.Context, req *pb.UserRemoveCarReq) (*emptypb.Empty, error)

func (*UserService) Update

func (this *UserService) Update(ctx context.Context, req *pb.User) (*emptypb.Empty, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL