chore: 并入 iotlcm-openapi 历史到 openapi/(原提交 3b05d5a)
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