mirror of
https://github.com/documize/community.git
synced 2025-07-18 20:59:43 +02:00
EmberJS: FolderID to SpaceID
Co-Authored-By: Harvey Kandola <harvey@documize.com>
This commit is contained in:
parent
66d5e73ed1
commit
e0457b40da
45 changed files with 170 additions and 99 deletions
|
@ -18,7 +18,7 @@ type UserActivity struct {
|
|||
ID uint64 `json:"id"`
|
||||
OrgID string `json:"orgId"`
|
||||
UserID string `json:"userId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
DocumentID string `json:"documentId"`
|
||||
SectionID string `json:"pageId"`
|
||||
ActivityType Type `json:"activityType"`
|
||||
|
@ -34,7 +34,7 @@ type UserActivity struct {
|
|||
type DocumentActivity struct {
|
||||
ID uint64 `json:"id"`
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
DocumentID string `json:"documentId"`
|
||||
SectionID string `json:"pageId"`
|
||||
SectionName string `json:"pageTitle"`
|
||||
|
|
|
@ -17,7 +17,7 @@ import "github.com/documize/community/model"
|
|||
type Block struct {
|
||||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
UserID string `json:"userId"`
|
||||
ContentType string `json:"contentType"`
|
||||
Type string `json:"pageType"`
|
||||
|
|
|
@ -17,7 +17,7 @@ import "github.com/documize/community/model"
|
|||
type Category struct {
|
||||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
Name string `json:"category"`
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ type Member struct {
|
|||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
CategoryID string `json:"categoryId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
DocumentID string `json:"documentId"`
|
||||
}
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ import (
|
|||
type Document struct {
|
||||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
UserID string `json:"userId"`
|
||||
Job string `json:"job"`
|
||||
Location string `json:"location"`
|
||||
|
|
|
@ -17,7 +17,7 @@ import "github.com/documize/community/model"
|
|||
type Link struct {
|
||||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
UserID string `json:"userId"`
|
||||
LinkType string `json:"linkType"`
|
||||
SourceDocumentID string `json:"sourceDocumentId"`
|
||||
|
@ -32,7 +32,7 @@ type Link struct {
|
|||
type Candidate struct {
|
||||
RefID string `json:"id"`
|
||||
LinkType string `json:"linkType"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
DocumentID string `json:"documentId"`
|
||||
TargetID string `json:"targetId"`
|
||||
Title string `json:"title"` // what we label the link
|
||||
|
|
|
@ -21,7 +21,7 @@ import (
|
|||
type SitemapDocument struct {
|
||||
DocumentID string
|
||||
Document string
|
||||
FolderID string
|
||||
SpaceID string
|
||||
Folder string
|
||||
Revised time.Time
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ package permission
|
|||
type Record struct {
|
||||
ID uint64 `json:"id"`
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
WhoID string `json:"whoId"`
|
||||
Who WhoType `json:"who"`
|
||||
SpaceView bool `json:"spaceView"`
|
||||
|
@ -149,7 +149,7 @@ func EncodeRecord(r Record, a Action) (p Permission) {
|
|||
// CategoryViewRequestModel represents who should be allowed to see a category.
|
||||
type CategoryViewRequestModel struct {
|
||||
OrgID string `json:"orgId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
CategoryID string `json:"categoryID"`
|
||||
WhoID string `json:"whoId"`
|
||||
Who WhoType `json:"who"`
|
||||
|
|
|
@ -18,7 +18,7 @@ type Pin struct {
|
|||
model.BaseEntity
|
||||
OrgID string `json:"orgId"`
|
||||
UserID string `json:"userId"`
|
||||
SpaceID string `json:"folderId"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
DocumentID string `json:"documentId"`
|
||||
Name string `json:"pin"`
|
||||
Sequence int `json:"sequence"`
|
||||
|
|
|
@ -22,7 +22,7 @@ type Space struct {
|
|||
Name string `json:"name"`
|
||||
OrgID string `json:"orgId"`
|
||||
UserID string `json:"userId"`
|
||||
Type Scope `json:"folderType"`
|
||||
Type Scope `json:"spaceType"`
|
||||
|
||||
// Lifecycle stores the default value all new documents are given upon creation.
|
||||
Lifecycle workflow.Lifecycle `json:"lifecycle"`
|
||||
|
@ -64,8 +64,8 @@ func (l *Space) IsRestricted() bool {
|
|||
// Viewer details who can see a particular space
|
||||
type Viewer struct {
|
||||
Name string `json:"name"`
|
||||
SpaceID string `json:"folderId"`
|
||||
Type int `json:"folderType"`
|
||||
SpaceID string `json:"spaceId"`
|
||||
Type int `json:"spaceType"`
|
||||
UserID string `json:"userId"`
|
||||
Firstname string `json:"firstname"`
|
||||
Lastname string `json:"lastname"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue