models

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	TaskId  string     `json:"taskId"`
	Updated *time.Time `json:"updated"`
}

type TeambitionAccount

type TeambitionAccount struct {
	ConnectionId   uint64           `gorm:"primaryKey;type:BIGINT"`
	UserId         string           `gorm:"primaryKey;type:varchar(100)" json:"userId"`
	MemberId       string           `gorm:"type:varchar(100)" json:"memberId"`
	IsDisabled     int              `json:"isDisabled"`
	Role           uint64           `json:"role"`
	AvatarUrl      string           `gorm:"type:varchar(255)" json:"avatarUrl"`
	Birthday       string           `gorm:"type:varchar(100)" json:"birthday"`
	City           string           `gorm:"type:varchar(100)" json:"city"`
	Province       string           `gorm:"type:varchar(100)" json:"province"`
	Country        string           `gorm:"type:varchar(100)" json:"country"`
	Email          string           `gorm:"type:varchar(255)" json:"email"`
	EntryTime      *api.Iso8601Time `json:"entryTime"`
	Name           string           `gorm:"index;type:varchar(255)" json:"name"`
	Phone          string           `gorm:"type:varchar(100)" json:"phone"`
	Title          string           `gorm:"type:varchar(255)" json:"title"`
	Pinyin         string           `gorm:"type:varchar(255)" json:"pinyin"`
	Py             string           `gorm:"type:varchar(255)" json:"py"`
	StaffType      string           `gorm:"type:varchar(255)" json:"staffType"`
	EmployeeNumber string           `gorm:"type:varchar(100)" json:"employeeNumber"`

	common.NoPKModel
}

func (TeambitionAccount) TableName

func (TeambitionAccount) TableName() string

type TeambitionConn

type TeambitionConn struct {
	helper.RestConnection `mapstructure:",squash"`
	helper.AppKey         `mapstructure:",squash"`
	TenantId              string `mapstructure:"tenantId" validate:"required" json:"tenantId"`
	TenantType            string `mapstructure:"tenantType" validate:"required" json:"tenantType"`
}

TeambitionConn holds the essential information to connect to the TeambitionConn API

func (*TeambitionConn) SetupAuthentication

func (tc *TeambitionConn) SetupAuthentication(req *http.Request) errors.Error

type TeambitionConnection

type TeambitionConnection struct {
	helper.BaseConnection `mapstructure:",squash"`
	TeambitionConn        `mapstructure:",squash"`
}

TeambitionConnection holds TeambitionConn plus ID/Name for database storage

func (TeambitionConnection) TableName

func (TeambitionConnection) TableName() string

type TeambitionCustomField

type TeambitionCustomField struct {
	CfId string `gorm:"varchar(100)" json:"cfId"`
	Type string `gorm:"varchar(100)" json:"type"`
}

type TeambitionCustomFieldValue

type TeambitionCustomFieldValue struct {
	Id         string `gorm:"varchar(100)" json:"id"`
	Title      string `gorm:"varchar(100)" json:"title"`
	MetaString string `gorm:"varchar(100)" json:"metaString"`
}

type TeambitionProject

type TeambitionProject struct {
	ConnectionId   uint64                         `gorm:"primaryKey;type:BIGINT"`
	Id             string                         `gorm:"primaryKey;type:varchar(100)" json:"id"`
	Name           string                         `gorm:"type:varchar(255)" json:"name"`
	Description    string                         `gorm:"type:text" json:"description"`
	OrganizationId string                         `gorm:"type:varchar(255)" json:"organizationId"`
	Visibility     string                         `gorm:"typechar(100)" json:"visibility"`
	IsTemplate     bool                           `json:"isTemplate"`
	CreatorId      string                         `gorm:"type:varchar(100)" json:"creatorId"`
	IsArchived     bool                           `json:"isArchived"`
	IsSuspended    bool                           `json:"isSuspended"`
	UniqueIdPrefix string                         `gorm:"type:varchar(255)" json:"uniqueIdPrefix"`
	Created        *api.Iso8601Time               `json:"created"`
	Updated        *api.Iso8601Time               `json:"updated"`
	StartDate      *api.Iso8601Time               `json:"startDate"`
	EndDate        *api.Iso8601Time               `json:"endDate"`
	Customfields   []TeambitionProjectCustomField `gorm:"serializer:json;type:text" json:"customfields"`

	common.NoPKModel
}

func (TeambitionProject) TableName

func (TeambitionProject) TableName() string

type TeambitionProjectCustomField

type TeambitionProjectCustomField struct {
	CustomfieldId string                       `json:"customfieldId"`
	Type          string                       `json:"type"`
	Value         []TeambitionCustomFieldValue `json:"value"`
}

type TeambitionProjectCustomFieldValue

type TeambitionProjectCustomFieldValue struct {
	Id         string `json:"id"`
	Title      string `json:"title"`
	MetaString string `json:"metaString"`
}

type TeambitionScenarioField

type TeambitionScenarioField struct {
	CustomfieldId string `json:"customfieldId"`
	FieldType     string `json:"fieldType"`
	Required      bool   `json:"required"`
}

type TeambitionSprint

type TeambitionSprint struct {
	ConnectionId uint64           `gorm:"primaryKey;type:BIGINT"`
	Id           string           `gorm:"primaryKey;type:varchar(100)" json:"id"`
	Name         string           `gorm:"type:varchar(255)" json:"name"`
	ExecutorId   string           `gorm:"type:varchar(100)" json:"executorId"`
	Description  string           `gorm:"type:text" json:"description"`
	Status       string           `gorm:"varchar(255)" json:"status"`
	ProjectId    string           `gorm:"type:varchar(100)" json:"projectId"`
	CreatorId    string           `gorm:"type:varchar(100)" json:"creatorId"`
	StartDate    *api.Iso8601Time `json:"startDate"`
	DueDate      *api.Iso8601Time `json:"dueDate"`
	Accomplished *api.Iso8601Time `json:"accomplished"`
	Created      *api.Iso8601Time `json:"created"`
	Updated      *api.Iso8601Time `json:"updated"`
	Payload      any              `gorm:"serializer:json;type:text" json:"payload"`
	Labels       []string         `gorm:"serializer:json;type:text" json:"labels"`

	common.NoPKModel
}

func (TeambitionSprint) TableName

func (TeambitionSprint) TableName() string

type TeambitionTask

type TeambitionTask struct {
	ConnectionId   uint64                  `gorm:"primaryKey;type:BIGINT"`
	ProjectId      string                  `gorm:"primaryKey;type:varchar(100)" json:"projectId"`
	Id             string                  `gorm:"primaryKey;type:varchar(100)" json:"id"`
	Content        string                  `gorm:"type:varchar(255)" json:"content"`
	Note           string                  `gorm:"type:varchar(255)" json:"Content"`
	AncestorIds    []string                `gorm:"serializer:json;type:text" json:"ancestorIds"`
	ParentTaskId   string                  `gorm:"type:varchar(100)" json:"parentTaskId"`
	TfsId          string                  `gorm:"type:varchar(100)" json:"tfsId"`
	TasklistId     string                  `gorm:"type:varchar(100)" json:"tasklistId"`
	StageId        string                  `gorm:"type:varchar(100)" json:"stageId"`
	TagIds         []string                `gorm:"serializer:json;type:text" json:"tagIds"`
	CreatorId      string                  `gorm:"type:varchar(100)" json:"creatorId"`
	ExecutorId     string                  `gorm:"type:varchar(100)" json:"executorId"`
	InvolveMembers []string                `gorm:"serializer:json;type:text" json:"involveMembers"`
	Priority       int                     `json:"priority"`
	StoryPoint     string                  `gorm:"varchar(255)" json:"storyPoint"`
	Recurrence     []string                `gorm:"serializer:json;type:text" json:"recurrence"`
	IsDone         bool                    `json:"isDone"`
	IsArchived     bool                    `json:"isArchived"`
	Visible        string                  `gorm:"varchar(100)" json:"visible"`
	UniqueId       int64                   `json:"uniqueId"`
	StartDate      *api.Iso8601Time        `json:"startDate"`
	DueDate        *api.Iso8601Time        `json:"dueDate"`
	AccomplishTime *api.Iso8601Time        `json:"accomplishTime"`
	Created        *api.Iso8601Time        `json:"created"`
	Updated        *api.Iso8601Time        `json:"updated"`
	SfcId          string                  `gorm:"type:varchar(100)" json:"sfcId"`
	SprintId       string                  `gorm:"type:varchar(100)" json:"sprintId"`
	Customfields   []TeambitionCustomField `gorm:"serializer:json;type:text" json:"customfields"`

	StdType   string `gorm:"type:varchar(100)" json:"stdType"`
	StdStatus string `gorm:"type:varchar(100)" json:"stdStatus"`

	common.NoPKModel
}

func (TeambitionTask) TableName

func (TeambitionTask) TableName() string

type TeambitionTaskActivity

type TeambitionTaskActivity struct {
	ConnectionId      uint64           `gorm:"primaryKey;type:BIGINT"`
	Id                string           `gorm:"primaryKey;type:varchar(100)" json:"id"`
	ProjectId         string           `gorm:"primaryKey;type:varchar(100)" json:"projectId"`
	TaskId            string           `gorm:"primaryKey;type:varchar(100)" json:"taskId"`
	CreatorId         string           `gorm:"type:varchar(100)" json:"creatorId"`
	Action            string           `gorm:"type:varchar(100)" json:"action"`
	BoundToObjectId   string           `gorm:"type:varchar(100)" json:"boundToObjectId"`
	BoundToObjectType string           `gorm:"type:varchar(100)" json:"BoundToObjectType"`
	CreateTime        *api.Iso8601Time `json:"createTime"`
	UpdateTime        *api.Iso8601Time `json:"updateTime"`
	Content           string           `gorm:"type:text" json:"content"`

	common.NoPKModel
}

func (TeambitionTaskActivity) TableName

func (TeambitionTaskActivity) TableName() string

type TeambitionTaskComment

type TeambitionTaskComment struct {
	Comment              string   `json:"comment"`
	IsOnlyNotifyMentions bool     `json:"isOnlyNotifyMentions"`
	IsDingtalkPM         bool     `json:"isDingtalkPM"`
	RenderMode           string   `json:"renderMode"`
	Attachments          []string `json:"attachments"`
	DingFiles            []string `json:"dingFiles"`
}

type TeambitionTaskFlowStatus

type TeambitionTaskFlowStatus struct {
	ConnectionId                uint64           `gorm:"primaryKey;type:BIGINT"`
	ProjectId                   string           `gorm:"primaryKey;type:varchar(100)" json:"projectId"`
	Id                          string           `gorm:"primaryKey;type:varchar(100)" json:"id"`
	Name                        string           `gorm:"type:varchar(100)" json:"name"`
	Pos                         int64            `json:"pos"`
	TaskflowId                  string           `gorm:"type:varchar(100)" json:"taskflowId"`
	RejectStatusIds             []string         `gorm:"serializer:json;type:text" json:"rejectStatusIds"`
	Kind                        string           `gorm:"varchar(100)" json:"kind"`
	CreatorId                   string           `gorm:"varchar(100)" json:"creatorId"`
	IsDeleted                   bool             `json:"isDeleted"`
	IsTaskflowstatusruleexector bool             `json:"isTaskflowstatusruleexector"`
	Created                     *api.Iso8601Time `json:"created"`
	Updated                     *api.Iso8601Time `json:"updated"`

	common.NoPKModel
}

func (TeambitionTaskFlowStatus) TableName

func (TeambitionTaskFlowStatus) TableName() string

type TeambitionTaskScenario

type TeambitionTaskScenario struct {
	ConnectionId      uint64                    `gorm:"primaryKey;type:BIGINT"`
	ProjectId         string                    `gorm:"primaryKey;type:varchar(100)" json:"projectId"`
	Id                string                    `gorm:"primaryKey;type:varchar(100)" json:"id"`
	Name              string                    `gorm:"type:varchar(100)" json:"name"`
	Icon              string                    `gorm:"type:varchar(100)" json:"icon"`
	Type              string                    `gorm:"type:varchar(100)" json:"type"`
	Scenariofields    []TeambitionScenarioField `gorm:"serializer:json;type:text" json:"scenariofields"`
	CreatorId         string                    `gorm:"type:varchar(100)" json:"creatorId"`
	Source            string                    `gorm:"type:varchar(100)" json:"source"`
	BoundToObjectId   string                    `gorm:"type:varchar(100)" json:"boundToObjectId"`
	BoundToObjectType string                    `gorm:"type:varchar(100)" json:"boundToObjectType"`
	TaskflowId        string                    `gorm:"type:varchar(100)" json:"taskflowId"`
	IsArchived        bool                      `json:"isArchived"`
	Created           *api.Iso8601Time          `json:"created"`
	Updated           *api.Iso8601Time          `json:"updated"`

	common.NoPKModel
}

func (TeambitionTaskScenario) TableName

func (TeambitionTaskScenario) TableName() string

type TeambitionTaskTag

type TeambitionTaskTag struct {
	ConnectionId   uint64           `gorm:"primaryKey;type:BIGINT"`
	Id             string           `gorm:"primaryKey;type:varchar(100)" json:"id"`
	CreatorId      string           `gorm:"type:varchar(100)" json:"creatorId"`
	ProjectId      string           `gorm:"type:varchar(100)" json:"projectId"`
	OrganizationId string           `gorm:"type:varchar(100)" json:"organizationId"`
	Name           string           `gorm:"type:varchar(100)" json:"name"`
	Color          string           `gorm:"type:varchar(100)" json:"color"`
	IsArchived     bool             `json:"isArchived"`
	Created        *api.Iso8601Time `json:"created"`
	Updated        *api.Iso8601Time `json:"updated"`

	common.NoPKModel
}

func (TeambitionTaskTag) TableName

func (TeambitionTaskTag) TableName() string

type TeambitionTaskTagTask

type TeambitionTaskTagTask struct {
	ConnectionId uint64 `gorm:"primaryKey;type:BIGINT"`
	ProjectId    string `gorm:"primaryKey;type:varchar(100)"`
	TaskId       string `gorm:"primaryKey;type:varchar(100)"`
	TaskTagId    string `gorm:"primaryKey;type:varchar(100)"`
	Name         string `gorm:"type:varchar(100)" json:"name"`

	common.NoPKModel
}

func (TeambitionTaskTagTask) TableName

func (TeambitionTaskTagTask) TableName() string

type TeambitionTaskWorktime

type TeambitionTaskWorktime struct {
	ConnectionId uint64           `gorm:"primaryKey;type:BIGINT"`
	ProjectId    string           `gorm:"primaryKey;type:varchar(100)" json:"projectId"`
	TaskId       string           `gorm:"primaryKey;type:varchar(100)" json:"taskId"`
	WorktimeId   string           `gorm:"primaryKey;type:varchar(100)" json:"worktimeId"`
	ObjectType   string           `gorm:"type:varchar(100)" json:"objectType"`
	ObjectId     string           `gorm:"type:varchar(100)" json:"objectId"`
	Worktime     uint64           `json:"worktime"`
	UserId       string           `gorm:"type:varchar(100)" json:"userId"`
	Date         *api.Iso8601Time `json:"date"`
	Description  string           `gorm:"type:text" json:"description"`
	OrgId        string           `gorm:"type:varchar(100)" json:"orgId"`
	SubmitterId  string           `gorm:"type:varchar(100)" json:"submitterId"`
	CreatedAt    *api.Iso8601Time `json:"createdAt"`
	UpdatedAt    *api.Iso8601Time `json:"updatedAt"`

	common.NoPKModel
}

func (TeambitionTaskWorktime) TableName

func (TeambitionTaskWorktime) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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