models

package
v0.11.0-test9 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangelogTmp

type ChangelogTmp struct {
	Id              uint64
	IssueId         uint64
	AuthorId        string
	AuthorName      string
	FieldId         string
	FieldName       string
	FromValue       string
	ToValue         string
	IterationIdFrom uint64
	IterationIdTo   uint64
	CreatedDate     time.Time
	common.RawDataOrigin
}

type TapdBug

type TapdBug struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	ID           uint64 `gorm:"primaryKey;type:BIGINT" json:"id,string"`
	EpicKey      string
	Title        string `json:"name" gorm:"type:varchar(255)"`
	Description  string
	WorkspaceID  uint64          `json:"workspace_id,string"`
	Created      *helper.CSTTime `json:"created"`
	Modified     *helper.CSTTime `json:"modified" gorm:"index"`
	Status       string          `json:"status"`
	Cc           string          `json:"cc"`
	Begin        *helper.CSTTime `json:"begin"`
	Due          *helper.CSTTime `json:"due"`
	Priority     string          `json:"priority"`
	IterationID  uint64          `json:"iteration_id,string"`
	Source       string          `json:"source"`
	Module       string          `json:"module"`
	ReleaseID    uint64          `json:"release_id,string"`
	CreatedFrom  string          `json:"created_from"`
	Feature      string          `json:"feature"`
	common.NoPKModel

	Severity         string          `json:"severity"`
	Reporter         string          `json:"reporter"`
	Resolved         *helper.CSTTime `json:"resolved"`
	Closed           *helper.CSTTime `json:"closed"`
	Lastmodify       string          `json:"lastmodify"`
	Auditer          string          `json:"auditer"`
	De               string          `json:"De" gorm:"comment:developer;type:varchar(255)"`
	Fixer            string          `json:"fixer"`
	VersionTest      string          `json:"version_test"`
	VersionReport    string          `json:"version_report"`
	VersionClose     string          `json:"version_close"`
	VersionFix       string          `json:"version_fix"`
	BaselineFind     string          `json:"baseline_find"`
	BaselineJoin     string          `json:"baseline_join"`
	BaselineClose    string          `json:"baseline_close"`
	BaselineTest     string          `json:"baseline_test"`
	Sourcephase      string          `json:"sourcephase"`
	Te               string          `json:"te"`
	CurrentOwner     string          `json:"current_owner"`
	Resolution       string          `json:"resolution"`
	Originphase      string          `json:"originphase"`
	Confirmer        string          `json:"confirmer"`
	Participator     string          `json:"participator"`
	Closer           string          `json:"closer"`
	Platform         string          `json:"platform"`
	Os               string          `json:"os"`
	Testtype         string          `json:"testtype"`
	Testphase        string          `json:"testphase"`
	Frequency        string          `json:"frequency"`
	RegressionNumber string          `json:"regression_number"`
	Flows            string          `json:"flows"`
	Testmode         string          `json:"testmode"`
	IssueID          uint64          `json:"issue_id,string"`
	VerifyTime       *helper.CSTTime `json:"verify_time"`
	RejectTime       *helper.CSTTime `json:"reject_time"`
	ReopenTime       *helper.CSTTime `json:"reopen_time"`
	AuditTime        *helper.CSTTime `json:"audit_time"`
	SuspendTime      *helper.CSTTime `json:"suspend_time"`
	Deadline         *helper.CSTTime `json:"deadline"`
	InProgressTime   *helper.CSTTime `json:"in_progress_time"`
	AssignedTime     *helper.CSTTime `json:"assigned_time"`
	TemplateID       uint64          `json:"template_id,string"`
	StoryID          uint64          `json:"story_id,string"`
	StdStatus        string
	StdType          string
	Type             string
	Url              string

	SupportID       uint64  `json:"support_id,string"`
	SupportForumID  uint64  `json:"support_forum_id,string"`
	TicketID        uint64  `json:"ticket_id,string"`
	Follower        string  `json:"follower"`
	SyncType        string  `json:"sync_type"`
	Label           string  `json:"label"`
	Effort          float32 `json:"effort,string"`
	EffortCompleted float32 `json:"effort_completed,string"`
	Exceed          float32 `json:"exceed,string"`
	Remain          float32 `json:"remain,string"`
	Progress        string  `json:"progress"`
	Estimate        float32 `json:"estimate,string"`
	Bugtype         string  `json:"bugtype"`

	Milestone string `json:"milestone" gorm:"type:varchar(255)"`
}

func (TapdBug) TableName

func (TapdBug) TableName() string

type TapdBugChangelog

type TapdBugChangelog struct {
	ConnectionId uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	WorkspaceID  uint64          `gorm:"type:BIGINT  NOT NULL"`
	ID           uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL" json:"id,string"`
	BugID        uint64          `json:"bug_id,string"`
	Author       string          `json:"author"`
	Field        string          `gorm:"primaryKey;type:varchar(255)" json:"field"`
	OldValue     string          `json:"old_value"`
	NewValue     string          `json:"new_value"`
	Memo         string          `json:"memo"`
	Created      *helper.CSTTime `json:"created"`
	common.NoPKModel
}

func (TapdBugChangelog) TableName

func (TapdBugChangelog) TableName() string

type TapdBugChangelogItem

type TapdBugChangelogItem struct {
	ConnectionId      uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ChangelogId       uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	Field             string `json:"field" gorm:"primaryKey;"`
	ValueBeforeParsed string `json:"value_before_parsed"`
	ValueAfterParsed  string `json:"value_after_parsed"`
	IterationIdFrom   uint64
	IterationIdTo     uint64
	common.NoPKModel
}

func (TapdBugChangelogItem) TableName

func (TapdBugChangelogItem) TableName() string

type TapdBugCommit

type TapdBugCommit struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	ID           uint64 `gorm:"primaryKey;type:BIGINT" json:"id,string"`

	UserID          string `json:"user_id" gorm:"type:varchar(255)"`
	HookUserName    string `json:"hook_user_name" gorm:"type:varchar(255)"`
	CommitID        string `json:"commit_id" gorm:"type:varchar(255)"`
	WorkspaceID     uint64 `json:"workspace_id,string" gorm:"type:varchar(255)"`
	Message         string `json:"message"`
	Path            string `json:"path" gorm:"type:varchar(255)"`
	WebURL          string `json:"web_url" gorm:"type:varchar(255)"`
	HookProjectName string `json:"hook_project_name" gorm:"type:varchar(255)"`

	Ref        string          `json:"ref" gorm:"type:varchar(255)"`
	RefStatus  string          `json:"ref_status" gorm:"type:varchar(255)"`
	GitEnv     string          `json:"git_env" gorm:"type:varchar(255)"`
	FileCommit string          `json:"file_commit"`
	CommitTime *helper.CSTTime `json:"commit_time"`
	Created    *helper.CSTTime `json:"created"`

	BugId uint64
	common.NoPKModel
}

func (TapdBugCommit) TableName

func (TapdBugCommit) TableName() string

type TapdBugCustomFields

type TapdBugCustomFields struct {
	ConnectionId uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ID           uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL" json:"id,string"`
	WorkspaceID  uint64 `json:"workspace_id,string"`
	EntryType    string `json:"entry_type" gorm:"type:varchar(255)"`
	CustomField  string `json:"custom_field" gorm:"type:varchar(255)"`
	Type         string `json:"type" gorm:"type:varchar(255)"`
	Name         string `json:"name" gorm:"type:varchar(255)"`
	Options      string `json:"options"`
	Enabled      string `json:"enabled" gorm:"type:varchar(255)"`
	Sort         string `json:"sort" gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (TapdBugCustomFields) TableName

func (TapdBugCustomFields) TableName() string

type TapdBugLabel

type TapdBugLabel struct {
	BugId     uint64 `gorm:"primaryKey;autoIncrement:false"`
	LabelName string `gorm:"primaryKey;type:varchar(255)"`
	common.NoPKModel
}

func (TapdBugLabel) TableName

func (TapdBugLabel) TableName() string

type TapdBugStatus

type TapdBugStatus struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	WorkspaceID  uint64 `gorm:"primaryKey"`
	EnglishName  string `gorm:"primaryKey;type:varchar(255)"`
	ChineseName  string
	IsLastStep   bool
	common.NoPKModel
}

func (TapdBugStatus) TableName

func (TapdBugStatus) TableName() string

type TapdConnection

type TapdConnection struct {
	common.Model
	Name             string `gorm:"type:varchar(100);uniqueIndex" json:"name" validate:"required"`
	Endpoint         string `gorm:"type:varchar(255)" json:"endpoint"`
	BasicAuthEncoded string `gorm:"type:varchar(255)" json:"basicAuthEncoded"`
	RateLimit        int    `comment:"api request rate limt per hour" json:"rateLimit"`
}

func (TapdConnection) TableName

func (TapdConnection) TableName() string

type TapdConnectionDetail

type TapdConnectionDetail struct {
	TapdConnection
}

type TapdIssue

type TapdIssue struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	ID           uint64 `gorm:"primaryKey;type:BIGINT" json:"id,string"`
}

func (TapdIssue) TableName

func (TapdIssue) TableName() string

type TapdIteration

type TapdIteration struct {
	ConnectionId uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ID           uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL" json:"id,string"`
	Name         string          `gorm:"type:varchar(255)" json:"name"`
	WorkspaceID  uint64          `json:"workspace_id,string"`
	Startdate    *helper.CSTTime `json:"startdate"`
	Enddate      *helper.CSTTime `json:"enddate"`
	Status       string          `gorm:"type:varchar(255)" json:"status"`
	ReleaseID    uint64          `gorm:"type:varchar(255)" json:"release_id,string"`
	Description  string          `json:"description"`
	Creator      string          `gorm:"type:varchar(255)" json:"creator"`
	Created      *helper.CSTTime `json:"created"`
	Modified     *helper.CSTTime `json:"modified"`
	Completed    *helper.CSTTime `json:"completed"`
	Releaseowner string          `gorm:"type:varchar(255)" json:"releaseowner"`
	Launchdate   *helper.CSTTime `json:"launchdate"`
	Notice       string          `gorm:"type:varchar(255)" json:"notice"`
	Releasename  string          `gorm:"type:varchar(255)" json:"releasename"`
	common.NoPKModel
}

func (TapdIteration) TableName

func (TapdIteration) TableName() string

type TapdIterationBug

type TapdIterationBug struct {
	common.NoPKModel
	ConnectionId   uint64 `gorm:"primaryKey"`
	IterationId    uint64 `gorm:"primaryKey"`
	WorkspaceID    uint64 `gorm:"primaryKey"`
	BugId          uint64 `gorm:"primaryKey"`
	ResolutionDate *helper.CSTTime
	BugCreatedDate *helper.CSTTime
}

func (TapdIterationBug) TableName

func (TapdIterationBug) TableName() string

type TapdIterationStory

type TapdIterationStory struct {
	common.NoPKModel
	ConnectionId uint64 `gorm:"primaryKey"`
	IterationId  uint64 `gorm:"primaryKey"`
	WorkspaceID  uint64 `gorm:"primaryKey"`

	StoryId          uint64 `gorm:"primaryKey"`
	ResolutionDate   *helper.CSTTime
	StoryCreatedDate *helper.CSTTime
}

func (TapdIterationStory) TableName

func (TapdIterationStory) TableName() string

type TapdIterationTask

type TapdIterationTask struct {
	common.NoPKModel
	ConnectionId uint64 `gorm:"primaryKey"`
	IterationId  uint64 `gorm:"primaryKey"`
	WorkspaceID  uint64 `gorm:"primaryKey"`

	TaskId          uint64 `gorm:"primaryKey"`
	ResolutionDate  *helper.CSTTime
	TaskCreatedDate *helper.CSTTime
}

func (TapdIterationTask) TableName

func (TapdIterationTask) TableName() string

type TapdStory

type TapdStory struct {
	ConnectionId    uint64          `gorm:"primaryKey"`
	ID              uint64          `gorm:"primaryKey;type:BIGINT" json:"id,string"`
	WorkitemTypeID  uint64          `json:"workitem_type_id,string"`
	Name            string          `gorm:"type:varchar(255)" json:"name"`
	Description     string          `json:"description"`
	WorkspaceID     uint64          `json:"workspace_id,string"`
	Creator         string          `gorm:"type:varchar(255)"`
	Created         *helper.CSTTime `json:"created"`
	Modified        *helper.CSTTime `json:"modified" gorm:"index"`
	Status          string          `json:"status" gorm:"type:varchar(255)"`
	Owner           string          `json:"owner" gorm:"type:varchar(255)"`
	Cc              string          `json:"cc" gorm:"type:varchar(255)"`
	Begin           *helper.CSTTime `json:"begin"`
	Due             *helper.CSTTime `json:"due"`
	Size            int16           `json:"size,string"`
	Priority        string          `gorm:"type:varchar(255)" json:"priority"`
	Developer       string          `gorm:"type:varchar(255)" json:"developer"`
	IterationID     uint64          `json:"iteration_id,string"`
	TestFocus       string          `json:"test_focus" gorm:"type:varchar(255)"`
	Type            string          `json:"type" gorm:"type:varchar(255)"`
	Source          string          `json:"source" gorm:"type:varchar(255)"`
	Module          string          `json:"module" gorm:"type:varchar(255)"`
	Version         string          `json:"version" gorm:"type:varchar(255)"`
	Completed       *helper.CSTTime `json:"completed"`
	CategoryID      uint64          `json:"category_id,string"`
	Path            string          `gorm:"type:varchar(255)" json:"path"`
	ParentID        uint64          `json:"parent_id,string"`
	ChildrenID      string          `gorm:"type:varchar(255)" json:"children_id"`
	AncestorID      uint64          `json:"ancestor_id,string"`
	BusinessValue   string          `gorm:"type:varchar(255)" json:"business_value"`
	Effort          float32         `json:"effort,string"`
	EffortCompleted float32         `json:"effort_completed,string"`
	Exceed          float32         `json:"exceed,string"`
	Remain          float32         `json:"remain,string"`
	ReleaseID       uint64          `json:"release_id,string"`
	Confidential    string          `gorm:"type:varchar(255)" json:"confidential"`
	TemplatedID     uint64          `json:"templated_id,string"`
	CreatedFrom     string          `gorm:"type:varchar(255)" json:"created_from"`
	Feature         string          `gorm:"type:varchar(255)" json:"feature"`
	StdStatus       string
	StdType         string
	Url             string

	AttachmentCount  int16  `json:"attachment_count,string"`
	HasAttachment    string `json:"has_attachment" gorm:"type:varchar(255)"`
	BugID            uint64 `json:"bug_id,string"`
	Follower         string `json:"follower" gorm:"type:varchar(255)"`
	SyncType         string `json:"sync_type" gorm:"type:varchar(255)"`
	PredecessorCount int16  `json:"predecessor_count,string"`
	IsArchived       string `json:"is_archived" gorm:"type:varchar(255)"`
	Modifier         string `json:"modifier" gorm:"type:varchar(255)"`
	ProgressManual   string `json:"progress_manual" gorm:"type:varchar(255)"`
	SuccessorCount   int16  `json:"successor_count,string"`
	Label            string `json:"label" gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (TapdStory) TableName

func (TapdStory) TableName() string

type TapdStoryCategory

type TapdStoryCategory struct {
	ConnectionId uint64          `gorm:"primaryKey"`
	ID           uint64          `gorm:"primaryKey;type:BIGINT" json:"id,string"`
	Name         string          `json:"name" gorm:"type:varchar(255)"`
	Description  string          `json:"description"`
	ParentID     uint64          `json:"parent_id,string"`
	Created      *helper.CSTTime `json:"created"`
	Modified     *helper.CSTTime `json:"modified"`
	common.NoPKModel
}

func (TapdStoryCategory) TableName

func (TapdStoryCategory) TableName() string

type TapdStoryChangelog

type TapdStoryChangelog struct {
	ConnectionId   uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ID             uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL" json:"id,string"`
	WorkspaceID    uint64          `json:"workspace_id,string"`
	WorkitemTypeID uint64          `json:"workitem_type_id,string"`
	Creator        string          `json:"creator"`
	Created        *helper.CSTTime `json:"created"`
	ChangeSummary  string          `json:"change_summary"`
	Comment        string          `json:"comment"`
	EntityType     string          `json:"entity_type"`
	ChangeType     string          `json:"change_type"`
	StoryID        uint64          `json:"story_id,string"`
	common.NoPKModel
	FieldChanges []TapdStoryChangelogItemRes `json:"field_changes" gorm:"-"`
}

func (TapdStoryChangelog) TableName

func (TapdStoryChangelog) TableName() string

type TapdStoryChangelogItem

type TapdStoryChangelogItem struct {
	ConnectionId      uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ChangelogId       uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	Field             string `json:"field" gorm:"primaryKey;type:varchar(255)"`
	ValueBeforeParsed string `json:"value_before_parsed"`
	ValueAfterParsed  string `json:"value_after_parsed"`
	IterationIdFrom   uint64
	IterationIdTo     uint64
	common.NoPKModel
}

func (TapdStoryChangelogItem) TableName

func (TapdStoryChangelogItem) TableName() string

type TapdStoryChangelogItemRes

type TapdStoryChangelogItemRes struct {
	ConnectionId      uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ChangelogId       uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	Field             string          `json:"field" gorm:"primaryKey;type:varchar(255)"`
	ValueBeforeParsed json.RawMessage `json:"value_before_parsed"`
	ValueAfterParsed  json.RawMessage `json:"value_after_parsed"`
	IterationIdFrom   uint64
	IterationIdTo     uint64
	common.NoPKModel
}

type TapdStoryCommit

type TapdStoryCommit struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	ID           uint64 `gorm:"primaryKey;type:BIGINT" json:"id,string"`

	UserID          string `json:"user_id" gorm:"type:varchar(255)"`
	HookUserName    string `json:"hook_user_name" gorm:"type:varchar(255)"`
	CommitID        string `json:"commit_id" gorm:"type:varchar(255)"`
	WorkspaceID     uint64 `json:"workspace_id,string" gorm:"type:varchar(255)"`
	Message         string `json:"message"`
	Path            string `json:"path" gorm:"type:varchar(255)"`
	WebURL          string `json:"web_url" gorm:"type:varchar(255)"`
	HookProjectName string `json:"hook_project_name" gorm:"type:varchar(255)"`

	Ref        string          `json:"ref" gorm:"type:varchar(255)"`
	RefStatus  string          `json:"ref_status" gorm:"type:varchar(255)"`
	GitEnv     string          `json:"git_env" gorm:"type:varchar(255)"`
	FileCommit string          `json:"file_commit"`
	CommitTime *helper.CSTTime `json:"commit_time"`
	Created    *helper.CSTTime `json:"created"`

	StoryId uint64
	common.NoPKModel
}

func (TapdStoryCommit) TableName

func (TapdStoryCommit) TableName() string

type TapdStoryCustomFields

type TapdStoryCustomFields struct {
	ConnectionId uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ID           uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL" json:"id,string"`
	WorkspaceID  uint64 `json:"workspace_id,string"`
	EntryType    string `json:"entry_type" gorm:"type:varchar(255)"`
	CustomField  string `json:"custom_field" gorm:"type:varchar(255)"`
	Type         string `json:"type" gorm:"type:varchar(255)"`
	Name         string `json:"name" gorm:"type:varchar(255)"`
	Options      string `json:"options"`
	Enabled      string `json:"enabled" gorm:"type:varchar(255)"`
	Sort         string `json:"sort" gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (TapdStoryCustomFields) TableName

func (TapdStoryCustomFields) TableName() string

type TapdStoryLabel

type TapdStoryLabel struct {
	StoryId   uint64 `gorm:"primaryKey;autoIncrement:false"`
	LabelName string `gorm:"primaryKey;type:varchar(255)"`
	common.NoPKModel
}

func (TapdStoryLabel) TableName

func (TapdStoryLabel) TableName() string

type TapdStoryStatus

type TapdStoryStatus struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	WorkspaceID  uint64 `gorm:"primaryKey"`
	EnglishName  string `gorm:"primaryKey;type:varchar(255)"`
	ChineseName  string
	IsLastStep   bool
	common.NoPKModel
}

func (TapdStoryStatus) TableName

func (TapdStoryStatus) TableName() string

type TapdTask

type TapdTask struct {
	ConnectionId    uint64          `gorm:"primaryKey"`
	ID              uint64          `gorm:"primaryKey;type:BIGINT" json:"id,string"`
	Name            string          `gorm:"type:varchar(255)" json:"name"`
	Description     string          `json:"description"`
	WorkspaceID     uint64          `json:"workspace_id,string"`
	Creator         string          `gorm:"type:varchar(255)" json:"creator"`
	Created         *helper.CSTTime `json:"created"`
	Modified        *helper.CSTTime `json:"modified" gorm:"index"`
	Status          string          `json:"status" gorm:"type:varchar(255)"`
	Owner           string          `json:"owner" gorm:"type:varchar(255)"`
	Cc              string          `json:"cc" gorm:"type:varchar(255)"`
	Begin           *helper.CSTTime `json:"begin"`
	Due             *helper.CSTTime `json:"due"`
	Priority        string          `gorm:"type:varchar(255)" json:"priority"`
	IterationID     uint64          `json:"iteration_id,string"`
	Completed       *helper.CSTTime `json:"completed"`
	Effort          float32         `json:"effort,string"`
	EffortCompleted float32         `json:"effort_completed,string"`
	Exceed          float32         `json:"exceed,string"`
	Remain          float32         `json:"remain,string"`
	StdStatus       string
	StdType         string
	Type            string
	StoryID         uint64 `json:"story_id,string"`
	Progress        int16  `json:"progress,string"`
	HasAttachment   string `gorm:"type:varchar(255)"`
	Url             string

	AttachmentCount  int16  `json:"attachment_count,string"`
	Follower         string `json:"follower" gorm:"type:varchar(255)"`
	CreatedFrom      string `json:"created_from" gorm:"type:varchar(255)"`
	PredecessorCount int16  `json:"predecessor_count,string"`
	SuccessorCount   int16  `json:"successor_count,string"`
	ReleaseId        uint64 `json:"release_id,string"`
	Label            string `json:"label" gorm:"type:varchar(255)"`
	NewStoryId       uint64 `json:"new_story_id,string"`
	common.NoPKModel
}

func (TapdTask) TableName

func (TapdTask) TableName() string

type TapdTaskChangelog

type TapdTaskChangelog struct {
	ConnectionId   uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ID             uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL" json:"id,string"`
	WorkspaceID    uint64          `json:"workspace_id,string"`
	WorkitemTypeID uint64          `json:"workitem_type_id,string"`
	Creator        string          `json:"creator"`
	Created        *helper.CSTTime `json:"created"`
	ChangeSummary  string          `json:"change_summary"`
	Comment        string          `json:"comment"`
	EntityType     string          `json:"entity_type"`
	ChangeType     string          `json:"change_type"`
	ChangeTypeText string          `json:"change_type_text"`
	TaskID         uint64          `json:"task_id,string"`
	common.NoPKModel
	FieldChanges []TapdTaskChangelogItemRes `json:"field_changes" gorm:"-"`
}

func (TapdTaskChangelog) TableName

func (TapdTaskChangelog) TableName() string

type TapdTaskChangelogItem

type TapdTaskChangelogItem struct {
	ConnectionId      uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ChangelogId       uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	Field             string `json:"field" gorm:"primaryKey;type:varchar(255)"`
	ValueBeforeParsed string `json:"value_before_parsed"`
	ValueAfterParsed  string `json:"value_after_parsed"`
	IterationIdFrom   uint64
	IterationIdTo     uint64
	common.NoPKModel
}

func (TapdTaskChangelogItem) TableName

func (TapdTaskChangelogItem) TableName() string

type TapdTaskChangelogItemRes

type TapdTaskChangelogItemRes struct {
	ConnectionId      uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ChangelogId       uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	Field             string          `json:"field" gorm:"primaryKey;type:varchar(255)"`
	ValueBeforeParsed json.RawMessage `json:"value_before_parsed"`
	ValueAfterParsed  json.RawMessage `json:"value_after_parsed"`
	IterationIdFrom   uint64
	IterationIdTo     uint64
	common.NoPKModel
}

type TapdTaskCommit

type TapdTaskCommit struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	ID           uint64 `gorm:"primaryKey;type:BIGINT" json:"id,string"`

	UserID          string `json:"user_id" gorm:"type:varchar(255)"`
	HookUserName    string `json:"hook_user_name" gorm:"type:varchar(255)"`
	CommitID        string `json:"commit_id" gorm:"type:varchar(255)"`
	WorkspaceID     uint64 `json:"workspace_id,string" gorm:"type:varchar(255)"`
	Message         string `json:"message"`
	Path            string `json:"path" gorm:"type:varchar(255)"`
	WebURL          string `json:"web_url" gorm:"type:varchar(255)"`
	HookProjectName string `json:"hook_project_name" gorm:"type:varchar(255)"`

	Ref        string          `json:"ref" gorm:"type:varchar(255)"`
	RefStatus  string          `json:"ref_status" gorm:"type:varchar(255)"`
	GitEnv     string          `json:"git_env" gorm:"type:varchar(255)"`
	FileCommit string          `json:"file_commit"`
	CommitTime *helper.CSTTime `json:"commit_time"`
	Created    *helper.CSTTime `json:"created"`

	TaskId uint64
	common.NoPKModel
}

func (TapdTaskCommit) TableName

func (TapdTaskCommit) TableName() string

type TapdTaskCustomFields

type TapdTaskCustomFields struct {
	ConnectionId uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ID           uint64 `gorm:"primaryKey;type:BIGINT  NOT NULL" json:"id,string"`
	WorkspaceID  uint64 `json:"workspace_id,string"`
	EntryType    string `json:"entry_type" gorm:"type:varchar(255)"`
	CustomField  string `json:"custom_field" gorm:"type:varchar(255)"`
	Type         string `json:"type" gorm:"type:varchar(255)"`
	Name         string `json:"name" gorm:"type:varchar(255)"`
	Options      string `json:"options"`
	Enabled      string `json:"enabled" gorm:"type:varchar(255)"`
	Sort         string `json:"sort" gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (TapdTaskCustomFields) TableName

func (TapdTaskCustomFields) TableName() string

type TapdTaskLabel

type TapdTaskLabel struct {
	TaskId    uint64 `gorm:"primaryKey;autoIncrement:false"`
	LabelName string `gorm:"primaryKey;type:varchar(255)"`
	common.NoPKModel
}

func (TapdTaskLabel) TableName

func (TapdTaskLabel) TableName() string

type TapdUser

type TapdUser struct {
	ConnectionId uint64 `gorm:"primaryKey;type:BIGINT"`
	WorkspaceID  uint64 `gorm:"primaryKey;type:BIGINT"`
	Name         string `gorm:"index;type:varchar(255)" json:"name"`
	User         string `gorm:"primaryKey;type:varchar(255)" json:"user"`
	common.NoPKModel
}

func (TapdUser) TableName

func (TapdUser) TableName() string

type TapdWorkSpaceBug

type TapdWorkSpaceBug struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	WorkspaceID  uint64 `gorm:"primaryKey"`
	BugId        uint64 `gorm:"primaryKey"`
	common.NoPKModel
}

func (TapdWorkSpaceBug) TableName

func (TapdWorkSpaceBug) TableName() string

type TapdWorkSpaceStory

type TapdWorkSpaceStory struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	WorkspaceID  uint64 `gorm:"primaryKey"`
	StoryId      uint64 `gorm:"primaryKey"`
	common.NoPKModel
}

func (TapdWorkSpaceStory) TableName

func (TapdWorkSpaceStory) TableName() string

type TapdWorkSpaceTask

type TapdWorkSpaceTask struct {
	ConnectionId uint64 `gorm:"primaryKey"`
	WorkspaceID  uint64 `gorm:"primaryKey"`
	TaskId       uint64 `gorm:"primaryKey"`
	common.NoPKModel
}

func (TapdWorkSpaceTask) TableName

func (TapdWorkSpaceTask) TableName() string

type TapdWorklog

type TapdWorklog struct {
	ConnectionId uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ID           uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL" json:"id,string"`
	WorkspaceID  uint64          `json:"workspace_id,string"`
	EntityType   string          `gorm:"type:varchar(255)" json:"entity_type"`
	EntityID     uint64          `json:"entity_id,string"`
	Timespent    float32         `json:"timespent,string"`
	Spentdate    *helper.CSTTime `json:"spentdate"`
	Owner        string          `gorm:"type:varchar(255)" json:"owner"`
	Created      *helper.CSTTime `json:"created"`
	Memo         string          `gorm:"type:varchar(255)" json:"memo"`
	common.NoPKModel
}

func (TapdWorklog) TableName

func (TapdWorklog) TableName() string

type TapdWorkspace

type TapdWorkspace struct {
	ConnectionId uint64          `gorm:"primaryKey;type:BIGINT  NOT NULL"`
	ID           uint64          `gorm:"primaryKey;type:BIGINT" json:"id,string"`
	Name         string          `gorm:"type:varchar(255)" json:"name"`
	PrettyName   string          `gorm:"type:varchar(255)" json:"pretty_name"`
	Category     string          `gorm:"type:varchar(255)" json:"category"`
	Status       string          `gorm:"type:varchar(255)" json:"status"`
	Description  string          `json:"description"`
	BeginDate    *helper.CSTTime `json:"begin_date"`
	EndDate      *helper.CSTTime `json:"end_date"`
	ExternalOn   string          `gorm:"type:varchar(255)" json:"external_on"`
	ParentId     uint64          `gorm:"type:BIGINT" json:"parent_id,string"`
	Creator      string          `gorm:"type:varchar(255)" json:"creator"`
	Created      *helper.CSTTime `json:"created"`
	common.NoPKModel
}

func (TapdWorkspace) TableName

func (TapdWorkspace) TableName() string

type TapdWorkspaceIteration

type TapdWorkspaceIteration struct {
	common.NoPKModel
	ConnectionId uint64 `gorm:"primaryKey"`
	WorkspaceID  uint64 `gorm:"primaryKey"`
	IterationId  uint64 `gorm:"primaryKey"`
}

func (TapdWorkspaceIteration) TableName

func (TapdWorkspaceIteration) TableName() string

type TestConnectionRequest

type TestConnectionRequest struct {
	Endpoint string `json:"endpoint" validate:"required,url"`
	Auth     string `json:"auth" validate:"required"`
	Proxy    string `json:"proxy"`
}

type WorkspaceResponse

type WorkspaceResponse struct {
	Id    uint64
	Title string
	Value string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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