|
|
@@ -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
|