entmanageapplication.go 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: entManageApplication.proto
  3. //go:generate mockgen -destination ./entmanageapplication_mock.go -package entmanageapplication -source $GOFILE
  4. package entmanageapplication
  5. import (
  6. "context"
  7. "bp.jydev.jianyu360.cn/BaseService/entManageApplication/rpc/pb"
  8. "github.com/zeromicro/go-zero/zrpc"
  9. )
  10. type (
  11. AddUsePersonReq = pb.AddUsePersonReq
  12. AddUsePerson = pb.AddUsePerson
  13. BuyProductList = pb.BuyProductList
  14. UsePersonListReq = pb.UsePersonListReq
  15. UsePersonListResp = pb.UsePersonListResp
  16. AddUsePersonResp = pb.AddUsePersonResp
  17. DelUsePersonReq = pb.DelUsePersonReq
  18. BuyProductListReq = pb.BuyProductListReq
  19. BuyProductListResp = pb.BuyProductListResp
  20. UsePersonList = pb.UsePersonList
  21. EntManageApplication interface {
  22. BuyProductList(ctx context.Context, in *BuyProductListReq) (*BuyProductListResp, error)
  23. UsePersonList(ctx context.Context, in *UsePersonListReq) (*UsePersonListResp, error)
  24. AddUsePerson(ctx context.Context, in *AddUsePersonReq) (*AddUsePersonResp, error)
  25. DelUsePerson(ctx context.Context, in *DelUsePersonReq) (*AddUsePersonResp, error)
  26. }
  27. defaultEntManageApplication struct {
  28. cli zrpc.Client
  29. }
  30. )
  31. func NewEntManageApplication(cli zrpc.Client) EntManageApplication {
  32. return &defaultEntManageApplication{
  33. cli: cli,
  34. }
  35. }
  36. func (m *defaultEntManageApplication) BuyProductList(ctx context.Context, in *BuyProductListReq) (*BuyProductListResp, error) {
  37. client := pb.NewEntManageApplicationClient(m.cli.Conn())
  38. return client.BuyProductList(ctx, in)
  39. }
  40. func (m *defaultEntManageApplication) UsePersonList(ctx context.Context, in *UsePersonListReq) (*UsePersonListResp, error) {
  41. client := pb.NewEntManageApplicationClient(m.cli.Conn())
  42. return client.UsePersonList(ctx, in)
  43. }
  44. func (m *defaultEntManageApplication) AddUsePerson(ctx context.Context, in *AddUsePersonReq) (*AddUsePersonResp, error) {
  45. client := pb.NewEntManageApplicationClient(m.cli.Conn())
  46. return client.AddUsePerson(ctx, in)
  47. }
  48. func (m *defaultEntManageApplication) DelUsePerson(ctx context.Context, in *DelUsePersonReq) (*AddUsePersonResp, error) {
  49. client := pb.NewEntManageApplicationClient(m.cli.Conn())
  50. return client.DelUsePerson(ctx, in)
  51. }