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