model

package
v0.0.0-...-2282f30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	ID                        string                  `json:"id"`
	Tenant                    string                  `json:"tenant"`
	Subject                   string                  `json:"subject"`
	Description               string                  `json:"description"`
	Status                    string                  `json:"status"`
	Priority                  string                  `json:"priority"`
	ReportedByOrganizationId  string                  `json:"reportedByOrganizationId,omitempty"`
	SubmittedByOrganizationId string                  `json:"submittedByOrganizationId,omitempty"`
	SubmittedByUserId         string                  `json:"submittedByUserId,omitempty"`
	Source                    cmnmod.Source           `json:"source"`
	ExternalSystems           []cmnmod.ExternalSystem `json:"externalSystem"`
	CreatedAt                 time.Time               `json:"createdAt,omitempty"`
	UpdatedAt                 time.Time               `json:"updatedAt,omitempty"`
	AssignedToUserIds         []string                `json:"assignedToUserIds,omitempty"`
	FollowedByUserIds         []string                `json:"followedByUserIds,omitempty"`
}

func (*Issue) AddAssignedToUserId

func (i *Issue) AddAssignedToUserId(userId string)

func (*Issue) AddFollowedByUserId

func (i *Issue) AddFollowedByUserId(userId string)

func (*Issue) HasExternalSystem

func (i *Issue) HasExternalSystem(externalSystem cmnmod.ExternalSystem) bool

func (*Issue) RemoveAssignedToUserId

func (i *Issue) RemoveAssignedToUserId(userId string)

func (*Issue) RemoveFollowedByUserId

func (i *Issue) RemoveFollowedByUserId(userId string)

func (*Issue) SameData

func (i *Issue) SameData(fields IssueDataFields, externalSystem cmnmod.ExternalSystem) bool

type IssueDataFields

type IssueDataFields struct {
	GroupId                   *string
	Subject                   string
	Description               string
	Status                    string
	Priority                  string
	ReportedByOrganizationId  *string
	SubmittedByOrganizationId *string
	SubmittedByUserId         *string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL