// Code generated by goctl. DO NOT EDIT! // Source: common.proto package commonclient import ( "context" "app.yhyue.com/moapp/jyInfo/rpc/common/type/common" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( AreaResp = common.AreaResp City = common.City Idata = common.Idata Industry = common.Industry IndustryChildsResp = common.IndustryChildsResp IndustryResp = common.IndustryResp Infotype = common.Infotype ProjectReq = common.ProjectReq Province = common.Province SensitiveRequest = common.SensitiveRequest SensitiveResponse = common.SensitiveResponse StateRequest = common.StateRequest StateResponse = common.StateResponse Supply = common.Supply CommonClient interface { // 获取省份信息(暂不用) AreaInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*AreaResp, error) // 获取行业信息(暂不用) IndustryInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*IndustryResp, error) // 修改信息发布状态 StateMethod(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) // SensitiveMethod(ctx context.Context, in *SensitiveRequest, opts ...grpc.CallOption) (*SensitiveResponse, error) } defaultCommonClient struct { cli zrpc.Client } ) func NewCommonClient(cli zrpc.Client) CommonClient { return &defaultCommonClient{ cli: cli, } } // 获取省份信息(暂不用) func (m *defaultCommonClient) AreaInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*AreaResp, error) { client := common.NewCommonClientClient(m.cli.Conn()) return client.AreaInfo(ctx, in, opts...) } // 获取行业信息(暂不用) func (m *defaultCommonClient) IndustryInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*IndustryResp, error) { client := common.NewCommonClientClient(m.cli.Conn()) return client.IndustryInfo(ctx, in, opts...) } // 修改信息发布状态 func (m *defaultCommonClient) StateMethod(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) { client := common.NewCommonClientClient(m.cli.Conn()) return client.StateMethod(ctx, in, opts...) } // func (m *defaultCommonClient) SensitiveMethod(ctx context.Context, in *SensitiveRequest, opts ...grpc.CallOption) (*SensitiveResponse, error) { client := common.NewCommonClientClient(m.cli.Conn()) return client.SensitiveMethod(ctx, in, opts...) }