86 lines
3.6 KiB
Go
86 lines
3.6 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.7.2
|
|
// Source: user.proto
|
|
|
|
package enterprise
|
|
|
|
import (
|
|
"context"
|
|
|
|
"tianyuan-api/apps/user/user"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
AddApiRequestRequest = user.AddApiRequestRequest
|
|
AddApiRequestResponse = user.AddApiRequestResponse
|
|
ApiRequest = user.ApiRequest
|
|
Deduction = user.Deduction
|
|
EmptyResponse = user.EmptyResponse
|
|
EnterpriseAuthReq = user.EnterpriseAuthReq
|
|
EnterpriseItem = user.EnterpriseItem
|
|
GetApiRequestByTransactionIdRequest = user.GetApiRequestByTransactionIdRequest
|
|
GetApiRequestByTransactionIdResponse = user.GetApiRequestByTransactionIdResponse
|
|
GetApiRequestsRequest = user.GetApiRequestsRequest
|
|
GetApiRequestsResponse = user.GetApiRequestsResponse
|
|
GetDeductionByTransactionIdRequest = user.GetDeductionByTransactionIdRequest
|
|
GetDeductionByTransactionIdResponse = user.GetDeductionByTransactionIdResponse
|
|
GetDeductionsRequest = user.GetDeductionsRequest
|
|
GetDeductionsResponse = user.GetDeductionsResponse
|
|
GetEnterpriseAuthStatusReq = user.GetEnterpriseAuthStatusReq
|
|
GetEnterpriseAuthStatusResp = user.GetEnterpriseAuthStatusResp
|
|
GetPendingEnterpriseReq = user.GetPendingEnterpriseReq
|
|
GetPendingEnterpriseResp = user.GetPendingEnterpriseResp
|
|
GetUserInfoResp = user.GetUserInfoResp
|
|
GetWalletRequest = user.GetWalletRequest
|
|
GetWalletResponse = user.GetWalletResponse
|
|
LoginReq = user.LoginReq
|
|
LoginResp = user.LoginResp
|
|
PhoneLoginReq = user.PhoneLoginReq
|
|
RegisterReq = user.RegisterReq
|
|
ReviewEnterpriseReq = user.ReviewEnterpriseReq
|
|
UpdateWalletRequest = user.UpdateWalletRequest
|
|
UpdateWalletResponse = user.UpdateWalletResponse
|
|
UserInfoReq = user.UserInfoReq
|
|
UserInfoResp = user.UserInfoResp
|
|
|
|
Enterprise interface {
|
|
// 获取待审核企业列表
|
|
GetPendingEnterprise(ctx context.Context, in *GetPendingEnterpriseReq, opts ...grpc.CallOption) (*GetPendingEnterpriseResp, error)
|
|
// 审核企业
|
|
ReviewEnterprise(ctx context.Context, in *ReviewEnterpriseReq, opts ...grpc.CallOption) (*EmptyResponse, error)
|
|
// 提交审核
|
|
CreateEnterpriseAuth(ctx context.Context, in *EnterpriseAuthReq, opts ...grpc.CallOption) (*EmptyResponse, error)
|
|
}
|
|
|
|
defaultEnterprise struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewEnterprise(cli zrpc.Client) Enterprise {
|
|
return &defaultEnterprise{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
// 获取待审核企业列表
|
|
func (m *defaultEnterprise) GetPendingEnterprise(ctx context.Context, in *GetPendingEnterpriseReq, opts ...grpc.CallOption) (*GetPendingEnterpriseResp, error) {
|
|
client := user.NewEnterpriseClient(m.cli.Conn())
|
|
return client.GetPendingEnterprise(ctx, in, opts...)
|
|
}
|
|
|
|
// 审核企业
|
|
func (m *defaultEnterprise) ReviewEnterprise(ctx context.Context, in *ReviewEnterpriseReq, opts ...grpc.CallOption) (*EmptyResponse, error) {
|
|
client := user.NewEnterpriseClient(m.cli.Conn())
|
|
return client.ReviewEnterprise(ctx, in, opts...)
|
|
}
|
|
|
|
// 提交审核
|
|
func (m *defaultEnterprise) CreateEnterpriseAuth(ctx context.Context, in *EnterpriseAuthReq, opts ...grpc.CallOption) (*EmptyResponse, error) {
|
|
client := user.NewEnterpriseClient(m.cli.Conn())
|
|
return client.CreateEnterpriseAuth(ctx, in, opts...)
|
|
}
|