Files
iotlcm/server/internal/model/entity/t_resource_batch_download.go
T
MiFaZhan 59eb34976a chore: 初始开源发布
iotlcm-admin-svr:管理后台服务。

- Go module:iotlcm → git.5iot.com/iotlcm-public/iotlcm-admin-svr(729 文件)
- 凭据与地址脱敏:JWT signingKey(含代码里的 MustGet 默认值)、
  MySQL DSN、Redis 口令、告警邮件发件人邮箱全部改为占位;
  私网 IP → 文档地址段;库名 xiujie_admin → iotlcm
- 真实手机号/邮箱 → 合法 11 位编造号 / example.com
- 移除内部资产:CI 触发器、过时 DDL(sql/db_iotlcm.sql)、
  私有依赖 go get 行、明文 registry 登录口令
- 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名
- Dockerfile 改用公共基础镜像
- 拼错的 RADEME.md → README.md,README 重写
- 需要真实数据库的用例改为可用 IOTLCM_TEST_WITH_DB=1 显式启用
- 补 Apache-2.0 LICENSE,LF 行尾 + .gitattributes

数据库 schema 不随本仓发布(生产 DDL 已过时),README 已说明。
2026-10-23 14:48:30 +08:00

47 lines
3.9 KiB
Go

// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
)
// TResourceBatchDownload is the golang structure for table t_resource_batch_download.
type TResourceBatchDownload struct {
Id int64 `json:"id" orm:"id" description:"主键ID"`
BatchNo string `json:"batchNo" orm:"batch_no" description:"批次编号(全局唯一)"`
TaskName string `json:"taskName" orm:"task_name" description:"任务名称"`
ResourceType int `json:"resourceType" orm:"resource_type" description:"资源类型 枚举"`
ExportScene int `json:"exportScene" orm:"export_scene" description:"导出场景 枚举"`
QueryParams *gjson.Json `json:"queryParams" orm:"query_params" description:"导出查询条件快照"`
TotalCount int `json:"totalCount" orm:"total_count" description:"预计导出总条数"`
SuccessCount int `json:"successCount" orm:"success_count" description:"已成功导出条数"`
FailCount int `json:"failCount" orm:"fail_count" description:"失败条数"`
DownloadStatus int `json:"downloadStatus" orm:"download_status" description:"下载状态 枚举"`
OssId int64 `json:"ossId" orm:"oss_id" description:"OSS文件ID"`
FileName string `json:"fileName" orm:"file_name" description:"导出文件名"`
FileExt string `json:"fileExt" orm:"file_ext" description:"文件扩展名"`
FileUrl string `json:"fileUrl" orm:"file_url" description:"文件访问地址"`
FilePath string `json:"filePath" orm:"file_path" description:"服务器本地路径"`
FileSize int64 `json:"fileSize" orm:"file_size" description:"文件大小(字节)"`
FileMd5 string `json:"fileMd5" orm:"file_md5" description:"文件MD5"`
DownloadCount int `json:"downloadCount" orm:"download_count" description:"下载次数"`
LastDownloadTime *gtime.Time `json:"lastDownloadTime" orm:"last_download_time" description:"最后下载时间"`
MaxDownloadCount int `json:"maxDownloadCount" orm:"max_download_count" description:"最大下载次数限制"`
ErrorMessage string `json:"errorMessage" orm:"error_message" description:"失败原因"`
DeptId int64 `json:"deptId" orm:"dept_id" description:"所属机构ID"`
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:"任务开始时间"`
FinishTime *gtime.Time `json:"finishTime" orm:"finish_time" description:"任务完成时间"`
ExpireTime *gtime.Time `json:"expireTime" orm:"expire_time" description:"文件过期时间"`
Remark string `json:"remark" orm:"remark" description:"备注"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门ID"`
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者ID"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者ID"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}