add variable and method comments
This commit is contained in:
@@ -2,6 +2,7 @@ package models
|
||||
|
||||
import "go.infratographer.com/x/gidx"
|
||||
|
||||
// ProjectDetails contains project and membership information.
|
||||
type ProjectDetails struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
@@ -9,6 +10,7 @@ type ProjectDetails struct {
|
||||
Organization *OrganizationDetails `json:"organization"`
|
||||
}
|
||||
|
||||
// PrefixedID returns the prefixed id for the project.
|
||||
func (d *ProjectDetails) PrefixedID() gidx.PrefixedID {
|
||||
if d.ID == "" {
|
||||
return gidx.NullPrefixedID
|
||||
|
||||
Reference in New Issue
Block a user