// Code generated by goctl. DO NOT EDIT! // Source: entManageApplication.proto //go:generate mockgen -destination ./entmanageapplication_mock.go -package entmanageapplication -source $GOFILE package entmanageapplication import ( "context" "bp.jydev.jianyu360.cn/BaseService/entManageApplication/rpc/pb" "github.com/zeromicro/go-zero/zrpc" ) type ( AddUsePersonReq = pb.AddUsePersonReq AddUsePerson = pb.AddUsePerson BuyProductList = pb.BuyProductList UsePersonListReq = pb.UsePersonListReq UsePersonListResp = pb.UsePersonListResp AddUsePersonResp = pb.AddUsePersonResp DelUsePersonReq = pb.DelUsePersonReq BuyProductListReq = pb.BuyProductListReq BuyProductListResp = pb.BuyProductListResp UsePersonList = pb.UsePersonList EntManageApplication interface { BuyProductList(ctx context.Context, in *BuyProductListReq) (*BuyProductListResp, error) UsePersonList(ctx context.Context, in *UsePersonListReq) (*UsePersonListResp, error) AddUsePerson(ctx context.Context, in *AddUsePersonReq) (*AddUsePersonResp, error) DelUsePerson(ctx context.Context, in *DelUsePersonReq) (*AddUsePersonResp, error) } defaultEntManageApplication struct { cli zrpc.Client } ) func NewEntManageApplication(cli zrpc.Client) EntManageApplication { return &defaultEntManageApplication{ cli: cli, } } func (m *defaultEntManageApplication) BuyProductList(ctx context.Context, in *BuyProductListReq) (*BuyProductListResp, error) { client := pb.NewEntManageApplicationClient(m.cli.Conn()) return client.BuyProductList(ctx, in) } func (m *defaultEntManageApplication) UsePersonList(ctx context.Context, in *UsePersonListReq) (*UsePersonListResp, error) { client := pb.NewEntManageApplicationClient(m.cli.Conn()) return client.UsePersonList(ctx, in) } func (m *defaultEntManageApplication) AddUsePerson(ctx context.Context, in *AddUsePersonReq) (*AddUsePersonResp, error) { client := pb.NewEntManageApplicationClient(m.cli.Conn()) return client.AddUsePerson(ctx, in) } func (m *defaultEntManageApplication) DelUsePerson(ctx context.Context, in *DelUsePersonReq) (*AddUsePersonResp, error) { client := pb.NewEntManageApplicationClient(m.cli.Conn()) return client.DelUsePerson(ctx, in) }