|
@@ -40,17 +40,19 @@ func (h *SProjectListHandler) getResponse() interface{} {
|
|
|
}
|
|
|
func (h *SProjectListHandler) run() {
|
|
|
condition := pack.HttpSProjectListRequestToCondition(h.req)
|
|
|
- data, err := service.SProject.GetSProjectList(h.ctx, h.req.SupplierId, h.req.PageSize, h.req.PageNum, condition)
|
|
|
+ data, err := service.SProject.GetSProjectList(h.ctx, h.req.SupplierId, h.req.PageSize, h.req.PageNum-1, condition)
|
|
|
if err != nil {
|
|
|
logrus.WithContext(h.ctx).Errorf("[FullProjectListHandler] error GetFullProjectList, err:%+v", err)
|
|
|
util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, consts.DefaultToast)
|
|
|
- h.resp.Message = "失败"
|
|
|
+ h.resp.Message = "err"
|
|
|
+ h.resp.Status = 40000
|
|
|
return
|
|
|
}
|
|
|
// fmt.Println("data: ", data, "total: ", total)
|
|
|
// fmt.Println("sProjectInfo: ", sProjectInfo)
|
|
|
h.resp.Data = data
|
|
|
- h.resp.Message = "成功"
|
|
|
+ h.resp.Status = 20000
|
|
|
+ h.resp.Message = "ok"
|
|
|
}
|
|
|
|
|
|
func (h *SProjectListHandler) checkParam() error {
|