Documentation
¶
Overview ¶
AUTO GENERATED BY CURDBOY. NOT EDIT!!!
AUTO GENERATED BY CURDBOY. NOT EDIT!!!
AUTO GENERATED BY CURDBOY. NOT EDIT!!!
Index ¶
- Variables
- type CarService
- func (this *CarService) Count(ctx context.Context, req *pb.Car) (*pb.CountNumber, error)
- func (this *CarService) Create(ctx context.Context, req *pb.Car) (*pb.CarId, error)
- func (this *CarService) Delete(ctx context.Context, req *pb.CarId) (*emptypb.Empty, error)
- func (this *CarService) Find(ctx context.Context, req *pb.CarPageQuery) (*pb.CarWithCount, error)
- func (this *CarService) FindById(ctx context.Context, req *pb.CarId) (*pb.Car, error)
- func (this *CarService) Update(ctx context.Context, req *pb.Car) (*emptypb.Empty, error)
- type DataCarServiceIfce
- type DataDeptServiceIfce
- type DataUserServiceIfce
- type DeptService
- func (this *DeptService) AddUser(ctx context.Context, req *pb.DeptAddUserReq) (*pb.UserId, error)
- func (this *DeptService) AddUserById(ctx context.Context, req *pb.DeptIdAndUserId) (*emptypb.Empty, error)
- func (this *DeptService) Count(ctx context.Context, req *pb.Dept) (*pb.CountNumber, error)
- func (this *DeptService) Create(ctx context.Context, req *pb.Dept) (*pb.DeptId, error)
- func (this *DeptService) Delete(ctx context.Context, req *pb.DeptId) (*emptypb.Empty, error)
- func (this *DeptService) Find(ctx context.Context, req *pb.DeptPageQuery) (*pb.DeptWithCount, error)
- func (this *DeptService) FindById(ctx context.Context, req *pb.DeptId) (*pb.Dept, error)
- func (this *DeptService) FindUsers(ctx context.Context, req *pb.DeptFindUsersReq) (*pb.DeptFindUsersRes, error)
- func (this *DeptService) RemoveUser(ctx context.Context, req *pb.DeptRemoveUserReq) (*emptypb.Empty, error)
- func (this *DeptService) Update(ctx context.Context, req *pb.Dept) (*emptypb.Empty, error)
- type Greeter
- type GreeterRepo
- type GreeterUsecase
- type UserService
- func (this *UserService) AddCar(ctx context.Context, req *pb.Car) (*pb.CarId, error)
- func (this *UserService) AddCarById(ctx context.Context, req *pb.UserIdAndCarId) (*emptypb.Empty, error)
- func (this *UserService) Count(ctx context.Context, req *pb.User) (*pb.CountNumber, error)
- func (this *UserService) Create(ctx context.Context, req *pb.User) (*pb.UserId, error)
- func (this *UserService) Delete(ctx context.Context, req *pb.UserId) (*emptypb.Empty, error)
- func (this *UserService) Find(ctx context.Context, req *pb.UserPageQuery) (*pb.UserWithCount, error)
- func (this *UserService) FindById(ctx context.Context, req *pb.UserId) (*pb.User, error)
- func (this *UserService) FindCars(ctx context.Context, req *pb.UserFindCarsReq) (*pb.UserFindCarsRes, error)
- func (this *UserService) FindDepts(ctx context.Context, req *pb.UserFindDeptsReq) (*pb.UserFindDeptsRes, error)
- func (this *UserService) RemoveCar(ctx context.Context, req *pb.UserRemoveCarReq) (*emptypb.Empty, error)
- func (this *UserService) Update(ctx context.Context, req *pb.User) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGreeterUsecase)
ProviderSet is biz providers.
View Source
var ProviderSet = wire.NewSet(NewCarService, NewDeptService, NewUserService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type CarService ¶
type CarService struct {
// contains filtered or unexported fields
}
func (*CarService) Count ¶
func (this *CarService) Count(ctx context.Context, req *pb.Car) (*pb.CountNumber, error)
func (*CarService) Find ¶
func (this *CarService) Find(ctx context.Context, req *pb.CarPageQuery) (*pb.CarWithCount, error)
type DataCarServiceIfce ¶
type DataCarServiceIfce interface {
Create(context.Context, *pb.Car) (id string, err error)
Update(context.Context, *pb.Car) (err error)
Delete(ctx context.Context, id string) error
FindById(ctx context.Context, id string) (*ent.Car, error)
Find(context.Context, *pb.CarPageQuery) ([]*ent.Car, int, error)
Count(context.Context, *pb.Car) (int32, error)
}
type DataDeptServiceIfce ¶
type DataDeptServiceIfce interface {
Create(context.Context, *pb.Dept) (id string, err error)
Update(context.Context, *pb.Dept) (err error)
Delete(ctx context.Context, id string) error
FindById(ctx context.Context, id string) (*ent.Dept, error)
Find(context.Context, *pb.DeptPageQuery) ([]*ent.Dept, int, error)
Count(context.Context, *pb.Dept) (int32, error)
AddUser(context.Context, *pb.DeptAddUserReq) (id string, err error)
AddUserById(context.Context, *pb.DeptIdAndUserId) error
RemoveUser(context.Context, *pb.DeptRemoveUserReq) error
FindUsers(context.Context, *pb.DeptFindUsersReq) (data []*ent.User, total int, err error)
}
type DataUserServiceIfce ¶
type DataUserServiceIfce interface {
Create(context.Context, *pb.User) (id string, err error)
Update(context.Context, *pb.User) (err error)
Delete(ctx context.Context, id string) error
FindById(ctx context.Context, id string) (*ent.User, error)
Find(context.Context, *pb.UserPageQuery) ([]*ent.User, int, error)
Count(context.Context, *pb.User) (int32, error)
AddCar(context.Context, *pb.Car) (id string, err error)
AddCarById(context.Context, *pb.UserIdAndCarId) error
RemoveCar(context.Context, *pb.UserRemoveCarReq) error
FindCars(context.Context, *pb.UserFindCarsReq) (data []*ent.Car, total int, err error)
FindDepts(context.Context, *pb.UserFindDeptsReq) (data []*ent.Dept, total int, err error)
}
type DeptService ¶
type DeptService struct {
// contains filtered or unexported fields
}
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) Find ¶
func (this *DeptService) Find(ctx context.Context, req *pb.DeptPageQuery) (*pb.DeptWithCount, 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)
type GreeterRepo ¶
type GreeterUsecase ¶
type GreeterUsecase struct {
// contains filtered or unexported fields
}
func NewGreeterUsecase ¶
func NewGreeterUsecase(repo GreeterRepo, logger log.Logger) *GreeterUsecase
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
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) Find ¶
func (this *UserService) Find(ctx context.Context, req *pb.UserPageQuery) (*pb.UserWithCount, 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)
Click to show internal directories.
Click to hide internal directories.