(ctx context.Context, clusterId string, sub *gateway.SubscribeRelease)
| 452 | }) |
| 453 | } |
| 454 | func (i *imlSubscribeApprovalModule) onlineSubscriber(ctx context.Context, clusterId string, sub *gateway.SubscribeRelease) error { |
| 455 | client, err := i.clusterService.GatewayClient(ctx, clusterId) |
| 456 | if err != nil { |
| 457 | return err |
| 458 | } |
| 459 | defer func() { |
| 460 | _ = client.Close(ctx) |
| 461 | }() |
| 462 | return client.Subscribe().Online(ctx, sub) |
| 463 | } |
| 464 | func (i *imlSubscribeApprovalModule) Reject(ctx context.Context, pid string, id string, approveInfo *subscribe_dto.Approve) error { |
| 465 | _, err := i.subscribeApplyService.Get(ctx, id) |
| 466 | if err != nil { |
no test coverage detected