chore: 初始开源发布
iotlcm-openapi:对外 OpenAPI 网关(V3 接口 + 旧版兼容接口)。
- Go module:iotlcm-openapi → git.5iot.com/iotlcm-public/iotlcm-openapi(178 文件)
- 凭据与地址脱敏:JWT signingKey、MySQL DSN、Redis 口令、
RabbitMQ DSN 全部改为 ${*} 占位;私网 IP → 文档地址段
- 7 处真实手机号 → 合法 11 位编造号
- 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名
- 移除内部资产:CI 触发器
- Dockerfile 改用公共基础镜像,移除 GOPRIVATE 内网设置
- README 重写(原为 GoFrame 模板占位文案),补 Apache-2.0 LICENSE,
LF 行尾 + .gitattributes
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/library/xgorm/hook"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/model/request"
|
||||
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
type BatchExecutionLogListParam struct {
|
||||
request.PageInfo
|
||||
BatchNo string `json:"batchNo" dc:"批次编号"`
|
||||
BatchType *int `json:"batchType" dc:"批次类型"`
|
||||
CreatedAt []*gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
func (in *BatchExecutionLogListParam) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type BatchExecutionLogListModel struct {
|
||||
Id int64 `json:"id" dc:"主键ID"`
|
||||
BatchNo string `json:"batchNo" dc:"批次编号"`
|
||||
BatchType int `json:"batchType" dc:"批次类型"`
|
||||
SourceType *int `json:"sourceType" dc:"来源方式 枚举"`
|
||||
RunResult int `json:"runResult" dc:"运行结果"`
|
||||
StartTime *gtime.Time `json:"startTime" dc:"开始时间"`
|
||||
EndTime *gtime.Time `json:"endTime" dc:"结束时间"`
|
||||
CreatedDept int64 `json:"createdDept" dc:"创建部门ID"`
|
||||
CreatedBy int64 `json:"createdBy" dc:"创建者ID"`
|
||||
CreatedBySumma *hook.MemberSumma `json:"createdBySumma" dc:"创建者摘要"`
|
||||
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
type BatchExecutionLogDetailParam struct {
|
||||
BatchNo string `json:"batchNo" v:"required#批次号不能为空" dc:"批次编号"`
|
||||
}
|
||||
|
||||
func (in *BatchExecutionLogDetailParam) Filter(ctx context.Context) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
type BatchExecutionLogFileModel struct {
|
||||
OssId int64 `json:"ossId" dc:"OSS文件ID"`
|
||||
Url string `json:"url" dc:"文件URL"`
|
||||
}
|
||||
|
||||
type BatchExecutionLogResultFileModel struct {
|
||||
DownloadId int64 `json:"downloadId" dc:"下载任务ID"`
|
||||
OssId int64 `json:"ossId" dc:"OSS文件ID"`
|
||||
Url string `json:"url" dc:"文件URL"`
|
||||
DownloadStatus int `json:"downloadStatus" dc:"下载状态"`
|
||||
}
|
||||
|
||||
type BatchExecutionLogDetailModel struct {
|
||||
Id int64 `json:"id" dc:"主键ID"`
|
||||
BatchNo string `json:"batchNo" dc:"批次编号"`
|
||||
BatchType int `json:"batchType" dc:"批次类型"`
|
||||
SourceType *int `json:"sourceType" dc:"来源方式 枚举"`
|
||||
BatchAsyncStatus int `json:"batchAsyncStatus" dc:"异步处理状态 0=已创建 1=待处理 2=处理中 3=成功 4=失败 5=部分成功"`
|
||||
RunResult int `json:"runResult" dc:"运行结果"`
|
||||
FailReason string `json:"failReason" dc:"失败原因"`
|
||||
TotalCount int `json:"totalCount" dc:"总数量"`
|
||||
ValidCount int `json:"validCount" dc:"有效数量"`
|
||||
SuccessCount int `json:"successCount" dc:"成功数量"`
|
||||
FailCount int `json:"failCount" dc:"失败数量"`
|
||||
StartTime *gtime.Time `json:"startTime" dc:"开始时间"`
|
||||
EndTime *gtime.Time `json:"endTime" dc:"结束时间"`
|
||||
SourceFile *BatchExecutionLogFileModel `json:"sourceFile" dc:"源文件"`
|
||||
ResultFile *BatchExecutionLogResultFileModel `json:"resultFile" dc:"结果文件"`
|
||||
}
|
||||
Reference in New Issue
Block a user