consts

package
v0.0.0-...-57ed434 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 项目详情中,是否关闭工时功能
	ProjectDetailEnableWorkHoursOn  = 1
	ProjectDetailEnableWorkHoursOff = 2

	// 工时类型:1简单版预估工时(总预估工时),2实际工时,3详细版预估工时(子预估工时)
	WorkHourTypeTotalPredict = 1
	WorkHourTypeActual       = 2
	WorkHourTypeSubPredict   = 3

	// 允许用户填写的最大工时 100w 小时
	MaxWorkHour = 3600000000
)
View Source
const (
	// 一些内置字段的 id。
	FilterTitleId         = -1
	FilterNumberId        = -2
	FilterOwnerId         = -3  // 负责人
	FilterStatusId        = -4  //状态,
	FilterPlanEndTimeId   = -6  //截止时间
	FilterPriorityId      = -7  // 优先级
	FilterFollowerId      = -8  // 关注人
	FilterPlanStartTimeId = -9  // 开始时间
	FilterIterationId     = -10 // 迭代
	FilterTaskColumnId    = -11 // 任务栏
	FilterDemandTypeId    = -12 // 需求类型
	FilterDemandSourceId  = -13 // 需求来源
	FilterBugTypeId       = -14 // 缺陷类型
	FilterSeverityId      = -15 // 严重程度
	FilterTagId           = -16 // 标签
	FilterAuditorId       = -26 //确认人
	FilterIsOverdue       = -29 // 逾期任务
	FilterStatusType      = -31 // 状态类型的筛选
)
View Source
const CreateOperation = 0
View Source
const DeleteOperation = 2
View Source
const RemainTimeCalTypeAuto = 1

剩余工时计算方式 1动态计算;2手动填写 默认1

View Source
const RemainTimeCalTypeDefault = RemainTimeCalTypeAuto
View Source
const RemainTimeCalTypeManual = 2
View Source
const UpdateOperation = 1

Variables

View Source
var (
	//用户配置缓存
	CacheBaseProjectInfo = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "baseinfo"
	//用户基础信息缓存key
	CacheProjectObjectTypeList = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "project_object_type"
	//优先级列表
	CachePriorityList = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + "priority_list"
	//项目类型
	CacheProjectTypeList = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + "project_type_list"
	//项目类型与项目对象类型关联缓存
	CacheProjectTypeProjectObjectTypeList = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + "project_type_project_object_type"
	//项目状态缓存
	CacheProjectProcessStatus = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "process_status"
	//任务来源列表
	CacheIssueSourceList = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "issue_source_list"
	//任务性质列表
	CacheIssuePropertyList = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "issue_property_list"
	//任务类型列表
	CacheIssueObjectTypeList = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "issue_object_type_list"
	//项目日历信息缓存
	CacheProjectCalendarInfo = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "project_calendar_info"
	//项目标签缓存
	CacheProjectTagInfo = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "tag_stat_info"
	//项目主群聊id缓存
	CacheProjectMainChatId = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + "chat_id"
	//项目类型分类缓存
	CacheProjectTypeCategoryList = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + "project_type_category_list"
	//项目对象类型关联流程缓存
	CacheProjectObjectTypeProcessHash = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + "project_object_type_process_hash"
	//飞书群聊项目设置
	CacheFsPushSettings = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.
						CacheKeyOfProject + "push_settings_2022"
	//任务审批催办缓存
	CacheUrgeIssueAudit = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + consts.CacheKeyOfIssue + "urge_issue_audit"
	//任务催办缓存
	CacheUrgeIssue = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfProject + consts.CacheKeyOfIssue + "urge_issue"

	// 项目顶部菜单列表缓存key
	CacheProjectMenuConfig = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfOrg + consts.CacheKeyOfApp + "project_menu_config"

	// 缓存记录 任务数目
	CacheDeletedIssueNums = consts.CacheKeyPrefix + consts.ProjectsvcApplicationName + consts.CacheKeyOfSys + "deleted_issue_num"
)
View Source
var (
	// 是否是逾期任务的筛选值映射
	IssueIsOverdueMap = map[string]int8{
		"已逾期": 1,
		"未逾期": 2,
	}

	// 通用项目下,任务如果设定了**确认人**,则此时有“待确认”状态。因此筛选中追加一项“待确认”的筛选。
	IssueCommonProExtraStatus = map[int]string{
		-1: "待确认",
	}

	// 导入暂不支持的自定义字段类型列表
	NotSupportImportCustomFieldTypes = []string{
		consts.LcColumnFieldTypeImage,
		consts.LcColumnFieldTypeRichText,
		consts.LcColumnFieldTypeDocument,

		consts.LcColumnFieldTypeWorkHour,
		consts.LcColumnFieldTypeRelating,
		consts.LcColumnFieldTypeBaRelating,
		consts.LcColumnFieldTypeConditionRef,
		consts.LcColumnFieldTypeFormula,
		consts.LcColumnFieldTypeSingleRelating,
		tablePb.ColumnType_reference.String(),
	}

	NotSupportExportCustomFieldTypes = []string{

		consts.LcColumnFieldTypeFormula,
	}

	// 下载模板时,无需显示的字段(系统生成值的字段)
	HiddenColumnsInImportTpl = []string{
		consts.BasicFieldCreator,
		consts.BasicFieldUpdator,
		"createTime",
		"updateTime",
		consts.BasicFieldCode,
	}

	// 敏捷项目任务的状态类型筛选支持以下值
	AgilityProIssueStatusType = map[int]string{
		-1: "待确认",
		1:  "未开始",
		2:  "已完成",
		3:  "未开始",
		4:  "进行中",
		5:  "已逾期",
	}

	ExportDownloadTypesMap = map[string]struct{}{
		"gif":  {},
		"png":  {},
		"jpg":  {},
		"jpeg": {},
		"webp": {},
	}

	ExportFileTypeIconMap = map[string]string{
		"gif":       "gif.png",
		"tiff":      "gif.png",
		"html":      "html.png",
		"jpg":       "jpg.png",
		"webp":      "jpg.png",
		"png":       "png.png",
		"mp3":       "mp3.png",
		"pdf":       "pdf.png",
		"ppt":       "ppt.png",
		"pptx":      "ppt.png",
		"psd":       "psd.png",
		"txt":       "txt.png",
		"mp4":       "video.png",
		"avi":       "video.png",
		"mpg":       "video.png",
		"rmv":       "video.png",
		"mov":       "video.png",
		"zip":       "zip.png",
		"rar":       "zip.png",
		"xls":       "excel.png",
		"xlsx":      "excel.png",
		"doc":       "word.png",
		"docx":      "word.png",
		"csv":       "word.png",
		"docs":      "file_doc_nor.png",
		"sheets":    "file_sheet_nor.png",
		"mindnotes": "file_mindnote_nor.png",
		"mindnote":  "file_mindnote_nor.png",
		"bitable":   "file_bitable_nor.png",
		"base":      "file_bitable_nor.png",
	}

	ExportOfficeFileType = map[string]struct{}{
		"xls":  {},
		"xlsx": {},
		"doc":  {},
		"docx": {},
		"csv":  {},
		"ppt":  {},
		"pptx": {},
	}

	OfficeViewUrl = "https://view.officeapps.live.com/op/view.aspx?src="
	PdfVideUrl    = "https://pdfviewer.startable.cn/?file="

	ParentDescColumn = &projectvo.TableColumnData{
		Name:  consts.HelperFieldIsParentDesc,
		Label: "父子类型",
	}

	BaRelatingExportTemplate = "前置%d条/后置%d条"
	RelatingExportTemplate   = "已关联%d个任务"
	WorkHourExportTemplate   = "计划工时%vh/实际工时%vh"

	ExcelJoinFlag = "||"
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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