chore: replace all cn comments to en version by volc api (#313)
This commit is contained in:
@@ -13,15 +13,15 @@ import (
|
||||
type ConfigStatus int64
|
||||
|
||||
const (
|
||||
// 已配置
|
||||
// Configured
|
||||
ConfigStatus_Configured ConfigStatus = 1
|
||||
// 未配置
|
||||
// Not configured
|
||||
ConfigStatus_NotConfigured ConfigStatus = 2
|
||||
// Token发生变化
|
||||
// Token changes
|
||||
ConfigStatus_Disconnected ConfigStatus = 3
|
||||
// 配置中,授权中
|
||||
// Configuring, authorizing
|
||||
ConfigStatus_Configuring ConfigStatus = 4
|
||||
// 需要重新配置 https://bytedance.larkoffice.com/docx/KXNed5NWUoplVBxXdQxcfPNwnrf#Gn7dd2KoaoNZo6xw1tkcT92znbG
|
||||
// Need to reconfigure https://bytedance.larkoffice.com/docx/KXNed5NWUoplVBxXdQxcfPNwnrf#Gn7dd2KoaoNZo6xw1tkcT92znbG
|
||||
ConfigStatus_NeedReconfiguring ConfigStatus = 5
|
||||
)
|
||||
|
||||
@@ -75,19 +75,19 @@ func (p *ConfigStatus) Value() (driver.Value, error) {
|
||||
type BindType int64
|
||||
|
||||
const (
|
||||
// 无需绑定
|
||||
// No binding required
|
||||
BindType_NoBindRequired BindType = 1
|
||||
// Auth绑定
|
||||
// Auth binding
|
||||
BindType_AuthBind BindType = 2
|
||||
// Kv绑定=
|
||||
// Kv binding =
|
||||
BindType_KvBind BindType = 3
|
||||
// Kv并Auth授权
|
||||
// Kv and Auth authorization
|
||||
BindType_KvAuthBind BindType = 4
|
||||
// api渠道绑定
|
||||
// API channel binding
|
||||
BindType_ApiBind BindType = 5
|
||||
BindType_WebSDKBind BindType = 6
|
||||
BindType_StoreBind BindType = 7
|
||||
// 授权和配置各一个按钮
|
||||
// One button each for authorization and configuration
|
||||
BindType_AuthAndConfig BindType = 8
|
||||
)
|
||||
|
||||
@@ -195,11 +195,11 @@ func (p *AllowPublishStatus) Value() (driver.Value, error) {
|
||||
type BotConnectorStatus int64
|
||||
|
||||
const (
|
||||
// 正常
|
||||
// Normal
|
||||
BotConnectorStatus_Normal BotConnectorStatus = 0
|
||||
// 审核中
|
||||
// Under review.
|
||||
BotConnectorStatus_InReview BotConnectorStatus = 1
|
||||
// 已下线
|
||||
// offline
|
||||
BotConnectorStatus_Offline BotConnectorStatus = 2
|
||||
)
|
||||
|
||||
@@ -245,11 +245,11 @@ func (p *BotConnectorStatus) Value() (driver.Value, error) {
|
||||
type UserAuthStatus int64
|
||||
|
||||
const (
|
||||
// 已授权
|
||||
// Authorized
|
||||
UserAuthStatus_Authorized UserAuthStatus = 1
|
||||
// 未授权
|
||||
// unauthorized
|
||||
UserAuthStatus_UnAuthorized UserAuthStatus = 2
|
||||
// 授权中
|
||||
// Authorizing
|
||||
UserAuthStatus_Authorizing UserAuthStatus = 3
|
||||
)
|
||||
|
||||
@@ -1002,49 +1002,49 @@ func (p *PublishConnectorListRequest) String() string {
|
||||
}
|
||||
|
||||
type PublishConnectorInfo struct {
|
||||
// 发布平台 connector_id
|
||||
// Publishing Platform connector_id
|
||||
ID string `thrift:"id,1,required" form:"id,required" json:"id,required" query:"id,required"`
|
||||
// 发布平台名称
|
||||
// publishing platform name
|
||||
Name string `thrift:"name,2,required" form:"name,required" json:"name,required" query:"name,required"`
|
||||
// 发布平台图标
|
||||
// publishing platform icon
|
||||
Icon string `thrift:"icon,3,required" form:"icon,required" json:"icon,required" query:"icon,required"`
|
||||
// 发布平台描述
|
||||
// Publish Platform Description
|
||||
Desc string `thrift:"desc,4,required" form:"desc,required" json:"desc,required" query:"desc,required"`
|
||||
// 分享链接
|
||||
// share link
|
||||
ShareLink string `thrift:"share_link,5,required" form:"share_link,required" json:"share_link,required" query:"share_link,required"`
|
||||
// 配置状态 1:已绑定 2:未绑定
|
||||
// Configuration Status 1: Bound 2: Unbound
|
||||
ConfigStatus ConfigStatus `thrift:"config_status,6,required" form:"config_status,required" json:"config_status,required" query:"config_status,required"`
|
||||
// 最近发布时间
|
||||
// Last Post
|
||||
LastPublishTime int64 `thrift:"last_publish_time,7,required" form:"last_publish_time,required" json:"last_publish_time,required" query:"last_publish_time,required"`
|
||||
// 绑定类型 1:无需绑定 2:Auth 3: kv值
|
||||
// Binding type 1: No binding required 2: Auth 3: kv value
|
||||
BindType BindType `thrift:"bind_type,8,required" form:"bind_type,required" json:"bind_type,required" query:"bind_type,required"`
|
||||
// 绑定信息 key字段名 value是值
|
||||
// Binding information key field name value is value
|
||||
BindInfo map[string]string `thrift:"bind_info,9,required" form:"bind_info,required" json:"bind_info,required" query:"bind_info,required"`
|
||||
// 绑定id信息,用于解绑使用
|
||||
// Bind id information for unbinding and use
|
||||
BindID *string `thrift:"bind_id,10,optional" form:"bind_id" json:"bind_id,omitempty" query:"bind_id"`
|
||||
// 用户授权登陆信息
|
||||
// user authorization login information
|
||||
AuthLoginInfo *AuthLoginInfo `thrift:"auth_login_info,11,optional" form:"auth_login_info" json:"auth_login_info,omitempty" query:"auth_login_info"`
|
||||
// 是否为上次发布
|
||||
// Is it the last release?
|
||||
IsLastPublished *bool `thrift:"is_last_published,12,optional" form:"is_last_published" json:"is_last_published,omitempty" query:"is_last_published"`
|
||||
// bot渠道状态
|
||||
// bot channel status
|
||||
ConnectorStatus *BotConnectorStatus `thrift:"connector_status,13,optional" form:"connector_status" json:"connector_status,omitempty" query:"connector_status"`
|
||||
// 隐私政策
|
||||
// Privacy Policy
|
||||
PrivacyPolicy *string `thrift:"privacy_policy,14,optional" form:"privacy_policy" json:"privacy_policy,omitempty" query:"privacy_policy"`
|
||||
// 用户协议
|
||||
// User Agreement
|
||||
UserAgreement *string `thrift:"user_agreement,15,optional" form:"user_agreement" json:"user_agreement,omitempty" query:"user_agreement"`
|
||||
// 渠道是否允许发布
|
||||
// Is the channel allowed to publish?
|
||||
AllowPunish *AllowPublishStatus `thrift:"allow_punish,16,optional" form:"allow_punish" json:"allow_punish,omitempty" query:"allow_punish"`
|
||||
// 不允许发布原因
|
||||
// Reason for not allowing posting
|
||||
NotAllowReason *string `thrift:"not_allow_reason,17,optional" form:"not_allow_reason" json:"not_allow_reason,omitempty" query:"not_allow_reason"`
|
||||
// 配置状态toast
|
||||
// Configuration status toast
|
||||
ConfigStatusToast *string `thrift:"config_status_toast,18,optional" form:"config_status_toast" json:"config_status_toast,omitempty" query:"config_status_toast"`
|
||||
// 品牌 ID
|
||||
// Brand ID
|
||||
BrandID *int64 `thrift:"brand_id,19,optional" form:"brand_id" json:"brand_id,omitempty" query:"brand_id"`
|
||||
// 支持商业化
|
||||
// Support commercialization
|
||||
SupportMonetization *bool `thrift:"support_monetization,20,optional" form:"support_monetization" json:"support_monetization,omitempty" query:"support_monetization"`
|
||||
// 1: 已授权,2:未授权. 目前仅 bind_type == 8 时这个字段才有 https://bytedance.larkoffice.com/docx/KXNed5NWUoplVBxXdQxcfPNwnrf#Gn7dd2KoaoNZo6xw1tkcT92znbG
|
||||
// 1: Authorized, 2: Unauthorized. Currently, this field is only available bind_type == 8 https://bytedance.larkoffice.com/docx/KXNed5NWUoplVBxXdQxcfPNwnrf#Gn7dd2KoaoNZo6xw1tkcT92znbG
|
||||
AuthStatus *UserAuthStatus `thrift:"auth_status,21,optional" form:"auth_status" json:"auth_status,omitempty" query:"auth_status"`
|
||||
// 补全信息按钮的 url
|
||||
// URL of the complete info button
|
||||
ToCompleteInfoURL *string `thrift:"to_complete_info_url,22,optional" form:"to_complete_info_url" json:"to_complete_info_url,omitempty" query:"to_complete_info_url"`
|
||||
}
|
||||
|
||||
@@ -2344,7 +2344,7 @@ func (p *PublishConnectorInfo) String() string {
|
||||
}
|
||||
|
||||
type SubmitBotMarketOption struct {
|
||||
// 是否可以公开编排
|
||||
// Is it possible to publicly orchestrate?
|
||||
CanOpenSource *bool `thrift:"can_open_source,1,optional" form:"can_open_source" json:"can_open_source,omitempty" query:"can_open_source"`
|
||||
}
|
||||
|
||||
@@ -2495,11 +2495,11 @@ func (p *SubmitBotMarketOption) String() string {
|
||||
}
|
||||
|
||||
type SubmitBotMarketConfig struct {
|
||||
// 是否发布到market
|
||||
// Whether to publish to the market
|
||||
NeedSubmit *bool `thrift:"need_submit,1,optional" form:"need_submit" json:"need_submit,omitempty" query:"need_submit"`
|
||||
// 是否开源
|
||||
// Is it open source?
|
||||
OpenSource *bool `thrift:"open_source,2,optional" form:"open_source" json:"open_source,omitempty" query:"open_source"`
|
||||
// 分类
|
||||
// classification
|
||||
CategoryID *string `thrift:"category_id,3,optional" form:"category_id" json:"category_id,omitempty" query:"category_id"`
|
||||
}
|
||||
|
||||
@@ -3011,7 +3011,7 @@ func (p *ConnectorBrandInfo) String() string {
|
||||
}
|
||||
|
||||
type PublishTips struct {
|
||||
// 成本承担提醒
|
||||
// cost-bearing reminder
|
||||
CostTips *string `thrift:"cost_tips,1,optional" form:"cost_tips" json:"cost_tips,omitempty" query:"cost_tips"`
|
||||
}
|
||||
|
||||
@@ -3166,11 +3166,11 @@ type PublishConnectorListResponse struct {
|
||||
Msg string `thrift:"msg,2" form:"msg" json:"msg" query:"msg"`
|
||||
PublishConnectorList []*PublishConnectorInfo `thrift:"publish_connector_list,3" form:"publish_connector_list" json:"publish_connector_list" query:"publish_connector_list"`
|
||||
SubmitBotMarketOption *SubmitBotMarketOption `thrift:"submit_bot_market_option,4,optional" form:"submit_bot_market_option" json:"submit_bot_market_option,omitempty" query:"submit_bot_market_option"`
|
||||
// 上次提交market的配置
|
||||
// The configuration of the last submitted market
|
||||
LastSubmitConfig *SubmitBotMarketConfig `thrift:"last_submit_config,5,optional" form:"last_submit_config" json:"last_submit_config,omitempty" query:"last_submit_config"`
|
||||
// 渠道品牌信息
|
||||
// Channel brand information
|
||||
ConnectorBrandInfoMap map[int64]*ConnectorBrandInfo `thrift:"connector_brand_info_map,6" form:"connector_brand_info_map" json:"connector_brand_info_map" query:"connector_brand_info_map"`
|
||||
// 发布提醒
|
||||
// post alert
|
||||
PublishTips *PublishTips `thrift:"publish_tips,7,optional" form:"publish_tips" json:"publish_tips,omitempty" query:"publish_tips"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user