define more properties of new confluence object
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-10-26 15:08:06 +11:00
parent f28958cdd0
commit 1d1376ee5f

12
main.go
View File

@@ -366,13 +366,21 @@ func main() {
fmt.Printf("New Content: %v\n", newContent) fmt.Printf("New Content: %v\n", newContent)
data := &goconfluence.Content{ data := &goconfluence.Content{
ID: *cPageId, ID: c.ID,
Type: c.Type,
Title: c.Title,
Body: goconfluence.Body{ Body: goconfluence.Body{
Storage: goconfluence.Storage{ Storage: goconfluence.Storage{
Value: newContent, Value: newContent,
Representation: "storage", Representation: c.Body.Storage.Representation,
}, },
}, },
Version: &goconfluence.Version{
Number: c.Version.Number + 1,
},
Space: &goconfluence.Space{
Key: c.Space.Key,
},
} }
//c.Body.Storage.Value = newContent //c.Body.Storage.Value = newContent
fmt.Printf("confluence object : '%v'\n", data) fmt.Printf("confluence object : '%v'\n", data)