dtos

package
v0.0.0-...-bbef582 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityCollectionDto

type ActivityCollectionDto struct {
	Embedded activityElements `json:"_embedded"`
	Type     string           `json:"_type"`
	Total    uint64           `json:"total"`
	Count    uint64           `json:"count"`
}

func (*ActivityCollectionDto) Convert

func (dto *ActivityCollectionDto) Convert() (act []*models.Activity, err error)

type ActivityDto

type ActivityDto struct {
	Id        uint64            `json:"id,omitempty"`
	Comment   *LongTextDto      `json:"comment,omitempty"`
	Details   []*LongTextDto    `json:"details,omitempty"`
	Version   uint64            `json:"version,omitempty"`
	CreatedAt string            `json:"createdAt,omitempty"`
	UpdatedAt string            `json:"updatedAt,omitempty"`
	Links     *activityLinksDto `json:"_links,omitempty"`
}

func (*ActivityDto) Convert

func (dto *ActivityDto) Convert() (activity *models.Activity, err error)

type ConfigDto

type ConfigDto struct {
	Type         string `json:"_type"`
	InstanceName string `json:"instanceName"`
}

type CreateWorkPackageDto

type CreateWorkPackageDto struct {
	Subject string `json:"subject"`
}

type CustomActionDto

type CustomActionDto struct {
	Name  string                `json:"name"`
	Links *customActionLinksDto `json:"_links"`
}

func (*CustomActionDto) Convert

func (dto *CustomActionDto) Convert() *models.CustomAction

type CustomActionExecuteDto

type CustomActionExecuteDto struct {
	LockVersion int              `json:"lockVersion"`
	Links       *ExecuteLinksDto `json:"_links"`
}

type ExecuteLinksDto

type ExecuteLinksDto struct {
	WorkPackage *LinkDto `json:"workPackage"`
}

type LinkDto

type LinkDto struct {
	Href   string `json:"href,omitempty"`
	Title  string `json:"title,omitempty"`
	Method string `json:"method,omitempty"`
}

type LongTextDto

type LongTextDto struct {
	Format string `json:"format"`
	Raw    string `json:"raw"`
	Html   string `json:"html"`
}

func (*LongTextDto) Convert

func (dto *LongTextDto) Convert() *models.LongText

///////////// MODEL CONVERSION ///////////////

type NotificationCollectionDto

type NotificationCollectionDto struct {
	Embedded *notificationElements `json:"_embedded"`
	Type     string                `json:"_type"`
}

func (*NotificationCollectionDto) Convert

func (dto *NotificationCollectionDto) Convert() []*models.Notification

type NotificationDto

type NotificationDto struct {
	Id        int64                `json:"id"`
	Reason    string               `json:"reason"`
	ReadIAN   bool                 `json:"readIAN"`
	CreatedAt string               `json:"createdAt"`
	UpdatedAt string               `json:"updatedAt"`
	Links     NotificationLinksDto `json:"_links"`
}

func (*NotificationDto) Convert

func (dto *NotificationDto) Convert() *models.Notification

type NotificationLinksDto

type NotificationLinksDto struct {
	Resource LinkDto `json:"resource"`
}

type ProjectCollectionDto

type ProjectCollectionDto struct {
	Embedded *projectElements `json:"_embedded"`
	Type     string           `json:"_type"`
}

func (*ProjectCollectionDto) Convert

func (dto *ProjectCollectionDto) Convert() []*models.Project

type ProjectDto

type ProjectDto struct {
	Id    int64         `json:"id"`
	Name  string        `json:"name"`
	Links *projectLinks `json:"_links"`
}

func (*ProjectDto) Convert

func (dto *ProjectDto) Convert() *models.Project

type StatusCollectionDto

type StatusCollectionDto struct {
	Embedded *statusElements `json:"_embedded"`
	Type     string          `json:"_type"`
}

func (*StatusCollectionDto) Convert

func (dto *StatusCollectionDto) Convert() []*models.Status

type TypeCollectionDto

type TypeCollectionDto struct {
	Embedded *typeElements `json:"_embedded"`
	Type     string        `json:"_type"`
}

func (*TypeCollectionDto) Convert

func (dto *TypeCollectionDto) Convert() []*models.Type

type TypeDto

type TypeDto struct {
	Id    int64      `json:"id"`
	Name  string     `json:"name"`
	Links *typeLinks `json:"_links"`
}

func (*TypeDto) Convert

func (dto *TypeDto) Convert() *models.Type

type TypeDtos

type TypeDtos []*TypeDto

func (TypeDtos) Convert

func (dtos TypeDtos) Convert() []*models.Type

type UserCollectionDto

type UserCollectionDto struct {
	Embedded userElements `json:"_embedded"`
	Type     string       `json:"_type"`
	Total    uint64       `json:"total"`
	Count    uint64       `json:"count"`
}

func (*UserCollectionDto) Convert

func (dto *UserCollectionDto) Convert() []*models.User

type UserDto

type UserDto struct {
	Id        uint64 `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	FirstName string `json:"firstName,omitempty"`
	LastName  string `json:"lastName,omitempty"`
}

func (*UserDto) Convert

func (dto *UserDto) Convert() *models.User

type VersionCollectionDto

type VersionCollectionDto struct {
	Embedded *versionElements `json:"_embedded"`
	Type     string           `json:"_type"`
}

func (*VersionCollectionDto) Convert

func (dto *VersionCollectionDto) Convert() []*models.Version

type VersionDto

type VersionDto struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
}

func (*VersionDto) Convert

func (dto *VersionDto) Convert() *models.Version

type WorkPackageCollectionDto

type WorkPackageCollectionDto struct {
	Embedded workPackageElements `json:"_embedded"`
	Type     string              `json:"_type"`
	Total    int64               `json:"total"`
	Count    int64               `json:"count"`
	PageSize int64               `json:"pageSize"`
	Offset   int64               `json:"offset"`
}

func (*WorkPackageCollectionDto) Convert

type WorkPackageDto

type WorkPackageDto struct {
	Id          int64                `json:"id,omitempty"`
	Subject     string               `json:"subject,omitempty"`
	Links       *WorkPackageLinksDto `json:"_links,omitempty"`
	Description *LongTextDto         `json:"description,omitempty"`
	Embedded    *embeddedDto         `json:"_embedded,omitempty"`
	LockVersion int                  `json:"lockVersion,omitempty"`
}

func (*WorkPackageDto) Convert

func (dto *WorkPackageDto) Convert() *models.WorkPackage

type WorkPackageLinksDto

type WorkPackageLinksDto struct {
	Self              *LinkDto   `json:"self,omitempty"`
	AddAttachment     *LinkDto   `json:"addAttachment,omitempty"`
	Status            *LinkDto   `json:"status,omitempty"`
	Project           *LinkDto   `json:"project,omitempty"`
	Assignee          *LinkDto   `json:"assignee,omitempty"`
	Type              *LinkDto   `json:"type,omitempty"`
	CustomActions     []*LinkDto `json:"customActions,omitempty"`
	PrepareAttachment *LinkDto   `json:"prepareAttachment,omitempty"`
}

Jump to

Keyboard shortcuts

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