playerfetchcsinfologic.go 776 B

1234567891011121314151617181920212223242526272829303132333435
  1. package logic
  2. import (
  3. "context"
  4. "ylink/apis/cmd/internal/svc"
  5. "ylink/apis/cmd/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.PlayerFetchCsInfoReq) (*pb.PlayerFetchCsInfoResp, error) {
  21. return &pb.PlayerFetchCsInfoResp{
  22. CsId: in.CsId,
  23. CsNickname: "vip客服1231",
  24. CsAvatarUrl: "https://www.baiduc.om",
  25. CsSignature: "服务时间:9:30-20:30",
  26. OnlineStatus: 1,
  27. }, nil
  28. }