handler

package
v0.0.0-...-c47cd45 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MulanPSL-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

实现了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) GetId

func (rpc *ItemRpc) GetId(ctx context.Context, in *itemProto.RequestItem, out *string) error

func (*ItemRpc) Query

通用查询

func (*ItemRpc) Save

主键Id为nil OR 0 新增,!= nil修改

func (*ItemRpc) UpdateNotNullProps

func (rpc *ItemRpc) UpdateNotNullProps(ctx context.Context, in *itemProto.MessageItem, out *itemProto.IchubResultItem) error

更新非空字段,参数可能要变成一个string包装json

Jump to

Keyboard shortcuts

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