1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

bulk data model ID

This commit is contained in:
Harvey Kandola 2018-01-19 16:01:22 +00:00
parent 6409ad0d63
commit c0d19f2531
2 changed files with 2 additions and 0 deletions

View file

@ -1265,6 +1265,7 @@ func (h *Handler) FetchPages(w http.ResponseWriter, r *http.Request) {
if process {
d := page.BulkRequest{}
d.ID = fmt.Sprintf("container-%s", p.RefID)
d.Page = p
for _, m := range meta {

View file

@ -125,6 +125,7 @@ type LevelRequest struct {
// BulkRequest details page, it's meta, pending page changes.
// Used to bulk load data by GUI so as to reduce network requests.
type BulkRequest struct {
ID string `json:"id"`
Page Page `json:"page"`
Meta Meta `json:"meta"`
Pending []PendingPage `json:"pending"`