bean.go 452 B

12345678910111213141516171819202122232425262728
  1. //@File bean.go
  2. //@Time 2022/6/1
  3. //@Author #Suyghur,
  4. package model
  5. import (
  6. "context"
  7. "github.com/zeromicro/go-zero/core/logx"
  8. "ylink/flowsrv/rpc/internal/svc"
  9. "ylink/flowsrv/rpc/pb"
  10. )
  11. type User struct {
  12. Type int64
  13. Uid string
  14. GameId string
  15. }
  16. type Flow struct {
  17. EndFlow chan int
  18. Message chan string
  19. Ctx context.Context
  20. SvcCtx *svc.ServiceContext
  21. Logger logx.Logger
  22. Stream pb.Flowsrv_ConnectServer
  23. User *User
  24. }