commonclient.go 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: common.proto
  3. package commonclient
  4. import (
  5. "context"
  6. "app.yhyue.com/moapp/jyInfo/rpc/common/type/common"
  7. "github.com/zeromicro/go-zero/zrpc"
  8. "google.golang.org/grpc"
  9. )
  10. type (
  11. AreaResp = common.AreaResp
  12. City = common.City
  13. Idata = common.Idata
  14. Industry = common.Industry
  15. IndustryChildsResp = common.IndustryChildsResp
  16. IndustryResp = common.IndustryResp
  17. Infotype = common.Infotype
  18. ProjectReq = common.ProjectReq
  19. Province = common.Province
  20. SensitiveRequest = common.SensitiveRequest
  21. SensitiveResponse = common.SensitiveResponse
  22. StateRequest = common.StateRequest
  23. StateResponse = common.StateResponse
  24. Supply = common.Supply
  25. CommonClient interface {
  26. // 获取省份信息(暂不用)
  27. AreaInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*AreaResp, error)
  28. // 获取行业信息(暂不用)
  29. IndustryInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*IndustryResp, error)
  30. // 修改信息发布状态
  31. StateMethod(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error)
  32. //
  33. SensitiveMethod(ctx context.Context, in *SensitiveRequest, opts ...grpc.CallOption) (*SensitiveResponse, error)
  34. }
  35. defaultCommonClient struct {
  36. cli zrpc.Client
  37. }
  38. )
  39. func NewCommonClient(cli zrpc.Client) CommonClient {
  40. return &defaultCommonClient{
  41. cli: cli,
  42. }
  43. }
  44. // 获取省份信息(暂不用)
  45. func (m *defaultCommonClient) AreaInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*AreaResp, error) {
  46. client := common.NewCommonClientClient(m.cli.Conn())
  47. return client.AreaInfo(ctx, in, opts...)
  48. }
  49. // 获取行业信息(暂不用)
  50. func (m *defaultCommonClient) IndustryInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*IndustryResp, error) {
  51. client := common.NewCommonClientClient(m.cli.Conn())
  52. return client.IndustryInfo(ctx, in, opts...)
  53. }
  54. // 修改信息发布状态
  55. func (m *defaultCommonClient) StateMethod(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) {
  56. client := common.NewCommonClientClient(m.cli.Conn())
  57. return client.StateMethod(ctx, in, opts...)
  58. }
  59. //
  60. func (m *defaultCommonClient) SensitiveMethod(ctx context.Context, in *SensitiveRequest, opts ...grpc.CallOption) (*SensitiveResponse, error) {
  61. client := common.NewCommonClientClient(m.cli.Conn())
  62. return client.SensitiveMethod(ctx, in, opts...)
  63. }