model

package
v0.1.104 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiTemplateVariable

type ApiTemplateVariable struct {

	// 变量id
	Id *int64 `json:"id,omitempty"`

	// 用户名
	UserName *string `json:"user_name,omitempty"`

	// 模板名称
	TempName *string `json:"temp_name,omitempty"`

	// 变量索引
	VariableIndex *int32 `json:"variable_index,omitempty"`

	// 变量类型
	VariableType *string `json:"variable_type,omitempty"`

	// 变量长度
	VariableLength *int32 `json:"variable_length,omitempty"`

	// 变量描述
	VariableDesc *string `json:"variable_desc,omitempty"`
}

func (ApiTemplateVariable) String

func (o ApiTemplateVariable) String() string

type CreateAppRequest

type CreateAppRequest struct {
	Body *SmsAppAddReq `json:"body,omitempty"`
}

CreateAppRequest Request Object

func (CreateAppRequest) String

func (o CreateAppRequest) String() string

type CreateAppResponse

type CreateAppResponse struct {

	// 应用KEY
	AppKey *string `json:"app_key,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 应用主键ID
	Id *string `json:"id,omitempty"`

	// Application Secret,应用密钥
	AppSecret      *string `json:"app_secret,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateAppResponse Response Object

func (CreateAppResponse) String

func (o CreateAppResponse) String() string

type CreateSignatureRequest

type CreateSignatureRequest struct {
	Body *SmsSignatureReq `json:"body,omitempty"`
}

CreateSignatureRequest Request Object

func (CreateSignatureRequest) String

func (o CreateSignatureRequest) String() string

type CreateSignatureResponse

type CreateSignatureResponse struct {

	// 签名主键ID
	Id *string `json:"id,omitempty"`

	// 签名ID
	SignatureId *string `json:"signature_id,omitempty"`

	// 签名名称
	SignatureName  *string `json:"signature_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateSignatureResponse Response Object

func (CreateSignatureResponse) String

func (o CreateSignatureResponse) String() string

type CreateTemplateRequest

type CreateTemplateRequest struct {
	Body *SmsTemplateReq `json:"body,omitempty"`
}

CreateTemplateRequest Request Object

func (CreateTemplateRequest) String

func (o CreateTemplateRequest) String() string

type CreateTemplateResponse

type CreateTemplateResponse struct {

	// 模板主键ID
	Id *string `json:"id,omitempty"`

	// 模板名称
	TemplateName   *string `json:"template_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

CreateTemplateResponse Response Object

func (CreateTemplateResponse) String

func (o CreateTemplateResponse) String() string

type DeleteSignatureRequest

type DeleteSignatureRequest struct {

	// 签名ID
	Id string `json:"id"`
}

DeleteSignatureRequest Request Object

func (DeleteSignatureRequest) String

func (o DeleteSignatureRequest) String() string

type DeleteSignatureResponse

type DeleteSignatureResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteSignatureResponse Response Object

func (DeleteSignatureResponse) String

func (o DeleteSignatureResponse) String() string

type DeleteTemplateRequest

type DeleteTemplateRequest struct {

	// 模板ID
	Id string `json:"id"`
}

DeleteTemplateRequest Request Object

func (DeleteTemplateRequest) String

func (o DeleteTemplateRequest) String() string

type DeleteTemplateResponse

type DeleteTemplateResponse struct {
	HttpStatusCode int `json:"-"`
}

DeleteTemplateResponse Response Object

func (DeleteTemplateResponse) String

func (o DeleteTemplateResponse) String() string

type EnableSignatureRequest

type EnableSignatureRequest struct {

	// 签名ID
	Id string `json:"id"`
}

EnableSignatureRequest Request Object

func (EnableSignatureRequest) String

func (o EnableSignatureRequest) String() string

type EnableSignatureResponse

type EnableSignatureResponse struct {
	HttpStatusCode int `json:"-"`
}

EnableSignatureResponse Response Object

func (EnableSignatureResponse) String

func (o EnableSignatureResponse) String() string

type ListAppDetailsRequest

type ListAppDetailsRequest struct {

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 数量
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 地域 1. cn:国内 2. intl:国际
	Region *string `json:"region,omitempty"`

	// 排序方式 1. desc:降序 2. asc:升序
	SortDir *string `json:"sort_dir,omitempty"`

	// 排序字段
	SortKey *string `json:"sort_key,omitempty"`

	// 应用状态   1. CREATED:待上线。应用暂未创建成功,请稍候。   2. SUSPENDED:暂停。无法发起业务请求。当客户所发短信内容触发业务违规,或客户申请退订短信业务时,运营经理会将客户短信应用暂停。   3. LAUNCHED:正常。应用添加成功,可以正常使用。
	Status *string `json:"status,omitempty"`
}

ListAppDetailsRequest Request Object

func (ListAppDetailsRequest) String

func (o ListAppDetailsRequest) String() string

type ListAppDetailsResponse

type ListAppDetailsResponse struct {

	// 查询结果
	Results *[]SmsAppQueryResp `json:"results,omitempty"`

	// 总数
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListAppDetailsResponse Response Object

func (ListAppDetailsResponse) String

func (o ListAppDetailsResponse) String() string

type ListSendCountryDetailsRequest

type ListSendCountryDetailsRequest struct {

	// 国家(英文)
	CountryNameEn *string `json:"country_name_en,omitempty"`

	// 国家(中文)
	CountryNameZh *string `json:"country_name_zh,omitempty"`
}

ListSendCountryDetailsRequest Request Object

func (ListSendCountryDetailsRequest) String

type ListSendCountryDetailsResponse

type ListSendCountryDetailsResponse struct {
	Body           *[]SmsCountryResp `json:"body,omitempty"`
	HttpStatusCode int               `json:"-"`
}

ListSendCountryDetailsResponse Response Object

func (ListSendCountryDetailsResponse) String

type ListSignatureDetailsRequest

type ListSignatureDetailsRequest struct {

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 数量
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 签名ID
	SignatureId *string `json:"signature_id,omitempty"`

	// 签名名称
	SignatureName *string `json:"signature_name,omitempty"`

	// 签名类型。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
	SignatureType *string `json:"signature_type,omitempty"`

	// 地域
	Site *string `json:"site,omitempty"`

	// 排序方式 1. desc:降序 2. asc:升序
	SortDir *string `json:"sort_dir,omitempty"`

	// 排序字段
	SortKey *string `json:"sort_key,omitempty"`

	// 状态 1. PENDING_REVIEW:待审核 2. PROCESSING:内容审核通过,签名处理中 3. REVIEW_PASSED:处理完毕 4. REVIEW_NOT_PASS:审核不通过 5. TO_BE_ACTIVATED:待激活 6. PENDING_ACTIVATE:激活审核中
	Status *string `json:"status,omitempty"`
}

ListSignatureDetailsRequest Request Object

func (ListSignatureDetailsRequest) String

type ListSignatureDetailsResponse

type ListSignatureDetailsResponse struct {

	// 查询结果
	Results *[]SmsSignatureResp `json:"results,omitempty"`

	// 总数
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListSignatureDetailsResponse Response Object

func (ListSignatureDetailsResponse) String

type ListTemplateDetailsRequest

type ListTemplateDetailsRequest struct {

	// 应用key
	AppKey *string `json:"app_key,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 开始时间
	StartTime *string `json:"start_time,omitempty"`

	// 结束时间
	EndTime *string `json:"end_time,omitempty"`

	// 数量
	Limit *int32 `json:"limit,omitempty"`

	// 偏移量
	Offset *int32 `json:"offset,omitempty"`

	// 流程状态 1. Adopted: 通过 2. Reviewing: 审核中 3. Reject: 拒绝
	FlowStatus *string `json:"flow_status,omitempty"`

	// 是否存在变量
	HasVariable *string `json:"has_variable,omitempty"`

	// 地域 1. cn:国内 2. intl:国际
	Region *string `json:"region,omitempty"`

	// 签名名称
	SignName *string `json:"sign_name,omitempty"`

	// 排序方式 1. desc:降序 2. asc:升序
	SortDir *string `json:"sort_dir,omitempty"`

	// 排序字段
	SortKey *string `json:"sort_key,omitempty"`

	// 模板ID
	TemplateId *string `json:"template_id,omitempty"`

	// 模板名称
	TemplateName *string `json:"template_name,omitempty"`

	// 模板类型 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
	TemplateType *string `json:"template_type,omitempty"`
}

ListTemplateDetailsRequest Request Object

func (ListTemplateDetailsRequest) String

type ListTemplateDetailsResponse

type ListTemplateDetailsResponse struct {

	// 查询结果
	Results *[]SmsTemplateResp `json:"results,omitempty"`

	// 总数
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListTemplateDetailsResponse Response Object

func (ListTemplateDetailsResponse) String

type ListTemplateVarilableDetailsRequest

type ListTemplateVarilableDetailsRequest struct {

	// 模板ID
	Id string `json:"id"`
}

ListTemplateVarilableDetailsRequest Request Object

func (ListTemplateVarilableDetailsRequest) String

type ListTemplateVarilableDetailsResponse

type ListTemplateVarilableDetailsResponse struct {

	// 查询结果
	Results *[]ApiTemplateVariable `json:"results,omitempty"`

	// 总数
	Total          *int64 `json:"total,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ListTemplateVarilableDetailsResponse Response Object

func (ListTemplateVarilableDetailsResponse) String

type ShowAppCountRequest

type ShowAppCountRequest struct {

	// 地域 1. cn:国内 2. intl:国际
	Region string `json:"region"`
}

ShowAppCountRequest Request Object

func (ShowAppCountRequest) String

func (o ShowAppCountRequest) String() string

type ShowAppCountResponse

type ShowAppCountResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 已使用数
	Used           *int32 `json:"used,omitempty"`
	HttpStatusCode int    `json:"-"`
}

ShowAppCountResponse Response Object

func (ShowAppCountResponse) String

func (o ShowAppCountResponse) String() string

type ShowAppRequest

type ShowAppRequest struct {

	// 应用ID
	Id string `json:"id"`
}

ShowAppRequest Request Object

func (ShowAppRequest) String

func (o ShowAppRequest) String() string

type ShowAppResponse

type ShowAppResponse struct {

	// 应用主键ID,用于获取、修改应用的唯一标识
	Id *string `json:"id,omitempty"`

	// 创建时间[yyyy-MM-dd HH:mm:ss]
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间[yyyy-MM-dd HH:mm:ss]
	UpdateTime *string `json:"update_time,omitempty"`

	// 租户customer id
	CustomerId *string `json:"customer_id,omitempty"`

	// 租户resource id
	ResourceId *string `json:"resource_id,omitempty"`

	// 租户开发者账号
	DeveloperAccount *string `json:"developer_account,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// omp应用名称
	OmpAppName *string `json:"omp_app_name,omitempty"`

	// 应用key
	AppKey *string `json:"app_key,omitempty"`

	// 上行短信地址
	UpLinkAddr *string `json:"up_link_addr,omitempty"`

	// 应用状态   CREATED:待上线。应用暂未创建成功,请稍候。   SUSPENDED:暂停。无法发起业务请求。当客户所发短信内容触发业务违规,或客户申请退订短信业务时,运营经理会将客户短信应用暂停。   LAUNCHED:正常。应用添加成功,可以正常使用。
	Status *string `json:"status,omitempty"`

	// 行业类型
	Industry *int32 `json:"industry,omitempty"`

	// 地域 1. cn:国内 2. intl:国际
	Region *string `json:"region,omitempty"`

	// 国际/港澳台短信通道号
	IntlChannelNum *string `json:"intl_channel_num,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目名称
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// IP白名单
	IpWhiteList *string `json:"ip_white_list,omitempty"`

	// 接入地址
	AppAccessAddr *string `json:"app_access_addr,omitempty"`

	// 协议
	Protocol *string `json:"protocol,omitempty"`

	// 平台
	Platform *string `json:"platform,omitempty"`

	// 是否支持多OMP
	IsSupportMultiomp *bool `json:"is_support_multiomp,omitempty"`

	Tenant         *TenantBasic `json:"tenant,omitempty"`
	HttpStatusCode int          `json:"-"`
}

ShowAppResponse Response Object

func (ShowAppResponse) String

func (o ShowAppResponse) String() string

type ShowSignatureFileRequest

type ShowSignatureFileRequest struct {

	// 营业执照ID
	FileId string `json:"file_id"`
}

ShowSignatureFileRequest Request Object

func (ShowSignatureFileRequest) String

func (o ShowSignatureFileRequest) String() string

type ShowSignatureFileResponse

type ShowSignatureFileResponse struct {

	// 文件ID
	FileId *string `json:"file_id,omitempty"`

	// 文件名称
	FileName *string `json:"file_name,omitempty"`

	// 文件引用
	FileRef *int32 `json:"file_ref,omitempty"`

	// 文件大小
	FileSize *int32 `json:"file_size,omitempty"`

	// 文件类型
	FileType *int32 `json:"file_type,omitempty"`

	// 模块类型
	ModuleType *int32 `json:"module_type,omitempty"`

	// 操作人
	Operator *string `json:"operator,omitempty"`

	// 描述
	FileDesc *string `json:"file_desc,omitempty"`

	// 更新时间
	UpdateTime     *string `json:"update_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSignatureFileResponse Response Object

func (ShowSignatureFileResponse) String

func (o ShowSignatureFileResponse) String() string

type ShowSignatureRequest

type ShowSignatureRequest struct {

	// 签名ID
	Id string `json:"id"`
}

ShowSignatureRequest Request Object

func (ShowSignatureRequest) String

func (o ShowSignatureRequest) String() string

type ShowSignatureResponse

type ShowSignatureResponse struct {

	// 签名主键id,用于获取、修改、删除、申请激活签名的唯一标识
	Id *string `json:"id,omitempty"`

	// 创建时间[yyyy-MM-dd HH:mm:ss]
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间[yyyy-MM-dd HH:mm:ss]
	UpdateTime *string `json:"update_time,omitempty"`

	// 租户customer id
	CustomerId *string `json:"customer_id,omitempty"`

	Tenant *TenantBasic `json:"tenant,omitempty"`

	// 签名名称
	SignatureName *string `json:"signature_name,omitempty"`

	// 签名id
	SignatureId *string `json:"signature_id,omitempty"`

	// 签名类型
	SignatureType *string `json:"signature_type,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 申请描述
	ApplyDesc *string `json:"apply_desc,omitempty"`

	// 国内短信通道号,仅当签名审核成功,运营人员配置完成后返回。
	ChannelNum *string `json:"channel_num,omitempty"`

	// 审核意见
	ReviewDesc *string `json:"review_desc,omitempty"`

	// 文件id
	FileId *string `json:"file_id,omitempty"`

	// 签名状态
	Status *string `json:"status,omitempty"`

	// 站点
	Site *string `json:"site,omitempty"`

	// 签名来源
	SignatureSource *int32 `json:"signature_source,omitempty"`

	// 是否涉及第三方权益
	IsInvolvedThird *string `json:"is_involved_third,omitempty"`

	// 授权委托书文件ID
	PowerAttorneyFileId *string `json:"power_attorney_file_id,omitempty"`

	// 催审状态
	UrgeStatus *string `json:"urge_status,omitempty"`

	// 催审时间
	UrgeTime *string `json:"urge_time,omitempty"`

	// 催审描述
	UrgeDesc *string `json:"urge_desc,omitempty"`

	// 应用key
	AppKey *string `json:"app_key,omitempty"`

	// 标题内容
	SourceTitleContent *string `json:"source_title_content,omitempty"`

	// 签名用途
	SignatureUsage *string `json:"signature_usage,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowSignatureResponse Response Object

func (ShowSignatureResponse) String

func (o ShowSignatureResponse) String() string

type ShowTemplateRequest

type ShowTemplateRequest struct {

	// 模板ID
	Id string `json:"id"`
}

ShowTemplateRequest Request Object

func (ShowTemplateRequest) String

func (o ShowTemplateRequest) String() string

type ShowTemplateResponse

type ShowTemplateResponse struct {

	// 模板主键ID,用于获取、修改、删除模板以及查询模板变量的唯一标识
	Id *string `json:"id,omitempty"`

	// 创建时间[yyyy-MM-dd HH:mm:ss]
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间[yyyy-MM-dd HH:mm:ss]
	UpdateTime *string `json:"update_time,omitempty"`

	// 租户customer id
	CustomerId *string `json:"customer_id,omitempty"`

	Tenant *TenantBasic `json:"tenant,omitempty"`

	// 模板名称
	TemplateName *string `json:"template_name,omitempty"`

	// 模板ID
	TemplateId *string `json:"template_id,omitempty"`

	// 模板类型
	TemplateType *string `json:"template_type,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 应用key
	AppKey *string `json:"app_key,omitempty"`

	// 签名主键id
	SignId *string `json:"sign_id,omitempty"`

	// 模板内容
	TemplateContent *string `json:"template_content,omitempty"`

	// 是否有变量
	HasVariable *string `json:"has_variable,omitempty"`

	// 申请描述
	TemplateDesc *string `json:"template_desc,omitempty"`

	// 审核意见
	ReviewDesc *string `json:"review_desc,omitempty"`

	// 审核人账号
	ReviewOrder *string `json:"review_order,omitempty"`

	// 流程状态
	FlowStatus *string `json:"flow_status,omitempty"`

	// 是否是通用模板
	UniversalTemplate *int32 `json:"universal_template,omitempty"`

	// 模板状态
	Status *string `json:"status,omitempty"`

	// 地域 1. cn:国内 2. intl:国际
	Region *string `json:"region,omitempty"`

	// 中括号类型 支持枚举值:  CN: 中文类型  GB: 英文类型
	Brackets *string `json:"brackets,omitempty"`

	// 站点
	Site *string `json:"site,omitempty"`

	// 催审状态
	UrgeStatus *string `json:"urge_status,omitempty"`

	// 催审时间
	UrgeTime *string `json:"urge_time,omitempty"`

	// 催审描述
	UrgeDesc *string `json:"urge_desc,omitempty"`

	// 发送国家1
	SendCountry1 *int64 `json:"send_country1,omitempty"`

	// 发送国家2
	SendCountry2 *int64 `json:"send_country2,omitempty"`

	// 发送国家3
	SendCountry3 *int64 `json:"send_country3,omitempty"`

	// 是否支持多OMP
	IsSupportMultiomp *bool `json:"is_support_multiomp,omitempty"`

	// 国家名称列表,返回发送国家前三名的国家名称,国家名称间以\"~\"分隔
	CountryName    *string `json:"country_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

ShowTemplateResponse Response Object

func (ShowTemplateResponse) String

func (o ShowTemplateResponse) String() string

type SmsAppAddReq

type SmsAppAddReq struct {

	// 应用名称
	AppName string `json:"app_name"`

	// 是否创建测试签名和模板。只有地域为国内时,该字段有效 true:是 false:否
	CreateSignAndTemplate *bool `json:"create_sign_and_template,omitempty"`

	// 企业项目ID,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目名称,默认为default
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// 地域 1. cn:国内 2. intl:国际
	Region string `json:"region"`

	// 上行回调地址。只有地域为国内时,
	UpLinkAddr *string `json:"up_link_addr,omitempty"`

	// 是否在返回体中显示app_secret字段
	ShowSecret *bool `json:"show_secret,omitempty"`
}

func (SmsAppAddReq) String

func (o SmsAppAddReq) String() string

type SmsAppQueryResp

type SmsAppQueryResp struct {

	// 应用主键ID,用于获取、修改应用的唯一标识
	Id *string `json:"id,omitempty"`

	// 创建时间[yyyy-MM-dd HH:mm:ss]
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间[yyyy-MM-dd HH:mm:ss]
	UpdateTime *string `json:"update_time,omitempty"`

	// 租户customer id
	CustomerId *string `json:"customer_id,omitempty"`

	// 租户resource id
	ResourceId *string `json:"resource_id,omitempty"`

	// 租户开发者账号
	DeveloperAccount *string `json:"developer_account,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// omp应用名称
	OmpAppName *string `json:"omp_app_name,omitempty"`

	// 应用key
	AppKey *string `json:"app_key,omitempty"`

	// 上行短信地址
	UpLinkAddr *string `json:"up_link_addr,omitempty"`

	// 应用状态   CREATED:待上线。应用暂未创建成功,请稍候。   SUSPENDED:暂停。无法发起业务请求。当客户所发短信内容触发业务违规,或客户申请退订短信业务时,运营经理会将客户短信应用暂停。   LAUNCHED:正常。应用添加成功,可以正常使用。
	Status *string `json:"status,omitempty"`

	// 行业类型
	Industry *int32 `json:"industry,omitempty"`

	// 地域 1. cn:国内 2. intl:国际
	Region *string `json:"region,omitempty"`

	// 国际/港澳台短信通道号
	IntlChannelNum *string `json:"intl_channel_num,omitempty"`

	// 企业项目ID
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目名称
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// IP白名单
	IpWhiteList *string `json:"ip_white_list,omitempty"`

	// 接入地址
	AppAccessAddr *string `json:"app_access_addr,omitempty"`

	// 协议
	Protocol *string `json:"protocol,omitempty"`

	// 平台
	Platform *string `json:"platform,omitempty"`

	// 是否支持多OMP
	IsSupportMultiomp *bool `json:"is_support_multiomp,omitempty"`

	Tenant *TenantBasic `json:"tenant,omitempty"`
}

func (SmsAppQueryResp) String

func (o SmsAppQueryResp) String() string

type SmsAppUpdateReq

type SmsAppUpdateReq struct {

	// 应用名称
	AppName string `json:"app_name"`

	// 是否创建测试签名和模板。只有地域为国内时,该字段有效 1. true:是 2. false:否
	CreateSignAndTemplate *bool `json:"create_sign_and_template,omitempty"`

	// 企业项目ID,默认为0
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 企业项目名称,默认为default
	EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`

	// 地域 1. cn:国内 2. intl:国际
	Region string `json:"region"`

	// 上行回调地址。只有地域为国内时,该字段有效
	UpLinkAddr *string `json:"up_link_addr,omitempty"`
}

func (SmsAppUpdateReq) String

func (o SmsAppUpdateReq) String() string

type SmsCountryResp

type SmsCountryResp struct {

	// 国家id
	CountryId *int32 `json:"country_id,omitempty"`

	// 国家(英文)
	CountryNameEn *string `json:"country_name_en,omitempty"`

	// 国家(中文)
	CountryNameZh *string `json:"country_name_zh,omitempty"`
}

func (SmsCountryResp) String

func (o SmsCountryResp) String() string

type SmsSignatureReq

type SmsSignatureReq struct {

	// 应用主键ID
	AppId string `json:"app_id"`

	// 申请说明
	ApplyDesc *string `json:"apply_desc,omitempty"`

	// 营业执照文件ID
	FileId *string `json:"file_id,omitempty"`

	// 是否涉及第三方权益 1. Yes: 是 2. No:
	IsInvolvedThird string `json:"is_involved_third"`

	// 授权委托书文件ID
	PowerAttorneyFileid *string `json:"power_attorney_fileid,omitempty"`

	// 签名名称
	SignatureName string `json:"signature_name"`

	// 签名来源。支持枚举值: 1. 0:企事业单位的全称或简称 2. 1:工信部备案网站的全称或简称 3. 2: APP应用的全称或简称 4. 3:公众号或小程序的全称或简称 5. 4:电商平台店铺名的全称或简称 6. 5:商标名的全称或简称
	SignatureSource int32 `json:"signature_source"`

	// 签名类型。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
	SignatureType string `json:"signature_type"`

	// 签名来源标题内容
	SourceTitleContent *string `json:"source_title_content,omitempty"`
}

func (SmsSignatureReq) String

func (o SmsSignatureReq) String() string

type SmsSignatureResp

type SmsSignatureResp struct {

	// 签名主键id,用于获取、修改、删除、申请激活签名的唯一标识
	Id *string `json:"id,omitempty"`

	// 创建时间[yyyy-MM-dd HH:mm:ss]
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间[yyyy-MM-dd HH:mm:ss]
	UpdateTime *string `json:"update_time,omitempty"`

	// 租户customer id
	CustomerId *string `json:"customer_id,omitempty"`

	Tenant *TenantBasic `json:"tenant,omitempty"`

	// 签名名称
	SignatureName *string `json:"signature_name,omitempty"`

	// 签名id
	SignatureId *string `json:"signature_id,omitempty"`

	// 签名类型
	SignatureType *string `json:"signature_type,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 申请描述
	ApplyDesc *string `json:"apply_desc,omitempty"`

	// 国内短信通道号,仅当签名审核成功,运营人员配置完成后返回。
	ChannelNum *string `json:"channel_num,omitempty"`

	// 审核意见
	ReviewDesc *string `json:"review_desc,omitempty"`

	// 文件id
	FileId *string `json:"file_id,omitempty"`

	// 签名状态
	Status *string `json:"status,omitempty"`

	// 站点
	Site *string `json:"site,omitempty"`

	// 签名来源
	SignatureSource *int32 `json:"signature_source,omitempty"`

	// 是否涉及第三方权益
	IsInvolvedThird *string `json:"is_involved_third,omitempty"`

	// 授权委托书文件ID
	PowerAttorneyFileId *string `json:"power_attorney_file_id,omitempty"`

	// 催审状态
	UrgeStatus *string `json:"urge_status,omitempty"`

	// 催审时间
	UrgeTime *string `json:"urge_time,omitempty"`

	// 催审描述
	UrgeDesc *string `json:"urge_desc,omitempty"`

	// 应用key
	AppKey *string `json:"app_key,omitempty"`

	// 标题内容
	SourceTitleContent *string `json:"source_title_content,omitempty"`

	// 签名用途
	SignatureUsage *string `json:"signature_usage,omitempty"`
}

func (SmsSignatureResp) String

func (o SmsSignatureResp) String() string

type SmsTemplateReq

type SmsTemplateReq struct {

	// 应用主键ID
	AppId string `json:"app_id"`

	// 中括号类型。支持枚举值: 1. CN: 中文类型 2. GB: 英文类型
	Brackets *string `json:"brackets,omitempty"`

	// 地域 1. cn:国内 2. intl:
	Region string `json:"region"`

	// 发送国家id列表,只有地域为国际时,该字段有效
	SendCountry *[]int64 `json:"send_country,omitempty"`

	// 签名主键ID,只有地域为国内时,该字段有效
	SignId *string `json:"sign_id,omitempty"`

	// 模板内容
	TemplateContent string `json:"template_content"`

	// 模板描述
	TemplateDesc *string `json:"template_desc,omitempty"`

	// 模板名称
	TemplateName string `json:"template_name"`

	// 模板类型。只有地域为国内时,该字段有效。支持枚举值: 1. VERIFY_CODE_TYPE: 验证码类 2. PROMOTION_TYPE: 推广类 3. NOTIFY_TYPE: 通知类
	TemplateType string `json:"template_type"`

	// 是否为通用模板 1. 0: 非通用模板 2. 1: 通用模板
	UniversalTemplate *int32 `json:"universal_template,omitempty"`

	// 模板参数
	VariableAttributes *[]SmsTemplateVariableAttrReq `json:"variable_attributes,omitempty"`
}

func (SmsTemplateReq) String

func (o SmsTemplateReq) String() string

type SmsTemplateResp

type SmsTemplateResp struct {

	// 模板主键ID,用于获取、修改、删除模板以及查询模板变量的唯一标识
	Id *string `json:"id,omitempty"`

	// 创建时间[yyyy-MM-dd HH:mm:ss]
	CreateTime *string `json:"create_time,omitempty"`

	// 更新时间[yyyy-MM-dd HH:mm:ss]
	UpdateTime *string `json:"update_time,omitempty"`

	// 租户customer id
	CustomerId *string `json:"customer_id,omitempty"`

	Tenant *TenantBasic `json:"tenant,omitempty"`

	// 模板名称
	TemplateName *string `json:"template_name,omitempty"`

	// 模板ID
	TemplateId *string `json:"template_id,omitempty"`

	// 模板类型
	TemplateType *string `json:"template_type,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 应用key
	AppKey *string `json:"app_key,omitempty"`

	// 签名主键id
	SignId *string `json:"sign_id,omitempty"`

	// 模板内容
	TemplateContent *string `json:"template_content,omitempty"`

	// 是否有变量
	HasVariable *string `json:"has_variable,omitempty"`

	// 申请描述
	TemplateDesc *string `json:"template_desc,omitempty"`

	// 审核意见
	ReviewDesc *string `json:"review_desc,omitempty"`

	// 审核人账号
	ReviewOrder *string `json:"review_order,omitempty"`

	// 流程状态
	FlowStatus *string `json:"flow_status,omitempty"`

	// 是否是通用模板
	UniversalTemplate *int32 `json:"universal_template,omitempty"`

	// 模板状态
	Status *string `json:"status,omitempty"`

	// 地域 1. cn:国内 2. intl:国际
	Region *string `json:"region,omitempty"`

	// 中括号类型 支持枚举值:  CN: 中文类型  GB: 英文类型
	Brackets *string `json:"brackets,omitempty"`

	// 站点
	Site *string `json:"site,omitempty"`

	// 催审状态
	UrgeStatus *string `json:"urge_status,omitempty"`

	// 催审时间
	UrgeTime *string `json:"urge_time,omitempty"`

	// 催审描述
	UrgeDesc *string `json:"urge_desc,omitempty"`

	// 发送国家1
	SendCountry1 *int64 `json:"send_country1,omitempty"`

	// 发送国家2
	SendCountry2 *int64 `json:"send_country2,omitempty"`

	// 发送国家3
	SendCountry3 *int64 `json:"send_country3,omitempty"`

	// 是否支持多OMP
	IsSupportMultiomp *bool `json:"is_support_multiomp,omitempty"`

	// 国家名称列表,返回发送国家前三名的国家名称,国家名称间以\"~\"分隔
	CountryName *string `json:"country_name,omitempty"`
}

func (SmsTemplateResp) String

func (o SmsTemplateResp) String() string

type SmsTemplateVariableAttrReq

type SmsTemplateVariableAttrReq struct {

	// 变量说明,当变量类型为TEXT时,必填
	VariableDesc *string `json:"variable_desc,omitempty"`

	// 变量索引,对应模板内容变量索引
	VariableIndex int32 `json:"variable_index"`

	// 变量类型,目前支持:PHONE|CHARDIGIT|DATETIME|MONEY|TEXT|NEWTEXT|LONGTEXT
	VariableType string `json:"variable_type"`
}

func (SmsTemplateVariableAttrReq) String

type TenantBasic

type TenantBasic struct {

	// 租户custom id
	CustomerId *string `json:"customer_id,omitempty"`

	// 租户custom name
	CustomerName *string `json:"customer_name,omitempty"`

	// 租户企业名称
	EnterpriseName *string `json:"enterprise_name,omitempty"`
}

func (TenantBasic) String

func (o TenantBasic) String() string

type UpdateAppRequest

type UpdateAppRequest struct {

	// 应用主键ID
	Id string `json:"id"`

	Body *SmsAppUpdateReq `json:"body,omitempty"`
}

UpdateAppRequest Request Object

func (UpdateAppRequest) String

func (o UpdateAppRequest) String() string

type UpdateAppResponse

type UpdateAppResponse struct {

	// 应用KEY
	AppKey *string `json:"app_key,omitempty"`

	// 应用名称
	AppName *string `json:"app_name,omitempty"`

	// 应用主键ID
	Id             *string `json:"id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateAppResponse Response Object

func (UpdateAppResponse) String

func (o UpdateAppResponse) String() string

type UpdateSignatureRequest

type UpdateSignatureRequest struct {

	// 签名ID
	Id string `json:"id"`

	Body *SmsSignatureReq `json:"body,omitempty"`
}

UpdateSignatureRequest Request Object

func (UpdateSignatureRequest) String

func (o UpdateSignatureRequest) String() string

type UpdateSignatureResponse

type UpdateSignatureResponse struct {

	// 签名主键ID
	Id *string `json:"id,omitempty"`

	// 签名ID
	SignatureId *string `json:"signature_id,omitempty"`

	// 签名名称
	SignatureName  *string `json:"signature_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateSignatureResponse Response Object

func (UpdateSignatureResponse) String

func (o UpdateSignatureResponse) String() string

type UpdateTemplateRequest

type UpdateTemplateRequest struct {

	// 模板ID
	Id string `json:"id"`

	Body *SmsTemplateReq `json:"body,omitempty"`
}

UpdateTemplateRequest Request Object

func (UpdateTemplateRequest) String

func (o UpdateTemplateRequest) String() string

type UpdateTemplateResponse

type UpdateTemplateResponse struct {

	// 模板主键ID
	Id *string `json:"id,omitempty"`

	// 模板名称
	TemplateName   *string `json:"template_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UpdateTemplateResponse Response Object

func (UpdateTemplateResponse) String

func (o UpdateTemplateResponse) String() string

type UploadSignatureFileRequest

type UploadSignatureFileRequest struct {

	// 描述
	FileDesc *string `json:"file_desc,omitempty"`

	Body *UploadSignatureFileRequestBody `json:"body,omitempty" type:"multipart"`
}

UploadSignatureFileRequest Request Object

func (UploadSignatureFileRequest) String

type UploadSignatureFileRequestBody

type UploadSignatureFileRequestBody struct {

	// 营业执照文件
	File *def.FilePart `json:"file"`
}

func (UploadSignatureFileRequestBody) String

func (*UploadSignatureFileRequestBody) UnmarshalJSON

func (o *UploadSignatureFileRequestBody) UnmarshalJSON(b []byte) error

type UploadSignatureFileResponse

type UploadSignatureFileResponse struct {

	// 文件ID
	FileId         *string `json:"file_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

UploadSignatureFileResponse Response Object

func (UploadSignatureFileResponse) String

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL