(_ []string)
| 671 | } |
| 672 | |
| 673 | func (p ProjectItem) ExportData(_ []string) map[string]interface{} { |
| 674 | v := map[string]interface{}{ |
| 675 | "id": p.ID(), |
| 676 | "title": p.Title(), |
| 677 | "body": p.Body(), |
| 678 | "type": p.Type(), |
| 679 | } |
| 680 | // Emulate omitempty. |
| 681 | if url := p.URL(); url != "" { |
| 682 | v["url"] = url |
| 683 | } |
| 684 | return v |
| 685 | } |
| 686 | |
| 687 | // ProjectItems returns the items of a project. If the OwnerType is VIEWER, no login is required. |
| 688 | // If limit is 0, the default limit is used. The queryStr parameter is passed as a server-side |