mirror of
https://github.com/documize/community.git
synced 2025-07-27 17:19:42 +02:00
bulk data model ID
This commit is contained in:
parent
6409ad0d63
commit
c0d19f2531
2 changed files with 2 additions and 0 deletions
|
@ -1265,6 +1265,7 @@ func (h *Handler) FetchPages(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if process {
|
if process {
|
||||||
d := page.BulkRequest{}
|
d := page.BulkRequest{}
|
||||||
|
d.ID = fmt.Sprintf("container-%s", p.RefID)
|
||||||
d.Page = p
|
d.Page = p
|
||||||
|
|
||||||
for _, m := range meta {
|
for _, m := range meta {
|
||||||
|
|
|
@ -125,6 +125,7 @@ type LevelRequest struct {
|
||||||
// BulkRequest details page, it's meta, pending page changes.
|
// BulkRequest details page, it's meta, pending page changes.
|
||||||
// Used to bulk load data by GUI so as to reduce network requests.
|
// Used to bulk load data by GUI so as to reduce network requests.
|
||||||
type BulkRequest struct {
|
type BulkRequest struct {
|
||||||
|
ID string `json:"id"`
|
||||||
Page Page `json:"page"`
|
Page Page `json:"page"`
|
||||||
Meta Meta `json:"meta"`
|
Meta Meta `json:"meta"`
|
||||||
Pending []PendingPage `json:"pending"`
|
Pending []PendingPage `json:"pending"`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue