package handler

//import (
//	"youngee_b_api/consts"
//	"youngee_b_api/entity/http_model"
//	"youngee_b_api/service"
//	"youngee_b_api/util"
//
//	"github.com/gin-gonic/gin"
//	"github.com/sirupsen/logrus"
//	log "github.com/sirupsen/logrus"
//)
//
//func WrapWorkspaceGoodsInfoHandler(ctx *gin.Context) {
//	handler := newWorkspaceGoodsInfoHandler(ctx)
//	baseRun(handler)
//}
//
//func newWorkspaceGoodsInfoHandler(ctx *gin.Context) *FindProductHandler {
//	return &FindProductHandler{
//		req:  http_model.NewWorkspaceGoodsInfoRequest(),
//		resp: http_model.NewWorkspaceGoodsInfoResponse(),
//		ctx:  ctx,
//	}
//}
//
//type WorkspaceGoodsInfoHandler struct {
//	req  *http_model.WorkspaceGoodsInfoRequest
//	resp *http_model.CommonResponse
//	ctx  *gin.Context
//}
//
//func (h *WorkspaceGoodsInfoHandler) getRequest() interface{} {
//	return h.req
//}
//func (h *WorkspaceGoodsInfoHandler) getContext() *gin.Context {
//	return h.ctx
//}
//func (h *WorkspaceGoodsInfoHandler) getResponse() interface{} {
//	return h.resp
//}
//func (h *WorkspaceGoodsInfoHandler) run() {
//	data := *&http_model.WorkspaceGoodsInfoRequest{}
//	data = *h.req
//	res, err := service.Product.FindByID(h.ctx, data)
//	if err != nil {
//		// 数据库查询失败，返回5001
//		logrus.Errorf("[FindProductHandler] call FindByID err:%+v\n", err)
//		util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "")
//		log.Info("FindProduct fail,req:%+v", h.req)
//		return
//	}
//	h.resp.Data = res
//}
//func (h *WorkspaceGoodsInfoHandler) checkParam() error {
//	return nil
//}
