123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- // Code generated by goctl. DO NOT EDIT!
- // Source: common.proto
- package common
- 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
- Industry = common.Industry
- IndustryChildsResp = common.IndustryChildsResp
- IndustryResp = common.IndustryResp
- ProjectReq = common.ProjectReq
- Province = common.Province
- SensitiveRequest = common.SensitiveRequest
- SensitiveResponse = common.SensitiveResponse
- StateRequest = common.StateRequest
- StateResponse = common.StateResponse
- Common 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)
- }
- defaultCommon struct {
- cli zrpc.Client
- }
- )
- func NewCommon(cli zrpc.Client) Common {
- return &defaultCommon{
- cli: cli,
- }
- }
- // 获取省份信息(暂不用)
- func (m *defaultCommon) AreaInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*AreaResp, error) {
- client := common.NewCommonClient(m.cli.Conn())
- return client.AreaInfo(ctx, in, opts...)
- }
- // 获取行业信息(暂不用)
- func (m *defaultCommon) IndustryInfo(ctx context.Context, in *ProjectReq, opts ...grpc.CallOption) (*IndustryResp, error) {
- client := common.NewCommonClient(m.cli.Conn())
- return client.IndustryInfo(ctx, in, opts...)
- }
- // 修改信息发布状态
- func (m *defaultCommon) StateMethod(ctx context.Context, in *StateRequest, opts ...grpc.CallOption) (*StateResponse, error) {
- client := common.NewCommonClient(m.cli.Conn())
- return client.StateMethod(ctx, in, opts...)
- }
- //
- func (m *defaultCommon) SensitiveMethod(ctx context.Context, in *SensitiveRequest, opts ...grpc.CallOption) (*SensitiveResponse, error) {
- client := common.NewCommonClient(m.cli.Conn())
- return client.SensitiveMethod(ctx, in, opts...)
- }
|