PandaWiki/backend/consts/node.go

32 lines
1.3 KiB
Go

package consts
type NodeAccessPerm string
const (
NodeAccessPermOpen NodeAccessPerm = "open" // 完全开放
NodeAccessPermPartial NodeAccessPerm = "partial" // 部分开放
NodeAccessPermClosed NodeAccessPerm = "closed" // 完全禁止
)
type NodePermName string
const (
NodePermNameVisible NodePermName = "visible" // 导航内可见
NodePermNameVisitable NodePermName = "visitable" // 可被访问
NodePermNameAnswerable NodePermName = "answerable" // 可被问答
)
type NodeRagInfoStatus string
const (
NodeRagStatusBasicPending NodeRagInfoStatus = "BASIC_PENDING" // 等待基础处理
NodeRagStatusBasicRunning NodeRagInfoStatus = "BASIC_RUNNING" // 正在进行基础处理(文本分割、向量化等)
NodeRagStatusBasicFailed NodeRagInfoStatus = "BASIC_FAILED" // 基础处理失败
NodeRagStatusBasicSucceeded NodeRagInfoStatus = "BASIC_SUCCEEDED" // 基础处理成功
NodeRagStatusEnhancePending NodeRagInfoStatus = "ENHANCE_PENDING" // 基础处理完成,等待增强处理
NodeRagStatusEnhanceRunning NodeRagInfoStatus = "ENHANCE_RUNNING" // 正在进行增强处理(关键词提取等)
NodeRagStatusEnhanceFailed NodeRagInfoStatus = "ENHANCE_FAILED" // 增强处理失败
NodeRagStatusEnhanceSucceeded NodeRagInfoStatus = "ENHANCE_SUCCEEDED" // 增强处理成功
)