chore: 并入 iotlcm-app 历史到 app/(原提交 f40bda9)

This commit is contained in:
MiFaZhan
2026-11-02 13:28:00 +08:00
1107 changed files with 147143 additions and 0 deletions
@@ -0,0 +1,53 @@
package model
import (
"github.com/gogf/gf/v2/encoding/gjson"
"github.com/gogf/gf/v2/os/gtime"
"git.5iot.com/iotlcm-public/iotlcm-app/internal/library/allocationunits"
)
type AppExecutionLogListParam struct {
Page int `json:"page" d:"1" v:"min:1"`
PageSize int `json:"pageSize" d:"20" v:"between:1,100"`
BatchNo string `json:"batchNo" v:"length:0,64"`
SourceChannel string `json:"sourceChannel" v:"in:console,mini_program,api,system,legacy"`
ExecutionMode *int `json:"executionMode" v:"in:0,1,2"`
SourceType *int `json:"sourceType" v:"in:0,1,2,3,4"`
BatchAsyncStatus *int `json:"batchAsyncStatus" v:"in:0,1,2,3,4,5"`
}
type AppExecutionLogDetailParam struct {
BatchNo string `json:"batchNo" v:"required|length:1,64#批次号不能为空|批次号过长"`
Page int `json:"page" d:"1" v:"min:1"`
PageSize int `json:"pageSize" d:"20" v:"between:1,100"`
DetailStatus *int `json:"detailStatus" v:"in:0,1,2,3"`
}
type AppExecutionLogItem struct {
allocationunits.Fields
StoredSourceDeptId int64 `json:"-" orm:"created_dept"`
StoredTargetDeptId int64 `json:"-" orm:"target_dept_id"`
UnitInfo *gjson.Json `json:"-" orm:"batch_info"`
BatchNo string `json:"batchNo"`
BatchType int `json:"batchType"`
SourceChannel string `json:"sourceChannel"`
ExecutionMode int `json:"executionMode"`
SourceType *int `json:"sourceType"`
BatchAsyncStatus int `json:"batchAsyncStatus"`
TotalCount int `json:"totalCount"`
RunResult int `json:"runResult"`
FailReason string `json:"failReason"`
CreatedAt *gtime.Time `json:"createdAt"`
StartTime *gtime.Time `json:"startTime"`
EndTime *gtime.Time `json:"endTime"`
}
type AppExecutionLogDetail struct {
allocationunits.Fields
UnitInfo *gjson.Json `json:"-" orm:"snapshot"`
RowNo int `json:"rowNo"`
ItemId string `json:"itemId"`
DetailStatus int `json:"detailStatus"`
ErrorCode string `json:"errorCode"`
ErrorReason string `json:"errorReason"`
}