feat: sale manager
This commit is contained in:
@@ -14,13 +14,17 @@ import (
|
||||
)
|
||||
|
||||
type (
|
||||
PolicyReq = chore.PolicyReq
|
||||
Response = chore.Response
|
||||
TestReq = chore.TestReq
|
||||
DecryptMobileReq = chore.DecryptMobileReq
|
||||
PolicyReq = chore.PolicyReq
|
||||
RegionsReq = chore.RegionsReq
|
||||
Response = chore.Response
|
||||
TestReq = chore.TestReq
|
||||
|
||||
Chore interface {
|
||||
Policy(ctx context.Context, in *PolicyReq, opts ...grpc.CallOption) (*Response, error)
|
||||
Test(ctx context.Context, in *TestReq, opts ...grpc.CallOption) (*Response, error)
|
||||
DecryptMobile(ctx context.Context, in *DecryptMobileReq, opts ...grpc.CallOption) (*Response, error)
|
||||
Regions(ctx context.Context, in *RegionsReq, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
defaultChore struct {
|
||||
@@ -43,3 +47,13 @@ func (m *defaultChore) Test(ctx context.Context, in *TestReq, opts ...grpc.CallO
|
||||
client := chore.NewChoreClient(m.cli.Conn())
|
||||
return client.Test(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultChore) DecryptMobile(ctx context.Context, in *DecryptMobileReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := chore.NewChoreClient(m.cli.Conn())
|
||||
return client.DecryptMobile(ctx, in, opts...)
|
||||
}
|
||||
|
||||
func (m *defaultChore) Regions(ctx context.Context, in *RegionsReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
client := chore.NewChoreClient(m.cli.Conn())
|
||||
return client.Regions(ctx, in, opts...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user