Ver Fonte

pull develop

wangxingcheng há 2 anos atrás
pai
commit
46b8778c75
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      opms_parent/app/handler/plat/schedule.go

+ 2 - 3
opms_parent/app/handler/plat/schedule.go

@@ -4,7 +4,6 @@ import (
 	"context"
 
 	"dashoo.cn/common_definition/comm_def"
-	"dashoo.cn/opms_libary/myerrors"
 	"github.com/gogf/gf/frame/g"
 	"github.com/gogf/gf/util/gvalid"
 
@@ -21,7 +20,7 @@ func (h *ScheduleHeader) GetList(ctx context.Context, req *model.ScheduleSearchR
 		return err
 	}
 	total, list, err := s.GetList(req)
-	_, err, rsp.Code, rsp.Msg = myerrors.CheckError(err)
+
 	if err != nil {
 		return err
 	}
@@ -40,7 +39,7 @@ func (h *ScheduleHeader) Create(ctx context.Context, req *model.AddScheduleSeq,
 		return err
 	}
 	id, err := s.Create(req)
-	_, err, rsp.Code, rsp.Msg = myerrors.CheckError(err)
+
 	if err != nil {
 
 		return err