|
@@ -4,15 +4,16 @@ import (
|
|
|
"bytes"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
- operationPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/operation"
|
|
|
- "gitee.com/xuyiping_admin/pkg/logger/zaplog"
|
|
|
- "gitee.com/xuyiping_admin/pkg/tool"
|
|
|
- "gitee.com/xuyiping_admin/pkg/xerr"
|
|
|
"io/ioutil"
|
|
|
"net/http"
|
|
|
"strings"
|
|
|
"time"
|
|
|
|
|
|
+ operationPb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/operation"
|
|
|
+ "gitee.com/xuyiping_admin/pkg/logger/zaplog"
|
|
|
+ "gitee.com/xuyiping_admin/pkg/tool"
|
|
|
+ "gitee.com/xuyiping_admin/pkg/xerr"
|
|
|
+
|
|
|
"go.uber.org/zap"
|
|
|
)
|
|
|
|
|
@@ -256,6 +257,7 @@ func (g GroupPastureSlice) ToPB() []*operationPb.AddPastureRequest {
|
|
|
IsShow: v.IsShow,
|
|
|
CreatedAt: int32(v.CreatedAt),
|
|
|
CreatedAtFormat: time.Unix(v.CreatedAt, 0).Format(LayoutTime),
|
|
|
+ PastureId: int32(v.PastureId),
|
|
|
}
|
|
|
}
|
|
|
return res
|