(_ []string)
| 638 | } |
| 639 | |
| 640 | func (p ProjectItem) ExportData(_ []string) map[string]interface{} { |
| 641 | v := map[string]interface{}{ |
| 642 | "id": p.ID(), |
| 643 | "title": p.Title(), |
| 644 | "body": p.Body(), |
| 645 | "type": p.Type(), |
| 646 | } |
| 647 | // Emulate omitempty. |
| 648 | if url := p.URL(); url != "" { |
| 649 | v["url"] = url |
| 650 | } |
| 651 | return v |
| 652 | } |
| 653 | |
| 654 | // ProjectItems returns the items of a project. If the OwnerType is VIEWER, no login is required. |
| 655 | // If limit is 0, the default limit is used. The queryStr parameter is passed as a server-side |