You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

listparticipantlogic.go 816 B

123456789101112131415161718192021222324252627282930313233
  1. package participantservicelogic
  2. import (
  3. "context"
  4. "fmt"
  5. "gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/internal/svc"
  6. "gitlink.org.cn/jcce-pcm/pcm-coordinator/rpc/pcmCore"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. )
  9. type ListParticipantLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewListParticipantLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ListParticipantLogic {
  15. return &ListParticipantLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. // listParticipant 服务列表
  22. func (l *ListParticipantLogic) ListParticipant(in *pcmCore.ParticipantTenant) (*pcmCore.ParticipantResp, error) {
  23. // todo: add your logic here and delete this line
  24. clients := ClientList()
  25. fmt.Println(clients)
  26. return &pcmCore.ParticipantResp{}, nil
  27. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.