All checks were successful
构建并部署到测试环境(无 SSH) / build-and-deploy (push) Successful in 9m35s
- 新增不轮询清单 tb_card_polling_pause(迁移 000256 补写存量),所有改 enable_polling 的入口同事务写清单 - 卡、设备勾选批量开关轮询(单次 500,逐项结果,开启跳过风险停机与已销户)与 CSV 文件导入 - 订单套餐生效、改有效期后自动恢复轮询并按规则评估复机 - 不轮询清单查询与导出;卡、设备列表与导出增加是否轮询 - 失败告警停机被拒视图、导出与批量关闭轮询;开关轮询影响说明 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
1.9 KiB
Go
25 lines
1.9 KiB
Go
package dto
|
||
|
||
type GetUploadURLRequest struct {
|
||
FileName string `json:"file_name" validate:"required,min=1,max=255" required:"true" minLength:"1" maxLength:"255" description:"文件名(如:cards.csv)"`
|
||
ContentType string `json:"content_type" validate:"omitempty,max=100" maxLength:"100" description:"文件 MIME 类型(如:text/csv),留空则自动推断"`
|
||
Purpose string `json:"purpose" validate:"required,oneof=iot_import export attachment batch_purchase device_batch_allocation shop_import phone_unbind_import polling_status_import" required:"true" enum:"iot_import,export,attachment,batch_purchase,device_batch_allocation,shop_import,phone_unbind_import,polling_status_import" description:"文件用途 (iot_import:ICCID导入, export:数据导出, attachment:附件, batch_purchase:资产套餐批量订购CSV, device_batch_allocation:设备批量分配或回收CSV, shop_import:店铺负责人导入CSV, phone_unbind_import:手机号资产解绑导入CSV, polling_status_import:轮询开关导入CSV)"`
|
||
}
|
||
|
||
type GetUploadURLResponse struct {
|
||
UploadURL string `json:"upload_url" description:"预签名上传 URL,使用 PUT 方法上传文件"`
|
||
FileKey string `json:"file_key" description:"文件路径标识,上传成功后用于调用业务接口"`
|
||
ExpiresIn int `json:"expires_in" description:"URL 有效期(秒)"`
|
||
}
|
||
|
||
// GetBatchDownloadURLsRequest 批量获取文件下载预签名 URL 请求
|
||
type GetBatchDownloadURLsRequest struct {
|
||
FileKeys []string `json:"file_keys" validate:"required,min=1,max=50,dive,required" required:"true" minLength:"1" description:"文件路径标识列表,最多 50 个"`
|
||
}
|
||
|
||
// GetBatchDownloadURLsResponse 批量获取文件下载预签名 URL 响应
|
||
type GetBatchDownloadURLsResponse struct {
|
||
URLs map[string]string `json:"urls" description:"file_key 到预签名下载 URL 的映射"`
|
||
ExpiresIn int `json:"expires_in" description:"URL 有效期(秒)"`
|
||
}
|