// Code generated by goctl. DO NOT EDIT. // goctl 1.7.2 // Source: sentinel.proto package userproduct 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 UserProductResponse = sentinel.UserProductResponse UserProuctPageListRequest = sentinel.UserProuctPageListRequest WhitePageListRequest = sentinel.WhitePageListRequest Whitelist = sentinel.Whitelist WhitelistResponse = sentinel.WhitelistResponse UserProduct interface { // UserProduct methods CreateUserProduct(ctx context.Context, in *CreateUserProductRequest, opts ...grpc.CallOption) (*UserProductEmptyResponse, error) GetUserProductPageList(ctx context.Context, in *UserProuctPageListRequest, opts ...grpc.CallOption) (*UserProductResponse, error) MatchingUserIdProductCode(ctx context.Context, in *MatchingUserIdProductCodeRequest, opts ...grpc.CallOption) (*MatchResponse, error) } defaultUserProduct struct { cli zrpc.Client } ) func NewUserProduct(cli zrpc.Client) UserProduct { return &defaultUserProduct{ cli: cli, } } // UserProduct methods func (m *defaultUserProduct) CreateUserProduct(ctx context.Context, in *CreateUserProductRequest, opts ...grpc.CallOption) (*UserProductEmptyResponse, error) { client := sentinel.NewUserProductClient(m.cli.Conn()) return client.CreateUserProduct(ctx, in, opts...) } func (m *defaultUserProduct) GetUserProductPageList(ctx context.Context, in *UserProuctPageListRequest, opts ...grpc.CallOption) (*UserProductResponse, error) { client := sentinel.NewUserProductClient(m.cli.Conn()) return client.GetUserProductPageList(ctx, in, opts...) } func (m *defaultUserProduct) MatchingUserIdProductCode(ctx context.Context, in *MatchingUserIdProductCodeRequest, opts ...grpc.CallOption) (*MatchResponse, error) { client := sentinel.NewUserProductClient(m.cli.Conn()) return client.MatchingUserIdProductCode(ctx, in, opts...) }