consts

package
v0.0.0-...-325abe0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppIsDeleted  = 1
	AppIsNoDelete = 2
)

是否被删除

View Source
const (
	AppUserIsInUse     = 1
	AppUserIsNotInUser = 2
)
View Source
const (
	//是
	AppIsInitStatus = 1
	//否
	AppIsNotInitStatus = 2
)

是否流程初始化状态

View Source
const (
	AppStatusEnable   = 1
	AppStatusDisabled = 2
)

是否可用

View Source
const (
	APPIsDefault    = 1
	AppIsNotDefault = 2
)

是否默认

View Source
const (
	// SAAS运行模式
	AppRunmodeSaas = 1
	// 单机部署
	AppRunmodeSingle = 2
	// 私有化部署
	AppRunmodePrivate = 3
)
View Source
const (
	InitDefaultTeamName     = "默认团队"
	InitDefaultTeamNickname = "默认团队昵称"
)

初始化时的一些常量定义

View Source
const (
	TraceIdKey     = "_traceId"
	HttpContextKey = "_httpContext"
)

context key

View Source
const (
	CacheModeRedis  = "Redis"
	CacheModeInside = "Inside"
)

系统缓存模式

View Source
const (
	MQModeRocketMQ = "RocketMQ"
	MQModeDB       = "DB"
	MQModeKafka    = "Kafka"
)

系统消息队列模式

View Source
const (
	SendMQStatusSuccess = 1
	SendMQStatusFail    = 2
)

发送消息状态

View Source
const (
	//待处理
	MQStatusWait = 1
	//处理中
	MQStatusHandle = 2
	//处理成功
	MQStatusSuccess = 3
	//处理失败
	MQStatusFail = 4
)

消息处理状态

View Source
const (
	//负责人
	IssueRelationTypeOwner = 1
	//参与人
	IssueRelationTypeParticipant = 2
	//关注人
	IssueRelationTypeFollower = 3
)

Issue 关联类型

View Source
const (
	//未开始
	ProcessStatusTypeNotStarted = 1
	//进行中
	ProcessStatusTypeProcessing = 2
	//已完成
	ProcessStatusTypeFinished = 3
)

Process Status Type

View Source
const (
	//项目流程
	ProcessPrject = 1
	//迭代流程
	ProcessIteration = 2
	//问题流程
	ProcessIssue = 3
)
View Source
const (
	//优先级类型-项目
	PriorityTypeProject = 1
	//优先级类型-需求/任务等优先级
	PriorityTypeIssue = 2
)
View Source
const (
	//项目状态
	ProcessStatusCategoryProject = 1
	//迭代状态
	ProcessStatusCategoryIteration = 2
	//任务状态
	ProcessStatusCategoryIssue = 3
)
View Source
const (
	UserTeamRelationTypeLeader = 1
	UserTeamRelationTypeMember = 2
)

user team relation Type

View Source
const (
	DailyReport   = 1
	WeeklyReport  = 2
	MonthlyReport = 3
)
View Source
const (
	//本地
	LocalResource = 1
	//oss
	OssResource = 2
	//钉盘
	DingDiskResource = 3
)

资源存储方式

View Source
const (
	//公用项目
	PublicProject = 1
	//私有项目
	PrivateProject = 2
)
View Source
const (
	ProjectMemberEffective = 1
	ProjectMemberDisabled  = 2
)
View Source
const (
	ProjectIsFilling    = 1
	ProjectIsNotFilling = 2
)
View Source
const (
	CacheKeyOrgIdConstName         = "orgId"
	CacheKeyUserIdConstName        = "userId"
	CacheKeyOutUserIdConstName     = "outUserId"
	CacheKeyProjectIdConstName     = "projectId"
	CacheKeyObjectCodeConstName    = "objectCode"
	CacheKeyProcessIdConstName     = "processId"
	CacheKeyRoleIdConstName        = "roleId"
	CacheKeySourceChannelConstName = "sourceChannel"
)
View Source
const (
	//DingTalk Suite Ticket
	CacheSuiteTicketKey = CacheKeyPrefix + CacheKeyOfSys + AppOrgDingtalkChannel + ":suite_ticket"
	//用户token
	CacheUserTokenExpire = 60 * 60 * 24 * 15
	CacheUserToken       = CacheKeyPrefix + CacheKeyOfSys + "user:token:"
	//对象id缓存key前缀
	CacheObjectIdPreKey = CacheKeyPrefix + CacheKeyOfSys + "object_id:"
	//角色操作列表
	CacheRoleOperationList = CacheKeyPrefix + CacheKeyOfSys + "role_operation_list"
)

系统缓存

View Source
const (
	//用户配置缓存
	CacheUserConfig = CacheKeyPrefix + CacheKeyOfOrg + CacheKeyOfUser + "config"
	//用户基础信息缓存key
	CacheBaseUserInfo = CacheKeyPrefix + CacheKeyOfOrg + CacheKeyOfUser + "baseinfo"
	//组织基础信息
	CacheBaseOrgInfo = CacheKeyPrefix + CacheKeyOfOrg + "baseinfo"
	//项目信息
	CacheBaseProjectInfo = CacheKeyPrefix + CacheKeyOfOrg + CacheKeyOfProject + "baseinfo"
	//项目对象类型缓存
	CacheProjectObjectTypeList = CacheKeyPrefix + CacheKeyOfOrg + "project_object_type"
	//流程缓存
	CacheProcessList = CacheKeyPrefix + CacheKeyOfOrg + "process_list"
	//流程状态列表
	CacheProcessStatusList = CacheKeyPrefix + CacheKeyOfOrg + CacheKeyOfProcess + "process_status_list"
	//状态列表
	CacheStatusList = CacheKeyPrefix + CacheKeyOfOrg + "process_status_list"
	//流程步骤列表
	CacheProcessStepList = CacheKeyPrefix + CacheKeyOfOrg + CacheKeyOfProcess + "process_step_list"
	//优先级列表
	CachePriorityList = CacheKeyPrefix + CacheKeyOfOrg + "priority_list"
	//项目类型与项目对象类型关联缓存
	CacheProjectTypeProjectObjectTypeList = CacheKeyPrefix + CacheKeyOfOrg + "project_type_project_object_type"
	//角色列表
	CacheRoleList = CacheKeyPrefix + CacheKeyOfOrg + "role_list"
	//用户角色列表
	CacheUserRoleList = CacheKeyPrefix + CacheKeyOfOrg + CacheKeyOfUser + "user_role_list"
	//角色权限列表
	CacheRolePermissionOperationList = CacheKeyPrefix + CacheKeyOfOrg + CacheKeyOfRole + "role_permission_list"
	//获取外部用户id关联的内部用户id
	CacheDingTalkOutUserIdRelationId = CacheKeyPrefix + CacheKeyOfOrg + CacheKeyOfSourceChannel + CacheKeyOfOutUser + "user_id"
)

组织层级

View Source
const (
	LockCacheKeyPrefix = CacheKeyPrefix + "lock:"

	//添加用户配置的锁 + 用户id
	AddUserConfigLock = LockCacheKeyPrefix + "AddUserConfigLock:"
	//初始化用户锁 + 用户id
	InitUserLock = LockCacheKeyPrefix + "InitUserLock:"
	//添加任务时同步项目成员的锁 + projectId
	AddIssueScheduleProjectMemberLock = LockCacheKeyPrefix + "AddIssueScheduleProjectMemberLock:"

	//ID申请时的分布式锁前缀
	IdServiceIdKey = LockCacheKeyPrefix + "IdServiceIdKey:"
)
View Source
const (
	//之后提到配置文件里
	//Issue动态
	TopicIssueTrends      = "topic_issue_trends"
	TopicIssueTrendsGroup = "topic_issue_trends_group"

	//Project动态
	TopicProjectTrends      = "topic_project_trends"
	TopicProjectTrendsGroup = "topic_project_trends_group"
)
View Source
const (
	PushIssueRemind            = "PushIssueRemind"
	PushIssueCommentAndAt      = "PushIssueCommentAndAt"
	PushIssueUpdate            = "PushIssueUpdate"
	PushRelatedContentDynamics = "PushRelatedContentDynamics"
)

推送常量定义

View Source
const (
	RoleSysAdmin                 = "Role.Sys.Admin"
	RoleSysManager               = "Role.Sys.Manager"
	RoleSysMember                = "Role.Sys.Member"
	RoleGroupSpecialCreator      = "RoleGroup.Special.Creator"
	RoleGroupSpecialOwner        = "RoleGroup.Special.Owner"
	RoleGroupSpecialWorker       = "RoleGroup.Special.Worker"
	RoleGroupSpecialAttention    = "RoleGroup.Special.Attention"
	RoleGroupSpecialMember       = "RoleGroup.Special.Member"
	RoleGroupSpecialVisitor      = "RoleGroup.Special.Visitor"
	RoleGroupOrgAdmin            = "RoleGroup.Org.Admin"
	RoleGroupOrgManager          = "RoleGroup.Org.Manager"
	RoleGroupProProjectManager   = "RoleGroup.Pro.ProjectManager"
	RoleGroupProTechnicalManager = "RoleGroup.Pro.TechnicalManager"
	RoleGroupProProductManager   = "RoleGroup.Pro.ProductManager"
	RoleGroupProDeveloper        = "RoleGroup.Pro.Developer"
	RoleGroupProTester           = "RoleGroup.Pro.Tester"
	RoleGroupProMember           = "RoleGroup.Pro.Member"
)
View Source
const (
	RoleOperationView         = "View"
	RoleOperationModify       = "Modify"
	RoleOperationDelete       = "Delete"
	RoleOperationCreate       = "Create"
	RoleOperationCheck        = "Check"
	RoleOperationInvite       = "Invite"
	RoleOperationBind         = "Bind"
	RoleOperationUnbind       = "Unbind"
	RoleOperationAttention    = "Attention"
	RoleOperationUnAttention  = "UnAttention"
	RoleOperationModifyStatus = "ModifyStatus"
	RoleOperationComment      = "Comment"
	RoleOperationTransfer     = "Transfer"
	RoleOperationInit         = "Init"
	RoleOperationDrop         = "Drop"
	RoleOperationFiling       = "Filing"
	RoleOperationUnFiling     = "UnFiling"
)
View Source
const (
	RoleOperationPathSys                  = "/Sys"
	RoleOperationPathSysDic               = "/Sys/Dic"
	RoleOperationPathSysSource            = "/Sys/Source"
	RoleOperationPathSysPayLevel          = "/Sys/PayLevel"
	RoleOperationPathOrgProRole           = "/Org/{org_id}/Pro/{pro_id}/Role"
	RoleOperationPathOrgProProjectVersion = "/Org/{org_id}/Pro/{pro_id}/ProjectVersion"
	RoleOperationPathOrgProProjectModule  = "/Org/{org_id}/Pro/{pro_id}/ProjectModule"
	RoleOperationPathOrgPro               = "/Org/{org_id}/Pro/{pro_id}"
	RoleOperationPathOrgProIteration      = "/Org/{org_id}/Pro/{pro_id}/Iteration"
	RoleOperationPathOrgProIssueTT        = "/Org/{org_id}/Pro/{pro_id}/Issue/TT"
	RoleOperationPathOrgProIssueT         = "/Org/{org_id}/Pro/{pro_id}/Issue/T"
	RoleOperationPathOrgProIssueF         = "/Org/{org_id}/Pro/{pro_id}/Issue/F"
	RoleOperationPathOrgProIssueD         = "/Org/{org_id}/Pro/{pro_id}/Issue/D"
	RoleOperationPathOrgProIssueB         = "/Org/{org_id}/Pro/{pro_id}/Issue/B"
	RoleOperationPathOrgProIssue          = "/Org/{org_id}/Pro/{pro_id}/Issue"
	RoleOperationPathOrgProProConfig      = "/Org/{org_id}/Pro/{pro_id}/ProConfig"
	RoleOperationPathOrgProComment        = "/Org/{org_id}/Pro/{pro_id}/Comment"
	RoleOperationPathOrgProBan            = "/Org/{org_id}/Pro/{pro_id}/Ban"
	RoleOperationPathOrgUser              = "/Org/{org_id}/User"
	RoleOperationPathOrgTeam              = "/Org/{org_id}/Team"
	RoleOperationPathOrgRoleGroup         = "/Org/{org_id}/RoleGroup"
	RoleOperationPathOrgRole              = "/Org/{org_id}/Role"
	RoleOperationPathOrgProjectType       = "/Org/{org_id}/ProjectType"
	RoleOperationPathOrgProjectObjectType = "/Org/{org_id}/ProjectObjectType"
	RoleOperationPathOrgProject           = "/Org/{org_id}/Project"
	RoleOperationPathOrgProcessStep       = "/Org/{org_id}/ProcessStep"
	RoleOperationPathOrgProcessStatus     = "/Org/{org_id}/ProcessStatus"
	RoleOperationPathOrgProcess           = "/Org/{org_id}/Process"
	RoleOperationPathOrgPriority          = "/Org/{org_id}/Priority"
	RoleOperationPathOrg                  = "/Org/{org_id}"
	RoleOperationPathOrgMessageConfig     = "/Org/{org_id}/MessageConfig"
	RoleOperationPathOrgIssueSource       = "/Org/{org_id}/IssueSource"
	RoleOperationPathOrgOrgConfig         = "/Org/{org_id}/OrgConfig"
)
View Source
const (
	OssConfigMissingSentence = "oss configuration is missing!"
	DBOpenErrorSentence      = "db.Open(): %q\n"
	TxOpenErrorSentence      = "tx.Open(): %q\n"
)
View Source
const (
	//orgId, userId
	SelectPublicProjectIssueOrIsProjectMember = "" /* 358-byte string literal not displayed */

	//orgId, relationIds, relationType, userId
	SelectRelationPublicProjectIssueOrIsProjectMember = "" /* 494-byte string literal not displayed */
)
View Source
const (
	TcId                       = "id"
	TcName                     = "name"
	TcCode                     = "code"
	TcSecret1                  = "secret1"
	TcSecret2                  = "secret2"
	TcOwner                    = "owner"
	TcCheckStatus              = "check_status"
	TcStatus                   = "status"
	TcCreator                  = "creator"
	TcCreateTime               = "create_time"
	TcUpdator                  = "updator"
	TcUpdateTime               = "update_time"
	TcVersion                  = "version"
	TcIsDelete                 = "is_delete"
	TcSysVersion               = "sys_version"
	TcFeatureInfo              = "feature_info"
	TcBugFixInfo               = "bug_fix_info"
	TcChangeLnfo               = "change_lnfo"
	TcDeprecatedInfo           = "deprecated_info"
	TcExt                      = "ext"
	TcReleaseTime              = "release_time"
	TcK                        = "k"
	TcV                        = "v"
	TcOrgId                    = "org_id"
	TcMaxId                    = "max_id"
	TcStep                     = "step"
	TcLangCode                 = "lang_code"
	TcStorage                  = "storage"
	TcMemberCount              = "member_count"
	TcPrice                    = "price"
	TcMemberPrice              = "member_price"
	TcDuration                 = "duration"
	TcIsShow                   = "is_show"
	TcSort                     = "sort"
	TcRemark                   = "remark"
	TcTopic                    = "topic"
	TcMessageKey               = "message_key"
	TcMessage                  = "message"
	TcGroupName                = "group_name"
	TcMessageId                = "message_id"
	TcLastConsumerTime         = "last_consumer_time"
	TcFailCount                = "fail_count"
	TcFailTime                 = "fail_time"
	TcTimeZone                 = "time_zone"
	TcTimeDifference           = "time_difference"
	TcPayLevel                 = "pay_level"
	TcPayStartTime             = "pay_start_time"
	TcPayEndTime               = "pay_end_time"
	TcWebSite                  = "web_site"
	TcLanguage                 = "language"
	TcRemindSendTime           = "remind_send_time"
	TcDatetimeFormat           = "datetime_format"
	TcPasswordLength           = "password_length"
	TcPasswordRule             = "password_rule"
	TcMaxLoginFailCount        = "max_login_fail_count"
	TcEmailStatus              = "email_status"
	TcSmtpServer               = "smtp_server"
	TcSmtpPort                 = "smtp_port"
	TcSmtpUserName             = "smtp_user_name"
	TcSmtpPassword             = "smtp_password"
	TcEmailFormat              = "email_format"
	TcSenderAddress            = "sender_address"
	TcEmailEncode              = "email_encode"
	TcIndustryId               = "industry_id"
	TcScale                    = "scale"
	TcSourceChannel            = "source_channel"
	TcCountryId                = "country_id"
	TcProvinceId               = "province_id"
	TcCityId                   = "city_id"
	TcAddress                  = "address"
	TcLogoUrl                  = "logo_url"
	TcResourceId               = "resource_id"
	TcIsAuthenticated          = "is_authenticated"
	TcInitStatus               = "init_status"
	TcInitVersion              = "init_version"
	TcOutOrgId                 = "out_org_id"
	TcIndustry                 = "industry"
	TcAuthTicket               = "auth_ticket"
	TcAuthLevel                = "auth_level"
	TcLoginName                = "login_name"
	TcLoginNameEditCount       = "login_name_edit_count"
	TcEmail                    = "email"
	TcMobile                   = "mobile"
	TcAvatar                   = "avatar"
	TcBirthday                 = "birthday"
	TcSex                      = "sex"
	TcPassword                 = "password"
	TcPasswordSalt             = "password_salt"
	TcMotto                    = "motto"
	TcLastLoginIp              = "last_login_ip"
	TcLastLoginTime            = "last_login_time"
	TcLoginFailCount           = "login_fail_count"
	TcUserId                   = "user_id"
	TcDailyReportMessageStatus = "daily_report_message_status"
	TcOwnerRangeStatus         = "owner_range_status"
	TcParticipantRangeStatus   = "participant_range_status"
	TcAttentionRangeStatus     = "attention_range_status"
	TcCreateRangeStatus        = "create_range_status"
	TcRemindMessageStatus      = "remind_message_status"
	TcCommentAtMessageStatus   = "comment_at_message_status"
	TcModifyMessageStatus      = "modify_message_status"
	TcRelationMessageStatus    = "relation_message_status"
	TcUseStatus                = "use_status"
	TcOutOrgUserId             = "out_org_user_id"
	TcOutUserId                = "out_user_id"
	TcIsActive                 = "is_active"
	TcJobNumber                = "job_number"
	TcProjectId                = "project_id"
	TcProjectObjectTypeId      = "project_object_type_id"
	TcTitle                    = "title"
	TcPriorityId               = "priority_id"
	TcSourceId                 = "source_id"
	TcIssusTypeId              = "issus_type_id"
	TcPlanStartTime            = "plan_start_time"
	TcPlanEndTime              = "plan_end_time"
	TcStartTime                = "start_time"
	TcEndTime                  = "end_time"
	TcPlanWorkHour             = "plan_work_hour"
	TcIterationId              = "iteration_id"
	TcVersionId                = "version_id"
	TcModuleId                 = "module_id"
	TcParentId                 = "parent_id"
	TcIssueId                  = "issue_id"
	TcStoryPoint               = "story_point"
	TcTags                     = "tags"
	TcRelationId               = "relation_id"
	TcRelationType             = "relation_type"
	TcPackage                  = "package"
	TcIcon                     = "icon"
	TcAppId                    = "app_id"
	TcAppVersion               = "app_version"
	TcPreCode                  = "pre_code"
	TcProjectTypeId            = "project_type_id"
	TcPublicStatus             = "public_status"
	TcIsFiling                 = "is_filing"
	TcTeamId                   = "team_id"
	TcType                     = "type"
	TcBgStyle                  = "bg_style"
	TcFontStyle                = "font_style"
	TcIsDefault                = "is_default"
	TcProcessId                = "process_id"
	TcProcessStatusId          = "process_status_id"
	TcIsInitStatus             = "is_init_status"
	TcCategory                 = "category"
	TcStartStatus              = "start_status"
	TcEndStatus                = "end_status"
	TcObjectType               = "object_type"
	TcIsReadonly               = "is_readonly"
	TcDefaultProcessId         = "default_process_id"
	TcPath                     = "path"
	TcSuffix                   = "suffix"
	TcMd5                      = "md5"
	TcPermissionId             = "permission_id"
	TcOperationCodes           = "operation_codes"
	TcIsModifyPermission       = "is_modify_permission"
	TcRoleGroupId              = "role_group_id"
	TcRoleId                   = "role_id"
	TcPermissionPath           = "permission_path"
	TcContent                  = "content"
	TcContentMd5               = "content_md5"
	TcFinishTime               = "finish_time"
	TcTrendsId                 = "trends_id"
	TcInfo                     = "info"
	TcFailMsg                  = "fail_msg"
	TcFinishStatus             = "finish_status"
	TcFinishMsg                = "finish_msg"
	TcNickName                 = "nick_name"
	TcDepartmentId             = "department_id"
	TcObjectId                 = "object_id"
	TcModule1                  = "module1"
	TcModule2Id                = "module2_id"
	TcModule2                  = "module2"
	TcModule3Id                = "module3_id"
	TcModule3                  = "module3"
	TcOperCode                 = "oper_code"
	TcOperObjId                = "oper_obj_id"
	TcOperObjType              = "oper_obj_type"
	TcOperObjProperty          = "oper_obj_property"
	TcNewValue                 = "new_value"
	TcOldValue                 = "old_value"
	TcAppVersionId             = "app_version_id"
	TcGroupId                  = "group_id"
	TcCaseId                   = "case_id"
	TcPreCondition             = "pre_condition"
	TcStepDesc                 = "step_desc"
	TcExpectDesc               = "expect_desc"
	TcIterId                   = "iter_id"
	TcDefaultTesterId          = "default_tester_id"
	TcPlanDesc                 = "plan_desc"
	TcSelectiveType            = "selective_type"
	TcTesterId                 = "tester_id"
	TcPlanCaseId               = "plan_case_id"
	TcCaseStepId               = "case_step_id"
	TcActualResultDesc         = "actual_result_desc"
)
View Source
const (
	TableAppInfo                      = "ppm_bas_app_info"
	TableChangeLog                    = "ppm_bas_change_log"
	TableDctionary                    = "ppm_bas_dictionary"
	TableObjectId                     = "ppm_bas_object_id"
	TablePayLevel                     = "ppm_bas_pay_level"
	TableSourceChannel                = "ppm_bas_source_channel"
	TableOrganization                 = "ppm_org_organization"
	TableOrganizationOutInfo          = "ppm_org_organization_out_info"
	TableUser                         = "ppm_org_user"
	TableUserConfig                   = "ppm_org_user_config"
	TableUserOrganization             = "ppm_org_user_organization"
	TableUserOutInfo                  = "ppm_org_user_out_info"
	TableIssue                        = "ppm_pri_issue"
	TableIssueDetail                  = "ppm_pri_issue_detail"
	TableIssueRelation                = "ppm_pri_issue_relation"
	TableIteration                    = "ppm_pri_iteration"
	TableProject                      = "ppm_pro_project"
	TableProjectMember                = "ppm_pro_project_member"
	TableProjectModule                = "ppm_pro_project_module"
	TableProjectVersion               = "ppm_pro_project_version"
	TableIssueSource                  = "ppm_prs_issue_source"
	TablePriority                     = "ppm_prs_priority"
	TableProcess                      = "ppm_prs_process"
	TableProcessProcessStatus         = "ppm_prs_process_process_status"
	TableProcessStatus                = "ppm_prs_process_status"
	TableProcessStep                  = "ppm_prs_process_step"
	TableProjectObjectType            = "ppm_prs_project_object_type"
	TableProjectObjectTypeProcess     = "ppm_prs_project_object_type_process"
	TableProjectType                  = "ppm_prs_project_type"
	TableProjectTypeProjectObjectType = "ppm_prs_project_type_project_object_type"
	TableResource                     = "ppm_res_resource"
	TableOperation                    = "ppm_rol_operation"
	TablePermission                   = "ppm_rol_permission"
	TablePermissionOperation          = "ppm_rol_permission_operation"
	TableRole                         = "ppm_rol_role"
	TableRoleOperation                = "ppm_rol_operation"
	TableRoleGroup                    = "ppm_rol_role_group"
	TableRolePermissionOperation      = "ppm_rol_role_permission_operation"
	TableRoleUser                     = "ppm_rol_role_user"
	TableShare                        = "ppm_sha_share"
	TableConfig                       = "ppm_orc_config"
	TableMessageConfig                = "ppm_orc_message_config"
	TableMessage                      = "ppm_tak_message"
	TableTeam                         = "ppm_tem_team"
	TableUserTeam                     = "ppm_tem_user_team"
	TableComment                      = "ppm_tre_comment"
	TableTrends                       = "ppm_tre_trends"

	TableMessageQueue             = "ppm_mqs_message_queue"
	TableMessageQueueConsumer     = "ppm_mqs_message_queue_consumer"
	TableMessageQueueConsumerFail = "ppm_mqs_message_queue_consumer_fail"
)
View Source
const AppDateFormat = "2006-01-02"

全局日期格式

View Source
const AppDingtalkDefaultLang = "zh_CN"
View Source
const AppHeaderTokenName = "Token"

Token

View Source
const AppOrgDingtalkChannel = "dingtalk"

来源

View Source
const AppSystemTimeFormat = "2006-01-02T15:04:05Z"
View Source
const AppSystemTimeFormat8 = "2006-01-02T15:04:05+08:00"
View Source
const AppTimeFormat = "2006-01-02 15:04:05"
View Source
const BlankString = ""

默认空字符串

View Source
const BlankTime = "1970-01-01 00:00:00"

默认空时间

View Source
const CacheKeyOfOrg = "org_{{." + CacheKeyOrgIdConstName + "}}:"
View Source
const CacheKeyOfOutUser = "outuser_{{." + CacheKeyOutUserIdConstName + "}}:"
View Source
const CacheKeyOfProcess = "process_{{." + CacheKeyProcessIdConstName + "}}:"
View Source
const CacheKeyOfProject = "project_{{." + CacheKeyProjectIdConstName + "}}:"
View Source
const CacheKeyOfRole = "role_{{." + CacheKeyRoleIdConstName + "}}:"
View Source
const CacheKeyOfSourceChannel = "source_channel_{{." + CacheKeySourceChannelConstName + "}}:"
View Source
const CacheKeyOfSys = "sys:"
View Source
const CacheKeyOfUser = "user_{{." + CacheKeyUserIdConstName + "}}:"
View Source
const CacheKeyPrefix = "polaris:"
View Source
const (
	DefaultObjectIdStep = 200
)

默认对象id步长

View Source
const TemplateDirPrefix = "resources/template/"

Variables

View Source
var BlankTimeObject, _ = time.Parse(AppTimeFormat, BlankTime)

Functions

This section is empty.

Types

type IssueNoticePushType

type IssueNoticePushType int32
const (
	CreateIssue        IssueNoticePushType = 0
	UpdateIssue        IssueNoticePushType = 1
	UpdateIssueStatus  IssueNoticePushType = 2
	DeleteIssue        IssueNoticePushType = 3
	UpdateIssueMembers IssueNoticePushType = 4
)

PushType & Trends Type

Jump to

Keyboard shortcuts

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