mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-02 12:01:50 +08:00
feat: expose scripts to review and add approval side chat
This commit is contained in:
1 parent
ee413324c8
commit
9b0d1bdb3c
18 files changed
+935
-217
No files matched your search
@@ -20,9 +20,13 @@ type Parent struct {
|
||||
TaskID int64 `json:"task_id,omitempty"`
|
||||
ExplorationID int64 `json:"exploration_id,omitempty"`
|
||||
IntentID int64 `json:"intent_id,omitempty"`
|
||||
ApprovalID int64 `json:"approval_id,omitempty"`
|
||||
}
|
||||
|
||||
func (p Parent) Key() string {
|
||||
if p.ApprovalID > 0 {
|
||||
return fmt.Sprintf("approval-%d", p.ApprovalID)
|
||||
}
|
||||
if p.ConversationID > 0 {
|
||||
return fmt.Sprintf("conv-%d", p.ConversationID)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user