Documentation
¶
Index ¶
- type ActivityCollectionDto
- type ActivityDto
- type ConfigDto
- type CreateWorkPackageDto
- type CustomActionDto
- type CustomActionExecuteDto
- type ExecuteLinksDto
- type LinkDto
- type LongTextDto
- type NotificationCollectionDto
- type NotificationDto
- type NotificationLinksDto
- type ProjectCollectionDto
- type ProjectDto
- type StatusCollectionDto
- type TimeEntryCollectionDto
- type TimeEntryDto
- type TypeCollectionDto
- type TypeDto
- type TypeDtos
- type UserCollectionDto
- type UserDto
- type VersionCollectionDto
- type VersionDto
- type WorkPackageCollectionDto
- type WorkPackageDto
- type WorkPackageLinksDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityCollectionDto ¶
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"`
}
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 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 TimeEntryCollectionDto ¶
type TimeEntryCollectionDto struct {
Embedded timeEntryElements `json:"_embedded"`
Type string `json:"_type"`
Total uint64 `json:"total"`
Count uint64 `json:"count"`
}
func (*TimeEntryCollectionDto) Convert ¶
func (dto *TimeEntryCollectionDto) Convert() []*models.TimeEntry
type TimeEntryDto ¶
type TimeEntryDto struct {
Id int64 `json:"id,omitempty"`
Comment *LongTextDto `json:"comment,omitempty"`
SpentOn string `json:"spentOn,omitempty"`
Hours string `json:"hours,omitempty"`
Ongoing bool `json:"ongoing,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
Links *timeEntryLinksDto `json:"_links,omitempty"`
}
func (*TimeEntryDto) Convert ¶
func (dto *TimeEntryDto) Convert() *models.TimeEntry
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 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 VersionCollectionDto ¶
type VersionCollectionDto struct {
Embedded *versionElements `json:"_embedded"`
Type string `json:"_type"`
}
func (*VersionCollectionDto) Convert ¶
func (dto *VersionCollectionDto) Convert() []*models.Version
type VersionDto ¶
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 ¶
func (dto *WorkPackageCollectionDto) Convert() *models.WorkPackageCollection
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"`
}
Click to show internal directories.
Click to hide internal directories.