|
@@ -1,10 +1,10 @@
|
|
|
package handler
|
|
|
|
|
|
import (
|
|
|
+ "fmt"
|
|
|
"github.com/gin-gonic/gin"
|
|
|
"github.com/sirupsen/logrus"
|
|
|
"youngee_b_api/consts"
|
|
|
- "youngee_b_api/middleware"
|
|
|
"youngee_b_api/model/http_model"
|
|
|
"youngee_b_api/service"
|
|
|
"youngee_b_api/util"
|
|
@@ -34,8 +34,8 @@ func (s SelectionDetailHandler) getRequest() interface{} {
|
|
|
}
|
|
|
|
|
|
func (s SelectionDetailHandler) run() {
|
|
|
- enterpriseID := middleware.GetSessionAuth(s.ctx).EnterpriseID
|
|
|
- res, err := service.Selection.GetSelectionDetail(s.ctx, s.req.SelectionId, enterpriseID)
|
|
|
+ fmt.Println("SelectionId:", s.req.SelectionId)
|
|
|
+ res, err := service.Selection.GetSelectionDetail(s.ctx, s.req.SelectionId)
|
|
|
if err != nil {
|
|
|
logrus.Errorf("[GetSelectionDetail] call Show err:%+v\n", err)
|
|
|
util.HandlerPackErrorResp(s.resp, consts.ErrorInternal, "")
|