mirror of
https://github.com/documize/community.git
synced 2025-07-18 20:59:43 +02:00
Make API work with new schema
This commit is contained in:
parent
28342fcf5e
commit
4f0cc2f616
48 changed files with 1218 additions and 1097 deletions
|
@ -20,7 +20,7 @@ type Block struct {
|
|||
SpaceID string `json:"folderId"`
|
||||
UserID string `json:"userId"`
|
||||
ContentType string `json:"contentType"`
|
||||
PageType string `json:"pageType"`
|
||||
Type string `json:"pageType"`
|
||||
Name string `json:"title"`
|
||||
Body string `json:"body"`
|
||||
Excerpt string `json:"excerpt"`
|
||||
|
|
|
@ -90,7 +90,7 @@ type UploadModel struct {
|
|||
type SitemapDocument struct {
|
||||
DocumentID string
|
||||
Document string
|
||||
FolderID string
|
||||
SpaceID string
|
||||
Folder string
|
||||
Revised time.Time
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ import "github.com/documize/community/model"
|
|||
type Link struct {
|
||||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
FolderID string `json:"folderId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
UserID string `json:"userId"`
|
||||
LinkType string `json:"linkType"`
|
||||
SourceDocumentID string `json:"sourceDocumentId"`
|
||||
|
|
|
@ -71,7 +71,7 @@ func Numberize(pages []Page) {
|
|||
// Troubleshooting help
|
||||
if len(numbering) == 0 {
|
||||
fmt.Println(fmt.Sprintf("No number allocated to page %s ('%s')",
|
||||
pages[i].RefID, pages[i].Title))
|
||||
pages[i].RefID, pages[i].Name))
|
||||
}
|
||||
|
||||
// update state
|
||||
|
|
|
@ -31,7 +31,7 @@ type User struct {
|
|||
Admin bool `json:"admin"`
|
||||
ViewUsers bool `json:"viewUsers"`
|
||||
Analytics bool `json:"analytics"`
|
||||
Global bool `json:"global"`
|
||||
GlobalAdmin bool `json:"global"`
|
||||
Password string `json:"-"`
|
||||
Salt string `json:"-"`
|
||||
Reset string `json:"-"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue