// Code generated by goctl. DO NOT EDIT. // goctl 1.7.2 // Source: sentinel.proto package secret import ( "context" "tianyuan-api/apps/sentinel/sentinel" "github.com/zeromicro/go-zero/zrpc" "google.golang.org/grpc" ) type ( AliTopUpNotifyRequest = sentinel.AliTopUpNotifyRequest AliTopUpNotifyResponse = sentinel.AliTopUpNotifyResponse AliTopUpRequest = sentinel.AliTopUpRequest AliTopUpResponse = sentinel.AliTopUpResponse CreateProductRequest = sentinel.CreateProductRequest CreateSecretRequest = sentinel.CreateSecretRequest CreateUserProductRequest = sentinel.CreateUserProductRequest CreateWhitelistRequest = sentinel.CreateWhitelistRequest DeleteProductRequest = sentinel.DeleteProductRequest DeleteSecretRequest = sentinel.DeleteSecretRequest DeleteUserProductRequest = sentinel.DeleteUserProductRequest DeleteWhitelistRequest = sentinel.DeleteWhitelistRequest GetRecordByCodeRequest = sentinel.GetRecordByCodeRequest GetRecordByIdRequest = sentinel.GetRecordByIdRequest GetSecretBySecretIdRequest = sentinel.GetSecretBySecretIdRequest MatchResponse = sentinel.MatchResponse MatchWhitelistByIpRequest = sentinel.MatchWhitelistByIpRequest MatchingUserIdProductCodeRequest = sentinel.MatchingUserIdProductCodeRequest PageListRequest = sentinel.PageListRequest Product = sentinel.Product ProductResponse = sentinel.ProductResponse Secret = sentinel.Secret SecretResponse = sentinel.SecretResponse UpdateProductRequest = sentinel.UpdateProductRequest UpdateSecretRequest = sentinel.UpdateSecretRequest UpdateUserProductRequest = sentinel.UpdateUserProductRequest UpdateWhitelistRequest = sentinel.UpdateWhitelistRequest UserProductEmptyResponse = sentinel.UserProductEmptyResponse UserProductItem = sentinel.UserProductItem UserProductPageListResponse = sentinel.UserProductPageListResponse UserProductResponse = sentinel.UserProductResponse UserProuctPageListRequest = sentinel.UserProuctPageListRequest UserProuctRequest = sentinel.UserProuctRequest WhitePageListRequest = sentinel.WhitePageListRequest Whitelist = sentinel.Whitelist WhitelistResponse = sentinel.WhitelistResponse SecretZrpcClient interface { // Secret methods CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*Secret, error) GetSecretByUserId(ctx context.Context, in *GetRecordByIdRequest, opts ...grpc.CallOption) (*Secret, error) GetSecretBySecretId(ctx context.Context, in *GetSecretBySecretIdRequest, opts ...grpc.CallOption) (*Secret, error) } defaultSecretZrpcClient struct { cli zrpc.Client } ) func NewSecretZrpcClient(cli zrpc.Client) SecretZrpcClient { return &defaultSecretZrpcClient{ cli: cli, } } // Secret methods func (m *defaultSecretZrpcClient) CreateSecret(ctx context.Context, in *CreateSecretRequest, opts ...grpc.CallOption) (*Secret, error) { client := sentinel.NewSecretClient(m.cli.Conn()) return client.CreateSecret(ctx, in, opts...) } func (m *defaultSecretZrpcClient) GetSecretByUserId(ctx context.Context, in *GetRecordByIdRequest, opts ...grpc.CallOption) (*Secret, error) { client := sentinel.NewSecretClient(m.cli.Conn()) return client.GetSecretByUserId(ctx, in, opts...) } func (m *defaultSecretZrpcClient) GetSecretBySecretId(ctx context.Context, in *GetSecretBySecretIdRequest, opts ...grpc.CallOption) (*Secret, error) { client := sentinel.NewSecretClient(m.cli.Conn()) return client.GetSecretBySecretId(ctx, in, opts...) }