Documentation
¶
Index ¶
- func InjectEmployeeRpc(s *EmployeeRpc)
- func LoadEmployeeRpc() baseiface.ISingleton
- type EmployeeRpc
- func (rpc *EmployeeRpc) DeleteById(ctx context.Context, in *employeeProto.RequestEmployee, ...) error
- func (rpc *EmployeeRpc) FindById(ctx context.Context, in *employeeProto.RequestEmployee, ...) error
- func (rpc *EmployeeRpc) FindByIds(ctx context.Context, in *employeeProto.RequestEmployee, ...) error
- func (rpc *EmployeeRpc) GetId(ctx context.Context, in *employeeProto.RequestEmployee, out *string) error
- func (rpc *EmployeeRpc) Query(ctx context.Context, in *employeeProto.PageRequestEmployee, ...) error
- func (rpc *EmployeeRpc) Save(ctx context.Context, in *employeeProto.MessageEmployee, ...) error
- func (rpc *EmployeeRpc) UpdateNotNullProps(ctx context.Context, in *employeeProto.MessageEmployee, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectEmployeeRpc ¶
func InjectEmployeeRpc(s *EmployeeRpc)
func LoadEmployeeRpc ¶
func LoadEmployeeRpc() baseiface.ISingleton
Types ¶
type EmployeeRpc ¶
type EmployeeRpc struct { basedto.BaseEntitySingle // contains filtered or unexported fields }
func FindBeanEmployeeRpc ¶
func FindBeanEmployeeRpc() *EmployeeRpc
func NewEmployeeRpc ¶
func NewEmployeeRpc() *EmployeeRpc
func (*EmployeeRpc) DeleteById ¶
func (rpc *EmployeeRpc) DeleteById(ctx context.Context, in *employeeProto.RequestEmployee, out *employeeProto.PageResultEmployee) error
根据主键删除
func (*EmployeeRpc) FindById ¶
func (rpc *EmployeeRpc) FindById(ctx context.Context, in *employeeProto.RequestEmployee, out *employeeProto.IchubResultEmployee) error
实现了user.pb.micro.go中的UserHandler接口
func (*EmployeeRpc) FindByIds ¶
func (rpc *EmployeeRpc) FindByIds(ctx context.Context, in *employeeProto.RequestEmployee, out *employeeProto.PageResultEmployee) error
根据主键id 查询多条记录 FindByIds("12,36,39")
func (*EmployeeRpc) GetId ¶
func (rpc *EmployeeRpc) GetId(ctx context.Context, in *employeeProto.RequestEmployee, out *string) error
func (*EmployeeRpc) Query ¶
func (rpc *EmployeeRpc) Query(ctx context.Context, in *employeeProto.PageRequestEmployee, out *employeeProto.PageResultEmployee) error
通用查询
func (*EmployeeRpc) Save ¶
func (rpc *EmployeeRpc) Save(ctx context.Context, in *employeeProto.MessageEmployee, out *employeeProto.IchubResultEmployee) error
主键Id为nil OR 0 新增,!= nil修改
func (*EmployeeRpc) UpdateNotNullProps ¶
func (rpc *EmployeeRpc) UpdateNotNullProps(ctx context.Context, in *employeeProto.MessageEmployee, out *employeeProto.IchubResultEmployee) error
更新非空字段,参数可能要变成一个string包装json
Click to show internal directories.
Click to hide internal directories.