s_robot_config.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package schema
  2. import "time"
  3. // RobotConfig RobotConfig对象
  4. type RobotConfig struct {
  5. RecordID string `json:"record_id"` // 记录id
  6. OrgId string `json:"org_id"` // 组织机构id
  7. OrgName string `json:"org_name"` // 组织机构名称
  8. Name string `json:"name"` // 机器人名称
  9. Type int `json:"type"` // 机器人类型
  10. APPID string `json:"app_id"` // APP ID
  11. ClientId string `json:"client_id"` // 客户端ID
  12. ClientSecret string `json:"client_secret"` // 客户端密钥
  13. Webhook string `json:"webhook"` // 消息接收WebHook
  14. Datasets Datasets `json:"datasets"` // 关联知识库
  15. AssistantId string `json:"assistant_id"` // 助手id
  16. SessionId string `json:"session_id"` // 会话id
  17. CreatedAt time.Time `json:"created_at"` // 创建时间
  18. CreatorId string `json:"creator_id"` // 创建者
  19. CreatorName string `json:"creator_name"` // 创建者名称
  20. }
  21. // RobotConfigQueryParam 查询条件
  22. type RobotConfigQueryParam struct {
  23. Code string
  24. Status int
  25. LikeCode string
  26. LikeName string
  27. RecordIDs []string
  28. }
  29. // RobotConfigQueryOptions RobotConfig对象查询可选参数项
  30. type RobotConfigQueryOptions struct {
  31. PageParam *PaginationParam // 分页参数
  32. }
  33. // RobotConfigQueryResult RobotConfig对象查询结果
  34. type RobotConfigQueryResult struct {
  35. Data []*RobotConfig
  36. PageResult *PaginationResult
  37. }