12345678910111213141516171819202122232425 |
- package handler
- import (
- "net/http"
- "ylink/comm/result"
- "github.com/zeromicro/go-zero/rest/httpx"
- "ylink/bff/cmdbff/api/internal/logic"
- "ylink/bff/cmdbff/api/internal/svc"
- "ylink/bff/cmdbff/api/internal/types"
- )
- func csFetchPlayerQueueHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- var req types.CsFetchPlayerQueueReq
- if err := httpx.Parse(r, &req); err != nil {
- result.ParamErrorResult(r, w, err)
- return
- }
- l := logic.NewCsFetchPlayerQueueLogic(r.Context(), svcCtx)
- resp, err := l.CsFetchPlayerQueue(&req)
- result.HttpResult(r, w, resp, err)
- }
- }
|