chore: replace all cn comments to en version by volc api (#313)

This commit is contained in:
tecvan
2025-07-31 15:18:11 +08:00
committed by GitHub
parent 91d6cdb430
commit 5abc63fba6
254 changed files with 5899 additions and 5844 deletions

View File

@@ -8,25 +8,25 @@ enum ProductEntityType {
// Workflow = 3 ,
SocialScene = 4,
Project = 6,
WorkflowTemplate = 13, // 历史工作流,后续不会再有(废弃)
ImageflowTemplate = 15, // 历史图像流模板,后续不会再有(废弃)
TemplateCommon = 20, // 模板通用标识,仅用于绑定模板相关的配置,不绑定商品
BotTemplate = 21, // Bot 模板
WorkflowTemplateV2 = 23, // 工作流模板
ImageflowTemplateV2 = 25, // 图像流模板(该类型已下线,合并入 workflow但历史数据会保留前端视作 workflow 展示)
ProjectTemplate = 26, // 项目模板
CozeToken = 50, // coze token 类商品,理论上只会有一个
MsgCredit = 55, // 订阅 credit 的流量包,理论上只会有一个
SubsMsgCredit = 60, // 消息订阅类商品,理论上只有一个
WorkflowTemplate = 13, // History workflow, no more in the future (abandoned)
ImageflowTemplate = 15, // Historical image stream template, no more in the future (obsolete)
TemplateCommon = 20, // Template universal identification, only used to bind template-related configurations, not bind products
BotTemplate = 21, // Bot template
WorkflowTemplateV2 = 23, // workflow template
ImageflowTemplateV2 = 25, // Image stream template (this type has been offline and merged into workflow, but historical data will be preserved, and the front end will be treated as workflow display)
ProjectTemplate = 26, // project template
CozeToken = 50, // Coze token products, theoretically there will only be one
MsgCredit = 55, // Subscribe to the traffic package of credit, theoretically there will only be one
SubsMsgCredit = 60, // There is only one subscription product in theory
Common = 99,
Topic = 101 // 专题(兼容之前的设计)
Topic = 101 // Special Topics (Compatible with previous designs)
}
enum SortType {
Heat = 1,
Newest = 2,
FavoriteTime = 3, // 收藏时间
Relative = 4, // 相关性,只用于搜索场景
FavoriteTime = 3, // collection time
Relative = 4, // Correlation, only for search scenarios
}
enum ProductPublishMode {
@@ -35,8 +35,8 @@ enum ProductPublishMode {
}
enum ProductListSource {
Recommend = 1, // 推荐列表页
CustomizedRecommend = 2, // 个性化推荐
Recommend = 1, // recommended list page
CustomizedRecommend = 2, // personalized recommendation
}
enum PluginType {
@@ -54,7 +54,7 @@ struct CommercialSetting {
}
enum ProductStatus {
NeverListed = 0, // 从未上架
NeverListed = 0, // NeverListed
Listed = 1,
Unlisted = 2,
Banned = 3,
@@ -83,16 +83,16 @@ struct ImageInfo {
}
enum ProductDraftStatus {
Default = 0, // 默认
Pending = 1, // 审核中
Approved = 2, // 审核通过
Rejected = 3, // 审核不通过
Abandoned = 4, // 已废弃
Default = 0, // default
Pending = 1, // Under review.
Approved = 2, // approved
Rejected = 3, // The review failed.
Abandoned = 4, // Abandoned
}
typedef ProductDraftStatus AuditStatus
struct OpeningDialog { // Bot开场白
struct OpeningDialog { // Bot OpeningDialog
1: string content (agw.key = "content", api.body= "content"),
}
@@ -110,17 +110,17 @@ enum PluginParamTypeFormat {
}
enum WorkflowNodeType {
Start = 1 , // 开始
End = 2 , // 结束
LLM = 3 , // 大模型
Api = 4 , // 插件
Code = 5 , // 代码
Dataset = 6 , // 知识库
If = 8 , // 选择器
SubWorkflow = 9 , // 工作流
Variable = 11, // 变量
Database = 12, // 数据库
Message = 13, // 消息
Start = 1 , // start
End = 2 , // end
LLM = 3 , // Large model
Api = 4 , // plugin
Code = 5 , // code
Dataset = 6 , // Knowledge Base
If = 8 , // selector
SubWorkflow = 9 , // Workflow
Variable = 11, // variable
Database = 12, // database
Message = 13, // message
}
enum SocialSceneRoleType {
@@ -129,9 +129,9 @@ enum SocialSceneRoleType {
Custom = 3
}
enum UIPreviewType { // UI 预览类型,定义对齐 UI Builder目前用于 Project
Web = 1, // 网页端
Client = 2, // 移动端
enum UIPreviewType { // UI preview type, defining alignment UI Builder, currently used in Project
Web = 1, // web page
Client = 2, // mobile end
}
struct ChargeSKUExtra{
@@ -140,7 +140,7 @@ struct ChargeSKUExtra{
}
enum FavoriteListSource {
CreatedByMe = 1, // 用户自己创建的
CreatedByMe = 1, // Created by users themselves
}
struct FavoriteEntity {
@@ -149,10 +149,10 @@ struct FavoriteEntity {
4 : string Name (agw.key = "name", api.body="name") ,
5 : string IconURL (agw.key = "icon_url", api.body="icon_url") ,
6 : string Description (agw.key = "description", api.body="description") ,
7 : SellerInfo Seller (agw.key = "seller", api.body="seller") , // 废弃,使用UserInfo
8 : i64 SpaceID (agw.js_conv="str", agw.cli_conv="str", agw.key = "space_id", api.body="space_id", api.js_conv="true") , // 用于跳转到Bot编辑页
9 : bool HasSpacePermission (agw.key = "has_space_permission", api.body="has_space_permission") , // 用户是否有该实体所在Space的权限
10: i64 FavoriteAt (agw.js_conv="str", agw.cli_conv="str", agw.key = "favorite_at", api.body="favorite_at", api.js_conv="true"), // 收藏时间
7 : SellerInfo Seller (agw.key = "seller", api.body="seller") , // Abandoned, using UserInfo
8 : i64 SpaceID (agw.js_conv="str", agw.cli_conv="str", agw.key = "space_id", api.body="space_id", api.js_conv="true") , // Use to jump to the bot edit page
9 : bool HasSpacePermission (agw.key = "has_space_permission", api.body="has_space_permission") , // Does the user have permissions to the space where the entity is located?
10: i64 FavoriteAt (agw.js_conv="str", agw.cli_conv="str", agw.key = "favorite_at", api.body="favorite_at", api.js_conv="true"), // collection time
11: optional FavoriteProductExtra ProductExtra (agw.key = "product_extra", api.body="product_extra") ,
12: UserInfo UserInfo (agw.key = "user_info", api.body="user_info") ,

View File

@@ -41,22 +41,22 @@ struct GetProductListRequest {
3 : required product_common.SortType SortType (api.body = "sort_type") ,
4 : required i32 PageNum (api.body = "page_num") ,
5 : required i32 PageSize (api.body = "page_size") ,
6 : optional string Keyword (api.body = "keyword") , // 不为空则搜索
7 : optional product_common.ProductPublishMode PublishMode (api.body = "publish_mode") , // 公开方式1-开源2-闭源 , // 公开方式
8 : optional list<i64> PublishPlatformIDs (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.source = "query", agw.key = "publish_platform_ids"), // 发布渠道
9 : optional product_common.ProductListSource Source (agw.key = "source", api.body= "source") , // 列表页 tab; 1-运营推荐
// 个性化推荐场景, 传入当前的实体信息, 获取推荐的商品
10: optional product_common.ProductEntityType CurrentEntityType (api.body = "current_entity_type") , // 当前实体类型
11: optional i64 CurrentEntityID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.query = "current_entity_id", agw.key="current_entity_id") , // 当前实体 ID
12: optional i64 CurrentEntityVersion (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.query = "current_entity_version", agw.key="current_entity_version") , // 当前实体版本
// 专题场景
6 : optional string Keyword (api.body = "keyword") , // non-empty search
7 : optional product_common.ProductPublishMode PublishMode (api.body = "publish_mode") , // Open mode: 1-open source; 2-closed source,//open mode
8 : optional list<i64> PublishPlatformIDs (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.source = "query", agw.key = "publish_platform_ids"), // publish platforms
9 : optional product_common.ProductListSource Source (agw.key = "source", api.body= "source") , // List tab; 1 - Operational recommendations
// Personalized recommendation scenarios, enter current entity information, and obtain recommended products
10: optional product_common.ProductEntityType CurrentEntityType (api.body = "current_entity_type") , // Current entity type
11: optional i64 CurrentEntityID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.query = "current_entity_id", agw.key="current_entity_id") , // Current entity ID
12: optional i64 CurrentEntityVersion (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.query = "current_entity_version", agw.key="current_entity_version") , // Current entity version
// thematic scenario
13 : optional i64 TopicID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.query = "topic_id", agw.key="topic_id") ,
14 : optional string PreviewTopicID (agw.key = "preview_topic_id", api.body= "preview_topic_id") ,
15 : optional bool IsOfficial (api.body = "is_official") , // 是否需要过滤出官方商品
16 : optional bool NeedExtra (api.body = "need_extra") , // 是否需要返回额外信息
17 : optional list<product_common.ProductEntityType> EntityTypes (api.body = "entity_types"), // 商品类型列表, 优先使用该参数,其次使用 EntityType
18 : optional bool IsFree (api.body = "is_free"), // true = 筛选免费的false = 筛选付费的;不传则不区分免费和付费
19 : optional product_common.PluginType PluginType (api.body = "plugin_type") , // 插件类型
15 : optional bool IsOfficial (api.body = "is_official") , // Do you need to filter out official products?
16 : optional bool NeedExtra (api.body = "need_extra") , // Do you need to return additional information?
17 : optional list<product_common.ProductEntityType> EntityTypes (api.body = "entity_types"), // List of product types, use this parameter first, followed by EntityType
18 : optional bool IsFree (api.body = "is_free"), // True = filter for free; false = filter for paid; if you don't pass it, you won't distinguish between free and paid.
19 : optional product_common.PluginType PluginType (api.body = "plugin_type") , // plugin type
101: optional string ClientIP (api.header="Tt-Agw-Client-Ip") ,
255: optional base.Base Base ,
}
@@ -106,57 +106,57 @@ struct ProductLabel{
struct ProductMetaInfo {
1 : i64 ID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "id", api.body= "id") ,
2 : string Name (agw.key = "name", api.body= "name") , // 商品/模板名称
3 : i64 EntityID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "entity_id", api.body= "entity_id") , // 素材 ID由 entity_type 来决定是 bot/plugin 的ID
4 : product_common.ProductEntityType EntityType (agw.key = "entity_type", api.body= "entity_type") , // 商品素材类型
5 : string IconURL (agw.key = "icon_url", agw.key="icon_url", api.body= "icon_url") , // 商品/模板头像
6 : i32 Heat (agw.key = "heat", api.body= "heat") , // 热度:模板热度=复制量(用于卡片展示/排序);商品热度=不同商品有独立的计算逻辑(仅用于排序)—— heat的计算有一定延迟
2 : string Name (agw.key = "name", api.body= "name") , // Product/Template Name
3 : i64 EntityID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "entity_id", api.body= "entity_id") , // Creature ID, determined by entity_type is the ID of the bot/plugin
4 : product_common.ProductEntityType EntityType (agw.key = "entity_type", api.body= "entity_type") , // Product material type
5 : string IconURL (agw.key = "icon_url", agw.key="icon_url", api.body= "icon_url") , // Product/template avatar
6 : i32 Heat (agw.key = "heat", api.body= "heat") , // Heat: Template heat = copy volume (used for card display/sorting); product heat = different products have independent calculation logic (only used for sorting) - the calculation of heat has a certain delay
7 : i32 FavoriteCount (agw.key = "favorite_count", api.body= "favorite_count") ,
8 : SellerInfo Seller (agw.key = "seller", api.body= "seller") , // 废弃,使用UserInfo代替
9 : string Description (agw.key = "description", api.body= "description") , // 商品描述
8 : SellerInfo Seller (agw.key = "seller", api.body= "seller") , // Obsolete, use UserInfo instead
9 : string Description (agw.key = "description", api.body= "description") , // Product description
10: i64 ListedAt (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "listed_at", api.body= "listed_at") ,
11: product_common.ProductStatus Status (agw.key = "status", api.body= "status") ,
12: optional ProductCategory Category (agw.key = "category", api.body= "category") , // 商品/模板分类信息
13: bool IsFavorited (agw.key = "is_favorited", api.body= "is_favorited") , // 是否收藏
12: optional ProductCategory Category (agw.key = "category", api.body= "category") , // Product/template classification information
13: bool IsFavorited (agw.key = "is_favorited", api.body= "is_favorited") , // Whether to collect
14: bool IsFree (agw.key = "is_free", api.body= "is_free") ,
15: string Readme (agw.key = "readme", api.body= "readme") , // 模板介绍/插件介绍(目前是富文本格式)
15: string Readme (agw.key = "readme", api.body= "readme") , // Template introduction/plugin introduction (currently in rich text format)
16: optional i64 EntityVersion (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "entity_version", api.body= "entity_version"),
17: optional list<ProductLabel> Labels (agw.key = "labels", api.body= "labels") ,
18: product_common.UserInfo UserInfo (agw.key = "user_info", api.body= "user_info") ,
19: string MediumIconURL (agw.key = "medium_icon_url", api.body= "medium_icon_url") ,
20: string OriginIconURL (agw.key = "origin_icon_url", api.body= "origin_icon_url") ,
21: optional list<product_common.ImageInfo> Covers (agw.key = "covers", api.body= "covers") , // 模板封面
22: optional bool IsProfessional (agw.key = "is_professional", api.body= "is_professional") , // 是否专业版特供
23: bool IsTemplate (agw.key = "is_template", api.body= "is_template") , // 是否为模板
24: bool IsOfficial (agw.key = "is_official", api.body= "is_official") , // 是否官方商品
25: optional marketplace_common.Price Price (agw.key = "price", api.body= "price") , // 价格,当前只有模板有
21: optional list<product_common.ImageInfo> Covers (agw.key = "covers", api.body= "covers") , // Template cover
22: optional bool IsProfessional (agw.key = "is_professional", api.body= "is_professional") , // Is the professional version specially available?
23: bool IsTemplate (agw.key = "is_template", api.body= "is_template") , // Is it a template?
24: bool IsOfficial (agw.key = "is_official", api.body= "is_official") , // Is it an official product?
25: optional marketplace_common.Price Price (agw.key = "price", api.body= "price") , // Price, currently only available in the template.
}
struct UserBehaviorInfo {
// 用户主页需要返回最近浏览/使用商品的时间
1: optional i64 ViewedAt (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "viewed_at", api.body= "viewed_at") , // 最近浏览时间戳
2: optional i64 UsedAt (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "used_at", api.body= "used_at") , // 最近使用时间戳
// The user homepage needs to return the most recently viewed/used product time.
1: optional i64 ViewedAt (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "viewed_at", api.body= "viewed_at") , // Latest Viewtimestamp
2: optional i64 UsedAt (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "used_at", api.body= "used_at") , // Recently used timestamp
}
enum PluginAuthMode {
NoAuth = 0, // 不需要授权
Required = 1, // 需要授权,但无授权配置
Configured = 2, // 需要授权,且已经配置
Supported = 3, // 需要授权,但授权配置可能是用户级别,可由用户自己配置
NoAuth = 0, // No authorization required.
Required = 1, // Authorization required, but no authorization configuration
Configured = 2, // Authorization is required and has been configured
Supported = 3, // Authorization is required, but the authorization configuration may be user-level and can be configured by the user himself
}
struct PluginExtraInfo {
1: optional list<PluginToolInfo> Tools (agw.key = "tools", api.body= "tools") ,
2: i32 TotalAPICount (agw.key = "total_api_count", api.body= "total_api_count") ,
3: i32 BotsUseCount (agw.key = "bots_use_count", api.body= "bots_use_count") ,
4: optional bool HasPrivacyStatement (agw.key = "has_private_statement", api.body= "has_private_statement"), // 是否有隐私声明, 目前只有 PublicGetProductDetail 会取数据
5: optional string PrivacyStatement (agw.key = "private_statement", api.body= "private_statement") , // 隐私声明, 目前只有 PublicGetProductDetail 会取数据
4: optional bool HasPrivacyStatement (agw.key = "has_private_statement", api.body= "has_private_statement"), // Is there a privacy statement, currently only PublicGetProductDetail will take the data
5: optional string PrivacyStatement (agw.key = "private_statement", api.body= "private_statement") , // Privacy statement, currently only PublicGetProductDetail will access data
6: i32 AssociatedBotsUseCount (agw.key = "associated_bots_use_count", api.body= "associated_bots_use_count"),
7: bool IsPremium (agw.key="is_premium", api.body= "is_premium"),
8: bool IsOfficial (agw.key="is_official", api.body= "is_official"),
9: optional i32 CallAmount (agw.key = "call_amount", api.body= "call_amount") // 调用量
10: optional double SuccessRate (agw.key = "success_rate", api.body= "success_rate") // 成功率
11: optional double AvgExecTime (agw.key = "avg_exec_time", api.body= "avg_exec_time") // 平均执行时长
9: optional i32 CallAmount (agw.key = "call_amount", api.body= "call_amount") // call amount
10: optional double SuccessRate (agw.key = "success_rate", api.body= "success_rate") // success rate
11: optional double AvgExecTime (agw.key = "avg_exec_time", api.body= "avg_exec_time") // average execution time
12: optional bool IsDefaultIcon (agw.key = "is_default_icon", api.body= "is_default_icon"),
13: optional i64 SpaceID (agw.key = "space_id", agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.body= "space_id"),
14: optional i64 MaterialID (agw.key = "material_id", agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.body= "material_id"),
@@ -177,7 +177,7 @@ struct ToolParameter {
struct CardInfo {
1: string CardURL (agw.key = "card_url", api.body= "card_url"),
// 以下只有详情页返回
// Only the details page returns
2: i64 CardID (agw.js_conv="str", api.js_conv="true" agw.cli_conv="str", agw.key = "card_id", api.body= "card_id"),
3: string MappingRule (agw.key = "mapping_rule"),
4: i64 MaxDisplayRows (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "max_display_rows", api.body= "max_display_rows"),
@@ -203,11 +203,11 @@ struct PluginToolInfo{
4: optional list<ToolParameter> Parameters (agw.key = "parameters", api.body= "parameters") ,
5: optional CardInfo CardInfo (agw.key = "card_info", api.body= "card_info"),
6: optional PluginToolExample Example (agw.key = "example", api.body= "example"),
7: optional i32 CallAmount (agw.key = "call_amount", api.body= "call_amount") // 调用量
8: optional double SuccessRate (agw.key = "success_rate", api.body= "success_rate") // 成功率
9: optional double AvgExecTime (agw.key = "avg_exec_time", api.body= "avg_exec_time") // 平均执行时长
10: optional i32 BotsUseCount (agw.key = "bots_use_count", api.body= "bots_use_count") // tool bot引用数
11: optional PluginRunMode RunMode (agw.key = "run_mode", api.body= "run_mode"), // 运行模式
7: optional i32 CallAmount (agw.key = "call_amount", api.body= "call_amount") // call amount
8: optional double SuccessRate (agw.key = "success_rate", api.body= "success_rate") // success rate
9: optional double AvgExecTime (agw.key = "avg_exec_time", api.body= "avg_exec_time") // average execution time
10: optional i32 BotsUseCount (agw.key = "bots_use_count", api.body= "bots_use_count") // Number of tool bot references
11: optional PluginRunMode RunMode (agw.key = "run_mode", api.body= "run_mode"), // operating mode
}
struct PluginConnectorInfo {
@@ -247,32 +247,32 @@ enum FileboxInfoMode {
On = 1
}
struct UserQueryCollectConf { // bot用户query收集配置
1: bool IsCollected (agw.key="is_collected", api.body= "is_collected") , // 是否开启收集开关
2: string PrivatePolicy (agw.key="private_policy", api.body= "private_policy") , // 隐私协议链接
struct UserQueryCollectConf { // Bot user query collection configuration
1: bool IsCollected (agw.key="is_collected", api.body= "is_collected") , // Whether to turn on the collection switch
2: string PrivatePolicy (agw.key="private_policy", api.body= "private_policy") , // Privacy Policy Link
}
struct BotConfig {
1: optional list<ProductMaterial> Models (agw.key = "models", api.body= "models") , // 模型
2: optional list<ProductMaterial> Plugins (agw.key = "plugins", api.body= "plugins") , // 插件
3: optional list<ProductMaterial> Knowledges (agw.key = "knowledges", api.body= "knowledges") , // 知识库
4: optional list<ProductMaterial> Workflows (agw.key = "workflows", api.body= "workflows") , // 工作流
5: optional i32 PrivatePluginsCount (agw.key = "private_plugins_count", api.body= "private_plugins_count") , // 私有插件数量
6: optional i32 PrivateKnowledgesCount (agw.key = "private_knowledges_count", api.body= "private_knowledges_count"), // 私有知识库数量
7: optional i32 PrivateWorkflowsCount (agw.key = "private_workflows_count", api.body= "private_workflows_count") , // 私有工作流数量
8: optional bool HasBotAgent (agw.key = 'has_bot_agent', api.body= "has_bot_agent") , // 判断 multiagent 是否有 bot 节点
9: optional list<BotVoiceInfo> BotVoices (agw.key = 'bot_voices', api.body= "bot_voices") , // bot 配置的声音列表
10: optional i32 TotalPluginsCount (agw.key = "total_plugins_count", api.body= "total_plugins_count") , // 所有插件数量
11: optional i32 TotalKnowledgesCount (agw.key = "total_knowledges_count", api.body= "total_knowledges_count"), // 所有知识库数量
12: optional i32 TotalWorkflowsCount (agw.key = "total_workflows_count", api.body= "total_workflows_count") , // 所有工作流数量
13: optional TimeCapsuleMode TimeCapsuleMode (agw.key = "time_capsule_mode", api.body= "time_capsule_mode") // 时间胶囊模式
14: optional FileboxInfoMode FileboxMode (agw.key = "filebox_mode", api.body= "filebox_mode") // 文件盒模式
15: optional i32 PrivateImageWorkflowCount (agw.key = "private_image_workflow_count", api.body= "private_image_workflow_count"), // 私有图片工作流数量
16: optional UserQueryCollectConf UserQueryCollectConf (agw.key = "user_query_collect_conf", api.body= "user_query_collect_conf") // 用户qeury收集配置
17: optional bool IsCloseVoiceCall (agw.key = "is_close_voice_call", api.body= "is_close_voice_call"), // 是否关闭语音通话(默认是打开)
1: optional list<ProductMaterial> Models (agw.key = "models", api.body= "models") , // model
2: optional list<ProductMaterial> Plugins (agw.key = "plugins", api.body= "plugins") , // plugin
3: optional list<ProductMaterial> Knowledges (agw.key = "knowledges", api.body= "knowledges") , // Knowledge Base
4: optional list<ProductMaterial> Workflows (agw.key = "workflows", api.body= "workflows") , // Workflow
5: optional i32 PrivatePluginsCount (agw.key = "private_plugins_count", api.body= "private_plugins_count") , // number of private plugins
6: optional i32 PrivateKnowledgesCount (agw.key = "private_knowledges_count", api.body= "private_knowledges_count"), // Number of private repositories
7: optional i32 PrivateWorkflowsCount (agw.key = "private_workflows_count", api.body= "private_workflows_count") , // number of private workflows
8: optional bool HasBotAgent (agw.key = 'has_bot_agent', api.body= "has_bot_agent") , // Determine if the multiagent has a bot node
9: optional list<BotVoiceInfo> BotVoices (agw.key = 'bot_voices', api.body= "bot_voices") , // List of sounds configured by bot
10: optional i32 TotalPluginsCount (agw.key = "total_plugins_count", api.body= "total_plugins_count") , // Number of all plugins
11: optional i32 TotalKnowledgesCount (agw.key = "total_knowledges_count", api.body= "total_knowledges_count"), // Number of all knowledge bases
12: optional i32 TotalWorkflowsCount (agw.key = "total_workflows_count", api.body= "total_workflows_count") , // Number of all workflows
13: optional TimeCapsuleMode TimeCapsuleMode (agw.key = "time_capsule_mode", api.body= "time_capsule_mode") // Time Capsule Mode
14: optional FileboxInfoMode FileboxMode (agw.key = "filebox_mode", api.body= "filebox_mode") // File box mode
15: optional i32 PrivateImageWorkflowCount (agw.key = "private_image_workflow_count", api.body= "private_image_workflow_count"), // Number of private image workflows
16: optional UserQueryCollectConf UserQueryCollectConf (agw.key = "user_query_collect_conf", api.body= "user_query_collect_conf") // User qeury collection configuration
17: optional bool IsCloseVoiceCall (agw.key = "is_close_voice_call", api.body= "is_close_voice_call"), // Whether to turn off voice calls (the default is on)
}
// 消息涉及的bot信息,在home分享场景,消息属于多个bot
// The bot information involved in the message, sharing the scene in the home, the message belongs to multiple bots
struct ConversationRelateBot {
1: i64 ID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "id", api.body= "id"),
2: string Name (agw.key = "name", api.body= "name") ,
@@ -280,34 +280,34 @@ struct ConversationRelateBot {
4: string IconURL (agw.key = "icon_url", api.body= "icon_url") ,
}
// 消息涉及的user信息,在home分享场景,消息属于多个user
// The user information involved in the message, sharing the scene in the home, the message belongs to multiple users
struct ConversationRelateUser {
1: optional product_common.UserInfo UserInfo (agw.key = "user_info", api.body= "user_info")
}
struct Conversation {
1: optional list<string> Snippets (agw.key = "snippets", api.body= "snippets") , // 对话示例
2: optional string Title (agw.key = "title", api.body= "title") , // 对话标题
3: optional i64 ID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key="id", api.body= "id"), // 对话IDidGen生成
4: optional bool GenTitle (agw.key = "gen_title", api.body= "gen_title") , // 是否需要生成对话
5: optional product_common.AuditStatus AuditStatus (agw.key = "audit_status", api.body= "audit_status") , // 对话审核状态
6: optional product_common.OpeningDialog OpeningDialog (agw.key = "opening_dialog", api.body= "opening_dialog") , // 开场白
7: optional map<string,ConversationRelateBot> RelateBots (agw.key = "relate_bots", api.body= "relate_bots") , // 消息涉及的bot信息,key bot_id
8: optional map<string,ConversationRelateUser> RelateUsers (agw.key = "relate_users", api.body= "relate_users") , // 消息涉及的user信息,key user_id
1: optional list<string> Snippets (agw.key = "snippets", api.body= "snippets") , // conversation example
2: optional string Title (agw.key = "title", api.body= "title") , // conversation title
3: optional i64 ID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key="id", api.body= "id"), // Conversation ID, generated by idGen
4: optional bool GenTitle (agw.key = "gen_title", api.body= "gen_title") , // Do you need to generate a conversation?
5: optional product_common.AuditStatus AuditStatus (agw.key = "audit_status", api.body= "audit_status") , // conversation moderation status
6: optional product_common.OpeningDialog OpeningDialog (agw.key = "opening_dialog", api.body= "opening_dialog") , // opening statement
7: optional map<string,ConversationRelateBot> RelateBots (agw.key = "relate_bots", api.body= "relate_bots") , // The bot information involved in the message, key bot_id
8: optional map<string,ConversationRelateUser> RelateUsers (agw.key = "relate_users", api.body= "relate_users") , // The user information involved in the message, key user_id
}
struct BotExtraInfo {
1: list<BotPublishPlatform> PublishPlatforms (agw.key = "publish_platforms", api.body= "publish_platforms") , // 发布渠道
2: i32 UserCount (agw.key = "user_count", api.body= "user_count") , // 用户数
3: product_common.ProductPublishMode PublishMode (agw.key = "publish_mode", api.body= "publish_mode") , // 公开方式
// 详情页特有
4: optional list<list<string>> ConversationSnippets (agw.key = "conversation_snippets", api.body= "conversation_snippets") , // 对话示例, 废弃
5: optional BotConfig Config (agw.key = "config", api.body= "config") , // 配置
6: optional bool IsInhouseUser (agw.key = "is_inhouse_user", api.body= "is_inhouse_user") , // 白名单
7: optional i32 DuplicateBotCount (agw.key = 'duplicate_bot_count', api.body= "duplicate_bot_count") , // 复制创建 bot 数量
8: optional list<Conversation> Conversations (agw.key = "conversations", api.body= "conversations") , // 分享对话
9: optional i64 ChatConversationCount (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "chat_conversation_count", api.body= "chat_conversation_count"), // 与 Bot 聊天的对话数
10: optional i64 RelatedProductCount (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "related_product_count", api.body= "related_product_count"), // 关联商品数
1: list<BotPublishPlatform> PublishPlatforms (agw.key = "publish_platforms", api.body= "publish_platforms") , // publish platforms
2: i32 UserCount (agw.key = "user_count", api.body= "user_count") , // user count
3: product_common.ProductPublishMode PublishMode (agw.key = "publish_mode", api.body= "publish_mode") , // public method
// Details page unique
4: optional list<list<string>> ConversationSnippets (agw.key = "conversation_snippets", api.body= "conversation_snippets") , // Dialogue example, abandoned
5: optional BotConfig Config (agw.key = "config", api.body= "config") , // configuration
6: optional bool IsInhouseUser (agw.key = "is_inhouse_user", api.body= "is_inhouse_user") , // whitelist
7: optional i32 DuplicateBotCount (agw.key = 'duplicate_bot_count', api.body= "duplicate_bot_count") , // Number of copy-created bots
8: optional list<Conversation> Conversations (agw.key = "conversations", api.body= "conversations") , // Share the conversation
9: optional i64 ChatConversationCount (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "chat_conversation_count", api.body= "chat_conversation_count"), // Number of conversations with Bot
10: optional i64 RelatedProductCount (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "related_product_count", api.body= "related_product_count"), // number of related products
}
struct WorkflowParameter {
@@ -316,21 +316,21 @@ struct WorkflowParameter {
3: bool IsRequired (agw.key = "is_required", api.body= "is_required")
4: product_common.InputType InputType (agw.key = "input_type", api.body= "input_type")
5: list<WorkflowParameter> SubParameters(agw.key = "sub_parameters", api.body= "sub_parameters")
6: product_common.InputType SubType (agw.key = "sub_type", api.body= "sub_type") // 如果Type是数组,则有subtype
7: optional string Value (agw.key = "value", api.body= "value") // 如果入参是用户手输 就放这里
6: product_common.InputType SubType (agw.key = "sub_type", api.body= "sub_type") // If Type is an array, there is a subtype
7: optional string Value (agw.key = "value", api.body= "value") // If the imported parameter is the user's hand input, put it here
8: optional product_common.PluginParamTypeFormat Format (agw.key = "format", api.body= "format")
9: optional string FromNodeId (agw.key = "from_node_id", api.body= "from_node_id")
10: optional list<string> FromOutput (agw.key = "from_output", api.body= "from_output")
11: optional i64 AssistType (agw.key = "assist_type", api.body= "assist_type")// InputType (+ AssistType) 定义一个变量的最终类型,仅需透传
12: optional string ShowName (agw.key = "show_name", api.body= "show_name") // 展示名称( store 独有的,用于详情页 GUI 展示参数)
13: optional i64 SubAssistType (agw.key = "sub_assist_type", api.body= "sub_assist_type") // 如果InputType是数组,则有subassisttype
14: optional string ComponentConfig (agw.key = "component_config", api.body= "component_config") // 组件配置,由前端解析并渲染
15: optional string ComponentType (agw.key = "component_type", api.body= "component_type") // 组件配置类型,前端展示需要
11: optional i64 AssistType (agw.key = "assist_type", api.body= "assist_type")// InputType (+ AssistType) defines the final type of a variable, which only needs to be passed through
12: optional string ShowName (agw.key = "show_name", api.body= "show_name") // Display name (unique to the store, used for details page GUI display parameters)
13: optional i64 SubAssistType (agw.key = "sub_assist_type", api.body= "sub_assist_type") // If the InputType is an array, there is a subassistant type
14: optional string ComponentConfig (agw.key = "component_config", api.body= "component_config") // Component configuration, parsed and rendered by the front end
15: optional string ComponentType (agw.key = "component_type", api.body= "component_type") // Component configuration type, required for front-end display
}
struct WorkflowTerminatePlan {
1: i32 TerminatePlanType (agw.key = "terminate_plan_type", api.body= "terminate_plan_type") // 对应 workflow 结束节点的回答模式1-返回变量由Bot生成回答2-使用设定的内容直接回答
2: string Content (agw.key = "content", api.body= "content") // 对应 terminate_plan_type = 2 的场景配置的返回内容
1: i32 TerminatePlanType (agw.key = "terminate_plan_type", api.body= "terminate_plan_type") // The answer mode corresponding to the end node of the workflow: 1 - Return the variable, and the Bot generates the answer; 2 - Use the set content to answer directly
2: string Content (agw.key = "content", api.body= "content") // Return content of scene configuration corresponding to terminate_plan_type = 2
}
struct WorkflowNodeParam {
@@ -343,12 +343,12 @@ struct WorkflowNodeInfo {
1: string NodeID (agw.key = "node_id", api.body= "node_id")
2: product_common.WorkflowNodeType NodeType (agw.key = "node_type", api.body= "node_type")
3: optional WorkflowNodeParam NodeParam (agw.key = "node_param", api.body= "node_param")
4: string NodeIconURL (agw.key = "node_icon_url", api.body= "node_icon_url") // 节点icon
5: optional string ShowName (agw.key = "show_name", api.body= "show_name"), // 展示名称( store 独有的,用于详情页 GUI 展示消息节点的名称)
4: string NodeIconURL (agw.key = "node_icon_url", api.body= "node_icon_url") // Node icon
5: optional string ShowName (agw.key = "show_name", api.body= "show_name"), // Presentation name (unique to the store, the name used for the details page GUI display message node)
}
struct WorkflowEntity {
1 : i64 ProductID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "product_id", api.body= "product_id") , // 商品ID
1 : i64 ProductID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "product_id", api.body= "product_id") , // Product ID
2 : string Name (agw.key = "name", api.body= "name") ,
3 : i64 EntityID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "entity_id", api.body= "entity_id") ,
4 : product_common.ProductEntityType EntityType (agw.key = "entity_type", api.body= "entity_type") ,
@@ -357,36 +357,36 @@ struct WorkflowEntity {
7 : string EntityName (agw.key = "entity_name", api.body= "entity_name")
8 : string Readme (agw.key = "readme", api.body= "readme")
9 : ProductCategory Category (agw.key = "category", api.body= "category")
10: optional ProductCategory RecommendedCategory (agw.key = "recommended_category", api.body= "recommended_category")// 推荐分类 ,
10: optional ProductCategory RecommendedCategory (agw.key = "recommended_category", api.body= "recommended_category")// Recommended categories,
11: optional list<WorkflowNodeInfo> Nodes (agw.key = "nodes", api.body= "nodes")
12: string Desc (agw.key = "desc", api.body= "desc")
13: optional string CaseInputIconURL (agw.key = "case_input_icon_url", api.body= "case_input_icon_url") // 入参 图片icon
14: optional string CaseOutputIconURL (agw.key = "case_output_icon_url", api.body= "case_output_icon_url") // 出参 图片icon
13: optional string CaseInputIconURL (agw.key = "case_input_icon_url", api.body= "case_input_icon_url") // Imported parameters Picture icon
14: optional string CaseOutputIconURL (agw.key = "case_output_icon_url", api.body= "case_output_icon_url") // Exported parameters Image icon
15: optional string LatestPublishCommitID (agw.key = "latest_publish_commit_id", api.body= "latest_publish_commit_id")
}
struct WorkflowGUIConfig { // 用于将 workflow 的输入/输出/中间消息节点节点转为用户可视化配置
struct WorkflowGUIConfig { // Used to convert the input/output/intermediate message node of a workflow into a user visual configuration
1: WorkflowNodeInfo StartNode (agw.key = "start_node", api.body= "start_node"),
2: WorkflowNodeInfo EndNode (agw.key = "end_node", api.body= "end_node"),
3: optional list<WorkflowNodeInfo> MessageNodes (agw.key = "message_nodes", api.body= "message_nodes"), // 消息节点会输出中间过程,也需要展示
3: optional list<WorkflowNodeInfo> MessageNodes (agw.key = "message_nodes", api.body= "message_nodes"), // The message node will output the intermediate process, which also needs to be displayed.
}
struct WorkflowExtraInfo {
1: list<WorkflowEntity> RelatedWorkflows (agw.key = "related_workflows", api.body= "related_workflows")
2: optional i32 DuplicateCount (agw.key = "duplicate_count", api.body= "duplicate_count")
3: optional string WorkflowSchema (agw.key = "workflow_schema", api.body= "workflow_schema") // workflow画布信息
3: optional string WorkflowSchema (agw.key = "workflow_schema", api.body= "workflow_schema") // Workflow canvas information
// /api/workflowV2/query schema_json
4: optional ProductCategory RecommendedCategory (agw.key = "recommended_category", api.body= "recommended_category")// 推荐分类
4: optional ProductCategory RecommendedCategory (agw.key = "recommended_category", api.body= "recommended_category")// recommended classification
5: optional list<WorkflowNodeInfo> Nodes (agw.key = "nodes", api.body= "nodes")
6: optional WorkflowNodeInfo StartNode (agw.key = "start_node", api.body= "start_node")
7: optional string EntityName (agw.key = "entity_name", api.body= "entity_name") // 实体名称(用于展示)
8: optional string CaseInputIconURL (agw.key = "case_input_icon_url", api.body= "case_input_icon_url") // 用例图入参
9: optional string CaseOutputIconURL (agw.key = "case_output_icon_url", api.body= "case_output_icon_url") // 用例图出参
10: optional i64 CaseExecuteID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "case_execute_id", api.body= "case_execute_id") // 案例执行ID
7: optional string EntityName (agw.key = "entity_name", api.body= "entity_name") // Entity name (for presentation)
8: optional string CaseInputIconURL (agw.key = "case_input_icon_url", api.body= "case_input_icon_url") // Use case diagrams imported parameters
9: optional string CaseOutputIconURL (agw.key = "case_output_icon_url", api.body= "case_output_icon_url") // Use case diagram exported parameters
10: optional i64 CaseExecuteID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "case_execute_id", api.body= "case_execute_id") // case execution ID
11: optional string HoverText (agw.key = "hover_text", api.body= "hover_text")
12: optional string LatestPublishCommitID (agw.key = "latest_publish_commit_id", api.body= "latest_publish_commit_id")
13: optional i32 UsedCount (agw.key = "used_count", api.body= "used_count") // 试运行次数,从数仓取
14: optional WorkflowGUIConfig GUIConfig (agw.key = "gui_config", api.body= "gui_config") // 用于将 workflow 的输入/输出/中间消息节点节点转为用户可视化配置
13: optional i32 UsedCount (agw.key = "used_count", api.body= "used_count") // Practice running times, take from the number of warehouses
14: optional WorkflowGUIConfig GUIConfig (agw.key = "gui_config", api.body= "gui_config") // Used to convert the input/output/intermediate message node of a workflow into a user visual configuration
}
struct SocialScenePlayerInfo {
@@ -396,36 +396,36 @@ struct SocialScenePlayerInfo {
}
struct SocialSceneExtraInfo {
1: optional list<SocialScenePlayerInfo> Players (agw.key = "players", api.body= "players") // 角色
2: i64 UsedCount (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "used_count", api.body= "used_count") // 使用过的人数
3: i64 StartedCount (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "started_count", api.body= "started_count") // 开始过的次数
4: product_common.ProductPublishMode PublishMode (agw.key = "publish_mode", api.body= "publish_mode") // 开闭源
1: optional list<SocialScenePlayerInfo> Players (agw.key = "players", api.body= "players") // role
2: i64 UsedCount (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "used_count", api.body= "used_count") // Number of people used
3: i64 StartedCount (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "started_count", api.body= "started_count") // number of times started
4: product_common.ProductPublishMode PublishMode (agw.key = "publish_mode", api.body= "publish_mode") // publish_mode
}
struct ProjectConfig {
1: i32 PluginCount (agw.key = "plugin_count", api.body= "plugin_count"), // 插件数量
2: i32 WorkflowCount (agw.key = "workflow_count", api.body= "workflow_count"), // 工作流数量
3: i32 KnowledgeCount (agw.key = "knowledge_count", api.body= "knowledge_count"), // 知识库数量
4: i32 DatabaseCount (agw.key = "database_count", api.body= "database_count"), // 数据库数量
1: i32 PluginCount (agw.key = "plugin_count", api.body= "plugin_count"), // number of plugins
2: i32 WorkflowCount (agw.key = "workflow_count", api.body= "workflow_count"), // number of workflows
3: i32 KnowledgeCount (agw.key = "knowledge_count", api.body= "knowledge_count"), // Number of knowledge bases
4: i32 DatabaseCount (agw.key = "database_count", api.body= "database_count"), // Number of databases
}
struct ProjectExtraInfo {
// Project 上架为模板前生成一个模板副本,使用或者复制模板,需要用 TemplateProjectID TemplateProjectVersion
// Generate a copy of the template before Project is put on the shelves. To use or copy the template, you need to use TemplateProjectID and TemplateProjectVersion
1: i64 TemplateProjectID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key="template_project_id", api.body= "template_project_id"),
2: i64 TemplateProjectVersion (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key="template_project_version", api.body= "template_project_version"),
3: list<product_common.UIPreviewType> PreviewTypes (agw.key = "preview_types", api.body= "preview_types") // Project 绑定的 UI 支持的预览类型
4: i32 UserCount (agw.key="user_count", api.body= "user_count"), // 用户数
5: i32 ExecuteCount (agw.key="execute_count", api.body= "execute_count"), // 运行数
6: list<BotPublishPlatform> PublishPlatforms (agw.key = "publish_platforms", api.body= "publish_platforms"), // 发布渠道
7: i32 DupliacateCount (agw.key = "duplicate_count", api.body= "duplicate_count"), // 近实时复制量,从数仓接口获取(复制 - 上报埋点 - 数仓计算落库)
8: optional ProjectConfig Config (agw.key = "config", api.body= "config"), // 配置
3: list<product_common.UIPreviewType> PreviewTypes (agw.key = "preview_types", api.body= "preview_types") // Project-bound UI supported preview types
4: i32 UserCount (agw.key="user_count", api.body= "user_count"), // user count
5: i32 ExecuteCount (agw.key="execute_count", api.body= "execute_count"), // number of runs
6: list<BotPublishPlatform> PublishPlatforms (agw.key = "publish_platforms", api.body= "publish_platforms"), // publish platforms
7: i32 DupliacateCount (agw.key = "duplicate_count", api.body= "duplicate_count"), // Near real-time copy volume, obtained from the data warehouse interface (copy-report event tracking-data warehouse calculation drop library)
8: optional ProjectConfig Config (agw.key = "config", api.body= "config"), // configuration
}
struct GetProductDetailRequest{
1 : optional i64 ProductID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.query = "product_id", agw.key="product_id"),
2 : optional product_common.ProductEntityType EntityType (api.body = "entity_type") ,
3 : optional i64 EntityID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", api.query = "entity_id", agw.key="entity_id") ,
4 : optional bool NeedAuditFailed (api.body = "need_audit_failed") , // 是否查看最新的审核失败草稿
4 : optional bool NeedAuditFailed (api.body = "need_audit_failed") , // Whether to check the latest audit failure draft
101: optional string ClientIP (api.header="Tt-Agw-Client-Ip") ,
255: optional base.Base Base ,
}
@@ -445,7 +445,7 @@ struct Price{
struct SKUInfo {
1: i64 ID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "id", api.body= "id"),
2: list<Price> Price (agw.key = "price", api.body= "price") , // 待废弃
2: list<Price> Price (agw.key = "price", api.body= "price") , // to be abandoned
3: string Description (agw.key = "description", api.body= "description") ,
4: list<marketplace_common.Price> PriceV2 (agw.key = "price_v2", api.body= "price_v2") ,
5: optional product_common.ChargeSKUExtra ChargeInfoExtra (agw.key = "charge_sku_info", api.body= "charge_sku_info"),
@@ -465,7 +465,7 @@ struct SellAttr {
struct SellInfo{
1: map<i64,SKUInfo> SKUs (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "skus", api.body= "skus") ,
2: list<SellAttr> Attr (agw.key = "attr", api.body= "attr") ,
3: map<string,i64> SKUAttrRef (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "sku_attr_ref", api.body= "sku_attr_ref"), // Key attrkey:attrvalue 路径,value skuID
3: map<string,i64> SKUAttrRef (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "sku_attr_ref", api.body= "sku_attr_ref"), // Key is attrkey: attrvalue path, value is skuID
}
struct Topic {
@@ -473,24 +473,24 @@ struct Topic {
2: string Name (agw.key = "name", api.body= "name") ,
3: string Description (agw.key = "description", api.body= "description") ,
4: string BannerURL (agw.key = "banner_url", api.body= "banner_url") ,
5: string BannerURLSmall (agw.key = "banner_url_small", api.body= "banner_url_small") , // 背景小图,前端优先加载
5: string BannerURLSmall (agw.key = "banner_url_small", api.body= "banner_url_small") , // Small background image, front-end priority loading
6: string Reason (agw.key = "reason", api.body= "reason") ,
7: string IntroductionURL (agw.key = "introduction_url", api.body= "introduction_url") , // 运营提供的专题介绍文档,用户可见
8: bool IsFavorite (agw.key = "is_favorite", api.body= "is_favorite") , // 用户是否收藏专题
7: string IntroductionURL (agw.key = "introduction_url", api.body= "introduction_url") , // The presentation document provided by the operation is visible to users
8: bool IsFavorite (agw.key = "is_favorite", api.body= "is_favorite") , // Does the user collect the topic?
}
struct ProductDataIndicator { // 数据分析指标,来源数仓,比如模板购买量、复制量等
1: optional i32 PurchaseCount (agw.key = "purchase_count", api.body= "purchase_count"), // 购买量
struct ProductDataIndicator { // Data analytics metrics, source number, such as template purchases, replicas, etc
1: optional i32 PurchaseCount (agw.key = "purchase_count", api.body= "purchase_count"), // purchase volume
}
struct GetProductDetailData { // 下架的商品只返回非 optional 字段
struct GetProductDetailData { // Products removed from the shelves only return non-optional fields
1 : required ProductMetaInfo MetaInfo (agw.key = "meta_info", api.body= "meta_info") ,
2 : required bool IsOwner (agw.key = "is_owner", api.body= "is_owner") , // 用以区分主/客态
3 : product_common.ProductDraftStatus AuditStatus (agw.key = "audit_status", api.body= "audit_status") , // 审核状态,主态下返回需要关注,如果主态且审核中,需要展示审核中状态
2 : required bool IsOwner (agw.key = "is_owner", api.body= "is_owner") , // To distinguish between host and guest states
3 : product_common.ProductDraftStatus AuditStatus (agw.key = "audit_status", api.body= "audit_status") , // Audit status, return in the main state, you need to pay attention. If the main state is under review, you need to show the status under review.
4 : optional SellInfo SellInfo (agw.key = "sell_info", api.body= "sell_info") ,
5 : optional i64 SpaceID (agw.js_conv="str", api.js_conv="true", agw.cli_conv="str", agw.key = "space_id", api.body= "space_id"),
6 : optional Topic Topic (agw.key = "topic", api.body= "topic") , // 详情页返回
7 : optional bool CanDuplicate (agw.key = "can_duplicate", api.body= "can_duplicate") , // 详情页返回
6 : optional Topic Topic (agw.key = "topic", api.body= "topic") , // Details page Back
7 : optional bool CanDuplicate (agw.key = "can_duplicate", api.body= "can_duplicate") , // Details page Back
8 : optional product_common.CommercialSetting CommercialSetting (agw.key = "commercial_setting", api.body= "commercial_setting")
20: optional PluginExtraInfo PluginExtra (agw.key = "plugin_extra", api.body= "plugin_extra") ,
21: optional BotExtraInfo BotExtra (agw.key = "bot_extra", api.body= "bot_extra")
@@ -501,18 +501,18 @@ struct GetProductDetailData { // 下架的商品只返回非 optional 字段
}
struct GetUserFavoriteListV2Request {
1 : optional string CursorID (api.query = "cursor_id") , // 第一页不传后续调用时传上一次返回的cursor_id
1 : optional string CursorID (api.query = "cursor_id") , // The first page is not passed, and the last returned cursor_id is passed when subsequent calls are made
2 : required i32 PageSize (api.query = "page_size") ,
3 : optional product_common.ProductEntityType EntityType (api.query = "entity_type"),
4 : required product_common.SortType SortType (api.query = "sort_type") ,
5 : optional string Keyword (api.query = "keyword") , // 不为空则搜索
6 : optional product_common.FavoriteListSource Source (api.query = "source") , // 列表页 tab
7 : optional bool NeedUserTriggerConfig (api.query = "need_user_trigger_config") // 是否需要查询用户对Bot的触发器配置为true时才会返回EntityUserTriggerConfig
8 : optional i64 BeginAt (api.query = "begin_at", api.js_conv="true") , // 筛选收藏时间
9 : optional i64 EndAt (api.query = "end_at", api.js_conv="true") , // 筛选收藏时间
5 : optional string Keyword (api.query = "keyword") , // Search keyword,optional
6 : optional product_common.FavoriteListSource Source (api.query = "source") , // List page tab
7 : optional bool NeedUserTriggerConfig (api.query = "need_user_trigger_config") // Whether you need to query the user's trigger configuration for the Bot, when true, it will return EntityUserTriggerConfig
8 : optional i64 BeginAt (api.query = "begin_at", api.js_conv="true") , // Filter collection time
9 : optional i64 EndAt (api.query = "end_at", api.js_conv="true") , // Filter collection time
10 : optional list<product_common.ProductEntityType> EntityTypes (api.query = "entity_types"),
11 : optional i64 OrganizationID (agw.js_conv="str", agw.cli_conv="str", api.query = "organization_id"), // 组织ID企业版想获取用户收藏的所有内容时需传递
11 : optional i64 OrganizationID (agw.js_conv="str", agw.cli_conv="str", api.query = "organization_id"), // Organization ID, Enterprise Edition needs to be passed when you want to get all the content in the user's collection
255: optional base.Base Base ,
}
@@ -530,7 +530,7 @@ struct GetUserFavoriteListDataV2{
1: list<product_common.FavoriteEntity> FavoriteEntities (agw.key = "favorite_entities", api.body="favorite_entities"),
2: string CursorID (agw.key = "cursor_id", api.body="cursor_id") ,
3: bool HasMore (agw.key = "has_more", api.body="has_more") ,
// 用户定时任务配置对应flow.bot.task服务的TriggerEnabled
// User timed task configuration, corresponding to flow.bot TriggerEnabled of the task service
4: map<i64, UserTriggerConfig> EntityUserTriggerConfig (agw.key = "entity_user_trigger_config", api.body="entity_user_trigger_config"), // key: entity_id; value: UserTriggerConfig
}
@@ -563,7 +563,7 @@ struct DuplicateProductResponse {
}
struct DuplicateProductData {
// 复制后的新id
// New ID after copy
1: i64 NewEntityID (agw.js_conv="str", api.js_conv="str", agw.cli_conv="str", api.body = "new_entity_id")
2: optional i64 NewPluginID (agw.js_conv="str", api.js_conv="str", agw.cli_conv="str", api.body = "new_plugin_id") // workflow对应的插件id
2: optional i64 NewPluginID (agw.js_conv="str", api.js_conv="str", agw.cli_conv="str", api.body = "new_plugin_id") // Plugin ID for workflow
}

View File

@@ -2,14 +2,14 @@ include "../../base.thrift"
namespace go flow.marketplace.marketplace_common
struct Price {
1: i64 Amount (agw.key = "amount",agw.js_conv="str",api.js_conv="true",agw.cli_conv="str",api.body= "amount"), // 金额
2: string Currency (agw.key = "currency",api.body= "currency") , // 币种如USD、CNY
3: byte DecimalNum (agw.key = "decimal_num",api.body= "decimal_num") , // 小数位数
1: i64 Amount (agw.key = "amount",agw.js_conv="str",api.js_conv="true",agw.cli_conv="str",api.body= "amount"), // amount
2: string Currency (agw.key = "currency",api.body= "currency") , // Currencies such as USD and CNY
3: byte DecimalNum (agw.key = "decimal_num",api.body= "decimal_num") , // decimal places
}
enum FollowType {
Unknown = 0, // 无关系
Followee = 1, // 关注
Follower = 2, // 粉丝
MutualFollow = 3, // 互相关注
Unknown = 0, // Unknown
Followee = 1, // followee
Follower = 2, // follower
MutualFollow = 3, // MutualFollow
}