12345678910111213141516171819202122232425262728 |
- package handler
- import (
- "net/http"
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/api/internal/logic"
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/api/internal/svc"
- "bp.jydev.jianyu360.cn/BaseService/jyMicroservices/jyBXCore/api/internal/types"
- "github.com/zeromicro/go-zero/rest/httpx"
- )
- func participateSetUpInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- var req types.ParticipateSetUpInfoReq
- if err := httpx.Parse(r, &req); err != nil {
- httpx.Error(w, err)
- return
- }
- l := logic.NewParticipateSetUpInfoLogic(r.Context(), svcCtx, r)
- resp, err := l.ParticipateSetUpInfo(&req)
- if err != nil {
- httpx.Error(w, err)
- } else {
- httpx.OkJson(w, resp)
- }
- }
- }
|