playerfetchcsinfologic.go 837 B

1234567891011121314151617181920212223242526272829303132333435
  1. package logic
  2. import (
  3. "context"
  4. "ylink/core/inner/rpc/internal/svc"
  5. "ylink/core/inner/rpc/pb"
  6. "github.com/zeromicro/go-zero/core/logx"
  7. )
  8. type PlayerFetchCsInfoLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewPlayerFetchCsInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PlayerFetchCsInfoLogic {
  14. return &PlayerFetchCsInfoLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. func (l *PlayerFetchCsInfoLogic) PlayerFetchCsInfo(in *pb.InnerPlayerFetchCsInfoReq) (*pb.InnerPlayerFetchCsInfoResp, error) {
  21. // todo: 修改玩家在线状态
  22. return &pb.InnerPlayerFetchCsInfoResp{
  23. CsId: in.CsId,
  24. CsNickname: "vip客服1231",
  25. CsAvatarUrl: "https://www.baiduc.om",
  26. CsSignature: "服务时间:9:30-20:30",
  27. OnlineStatus: 1,
  28. }, nil
  29. }