56 lines
1.2 KiB
Go
56 lines
1.2 KiB
Go
package constants
|
|
|
|
type BotTools string
|
|
|
|
const (
|
|
BotToolsBugOptimizationSubmit BotTools = "bug_optimization_submit" // 系统的bug/优化建议
|
|
)
|
|
|
|
type ChatStyle int
|
|
|
|
const (
|
|
ChatStyleNormal ChatStyle = 1 //正常
|
|
ChatStyleSerious ChatStyle = 2 //严肃
|
|
ChatStyleGentle ChatStyle = 3 //温柔
|
|
ChatStyleArrogance ChatStyle = 4 //傲慢
|
|
ChatStyleCute ChatStyle = 5 //可爱
|
|
ChatStyleAngry ChatStyle = 6 //愤怒
|
|
)
|
|
|
|
var ChatStyleMap = map[ChatStyle]string{
|
|
ChatStyleNormal: "正常",
|
|
ChatStyleSerious: "严肃",
|
|
ChatStyleGentle: "温柔",
|
|
ChatStyleArrogance: "傲慢",
|
|
ChatStyleCute: "可爱",
|
|
ChatStyleAngry: "愤怒",
|
|
}
|
|
|
|
type BotType int
|
|
|
|
const (
|
|
BotTypeDingTalk BotType = 1 // 系统的bug/优化建议
|
|
)
|
|
|
|
const DingTalkAuthBaseKeyPrefix = "dingTalk_auth"
|
|
|
|
const DingTalkAuthBaseKeyBotPrefix = "dingTalk_auth_bot"
|
|
|
|
const QywxAuthBaseKeyPrefix = "qywx_auth"
|
|
|
|
// PermissionType 工具使用权限
|
|
type PermissionType int32
|
|
|
|
const (
|
|
PermissionTypeNone = 1
|
|
PermissionTypeDept = 2
|
|
)
|
|
|
|
// IssueType 问题类型
|
|
const (
|
|
IssueTypeKnowledgeQA = "knowledge_qa" // 知识问答
|
|
IssueTypeUI = "ui" // UI需求
|
|
IssueTypeBug = "bug" // Bug
|
|
IssueTypeDemand = "demand" // 开发需求
|
|
)
|