Documentation ¶
Index ¶
- func ForEachCar(ctx context.Context, apiCli ApiClientIfce, ...) error
- func ForEachDept(ctx context.Context, apiCli ApiClientIfce, ...) error
- func ForEachUser(ctx context.Context, apiCli ApiClientIfce, ...) error
- type ApiClient
- type ApiClientIfce
- type CarCount
- type CarCreate
- type CarDelete
- type CarFind
- type CarFindById
- type CarUpdate
- type DeptAddUser
- type DeptAddUserById
- type DeptCount
- type DeptCreate
- type DeptDelete
- type DeptFind
- type DeptFindById
- type DeptFindUsers
- type DeptRemoveUser
- type DeptUpdate
- type UserAddCar
- type UserAddCarById
- type UserCount
- type UserCreate
- type UserDelete
- type UserFind
- type UserFindById
- type UserFindCars
- type UserFindDepts
- type UserRemoveCar
- type UserUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEachCar ¶
func ForEachDept ¶
Types ¶
type ApiClientIfce ¶
type ApiClientIfce interface {
SendReq(ctx context.Context, httpReqBuilder *http.RequestBuilder, apiPath string, responseObj interface{}) (httpBodyByte []byte, err error)
}
func ApiClientNew ¶
func ApiClientNew(apiBasePath string) ApiClientIfce
type CarCount ¶
type CarCount struct {
// contains filtered or unexported fields
}
func CarCountNew ¶
func (*CarCount) ExecBy ¶
func (this *CarCount) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CountNumber, error)
type CarCreate ¶
type CarCreate struct {
// contains filtered or unexported fields
}
func CarCreateNew ¶
type CarDelete ¶
type CarDelete struct {
// contains filtered or unexported fields
}
func CarDeleteNew ¶
type CarFind ¶
type CarFind struct {
// contains filtered or unexported fields
}
func CarFindNew ¶
func CarFindNew(entity *pb.CarPageQuery) *CarFind
func (*CarFind) ExecBy ¶
func (this *CarFind) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CarWithCount, error)
type CarFindById ¶
type CarFindById struct {
// contains filtered or unexported fields
}
func CarFindByIdNew ¶
func CarFindByIdNew(entity *pb.CarId) *CarFindById
func (*CarFindById) ExecBy ¶
func (this *CarFindById) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.Car, error)
type CarUpdate ¶
type CarUpdate struct {
// contains filtered or unexported fields
}
func CarUpdateNew ¶
type DeptAddUser ¶
type DeptAddUser struct {
// contains filtered or unexported fields
}
func DeptAddUserNew ¶
func DeptAddUserNew(entity *pb.DeptAddUserReq) *DeptAddUser
func (*DeptAddUser) ExecBy ¶
func (this *DeptAddUser) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserId, error)
type DeptAddUserById ¶
type DeptAddUserById struct {
// contains filtered or unexported fields
}
func DeptAddUserByIdNew ¶
func DeptAddUserByIdNew(entity *pb.DeptIdAndUserId) *DeptAddUserById
func (*DeptAddUserById) ExecBy ¶
func (this *DeptAddUserById) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)
type DeptCount ¶
type DeptCount struct {
// contains filtered or unexported fields
}
func DeptCountNew ¶
func (*DeptCount) ExecBy ¶
func (this *DeptCount) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CountNumber, error)
type DeptCreate ¶
type DeptCreate struct {
// contains filtered or unexported fields
}
func DeptCreateNew ¶
func DeptCreateNew(entity *pb.Dept) *DeptCreate
func (*DeptCreate) ExecBy ¶
func (this *DeptCreate) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.DeptId, error)
type DeptDelete ¶
type DeptDelete struct {
// contains filtered or unexported fields
}
func DeptDeleteNew ¶
func DeptDeleteNew(entity *pb.DeptId) *DeptDelete
func (*DeptDelete) ExecBy ¶
func (this *DeptDelete) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)
type DeptFind ¶
type DeptFind struct {
// contains filtered or unexported fields
}
func DeptFindNew ¶
func DeptFindNew(entity *pb.DeptPageQuery) *DeptFind
func (*DeptFind) ExecBy ¶
func (this *DeptFind) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.DeptWithCount, error)
type DeptFindById ¶
type DeptFindById struct {
// contains filtered or unexported fields
}
func DeptFindByIdNew ¶
func DeptFindByIdNew(entity *pb.DeptId) *DeptFindById
func (*DeptFindById) ExecBy ¶
func (this *DeptFindById) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.Dept, error)
type DeptFindUsers ¶
type DeptFindUsers struct {
// contains filtered or unexported fields
}
func DeptFindUsersNew ¶
func DeptFindUsersNew(entity *pb.DeptFindUsersReq) *DeptFindUsers
func (*DeptFindUsers) ExecBy ¶
func (this *DeptFindUsers) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.DeptFindUsersRes, error)
type DeptRemoveUser ¶
type DeptRemoveUser struct {
// contains filtered or unexported fields
}
func DeptRemoveUserNew ¶
func DeptRemoveUserNew(entity *pb.DeptRemoveUserReq) *DeptRemoveUser
func (*DeptRemoveUser) ExecBy ¶
func (this *DeptRemoveUser) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)
type DeptUpdate ¶
type DeptUpdate struct {
// contains filtered or unexported fields
}
func DeptUpdateNew ¶
func DeptUpdateNew(entity *pb.Dept) *DeptUpdate
func (*DeptUpdate) ExecBy ¶
func (this *DeptUpdate) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)
type UserAddCar ¶
type UserAddCar struct {
// contains filtered or unexported fields
}
func UserAddCarNew ¶
func UserAddCarNew(entity *pb.Car) *UserAddCar
func (*UserAddCar) ExecBy ¶
func (this *UserAddCar) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CarId, error)
type UserAddCarById ¶
type UserAddCarById struct {
// contains filtered or unexported fields
}
func UserAddCarByIdNew ¶
func UserAddCarByIdNew(entity *pb.UserIdAndCarId) *UserAddCarById
func (*UserAddCarById) ExecBy ¶
func (this *UserAddCarById) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)
type UserCount ¶
type UserCount struct {
// contains filtered or unexported fields
}
func UserCountNew ¶
func (*UserCount) ExecBy ¶
func (this *UserCount) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.CountNumber, error)
type UserCreate ¶
type UserCreate struct {
// contains filtered or unexported fields
}
func UserCreateNew ¶
func UserCreateNew(entity *pb.User) *UserCreate
func (*UserCreate) ExecBy ¶
func (this *UserCreate) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserId, error)
type UserDelete ¶
type UserDelete struct {
// contains filtered or unexported fields
}
func UserDeleteNew ¶
func UserDeleteNew(entity *pb.UserId) *UserDelete
func (*UserDelete) ExecBy ¶
func (this *UserDelete) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)
type UserFind ¶
type UserFind struct {
// contains filtered or unexported fields
}
func UserFindNew ¶
func UserFindNew(entity *pb.UserPageQuery) *UserFind
func (*UserFind) ExecBy ¶
func (this *UserFind) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserWithCount, error)
type UserFindById ¶
type UserFindById struct {
// contains filtered or unexported fields
}
func UserFindByIdNew ¶
func UserFindByIdNew(entity *pb.UserId) *UserFindById
func (*UserFindById) ExecBy ¶
func (this *UserFindById) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.User, error)
type UserFindCars ¶
type UserFindCars struct {
// contains filtered or unexported fields
}
func UserFindCarsNew ¶
func UserFindCarsNew(entity *pb.UserFindCarsReq) *UserFindCars
func (*UserFindCars) ExecBy ¶
func (this *UserFindCars) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserFindCarsRes, error)
type UserFindDepts ¶
type UserFindDepts struct {
// contains filtered or unexported fields
}
func UserFindDeptsNew ¶
func UserFindDeptsNew(entity *pb.UserFindDeptsReq) *UserFindDepts
func (*UserFindDepts) ExecBy ¶
func (this *UserFindDepts) ExecBy(ctx context.Context, cli ApiClientIfce) (*pb.UserFindDeptsRes, error)
type UserRemoveCar ¶
type UserRemoveCar struct {
// contains filtered or unexported fields
}
func UserRemoveCarNew ¶
func UserRemoveCarNew(entity *pb.UserRemoveCarReq) *UserRemoveCar
func (*UserRemoveCar) ExecBy ¶
func (this *UserRemoveCar) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)
type UserUpdate ¶
type UserUpdate struct {
// contains filtered or unexported fields
}
func UserUpdateNew ¶
func UserUpdateNew(entity *pb.User) *UserUpdate
func (*UserUpdate) ExecBy ¶
func (this *UserUpdate) ExecBy(ctx context.Context, cli ApiClientIfce) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.