disconnectlogic.go 520 B

12345678910111213141516171819202122232425262728
  1. package player
  2. import (
  3. "context"
  4. "github.com/zeromicro/go-zero/core/logx"
  5. "ylink/bff/cmdbff/api/internal/svc"
  6. )
  7. type DisconnectLogic struct {
  8. logx.Logger
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. }
  12. func NewDisconnectLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DisconnectLogic {
  13. return &DisconnectLogic{
  14. Logger: logx.WithContext(ctx),
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. func (l *DisconnectLogic) Disconnect() error {
  20. // todo: add your logic here and delete this line
  21. return nil
  22. }