初始
This commit is contained in:
410
api/v1/system/homePage.go
Normal file
410
api/v1/system/homePage.go
Normal file
@ -0,0 +1,410 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成api操作代码。
|
||||
// 生成日期:2023-08-02 17:11:39
|
||||
// 生成路径: api/v1/system/bus_quality.go
|
||||
// 生成人:gfast
|
||||
// desc:质量文档管理相关参数
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package system
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
|
||||
"github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||||
controllerModel "github.com/tiger1103/gfast/v3/internal/app/system/model"
|
||||
)
|
||||
|
||||
type Paging struct {
|
||||
IsPaging string `json:"isPaging" dc:"是否开启分页功能 YES开启 NO不开启(空字符串也不开启分页;默认)"` //是否开启分页功能 YES开启 NO不开启(空字符串也不开启分页;默认)
|
||||
}
|
||||
|
||||
// ParticipantNumberReq 参与人员数量
|
||||
type ParticipantNumberReq struct {
|
||||
g.Meta `path:"/countProject" tags:"GIS云图" method:"get" summary:"参与人员数量"`
|
||||
Paging
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// ParticipantNumberRes 参与人员数量
|
||||
type ParticipantNumberRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*ParticipantNumberEntity `json:"list"`
|
||||
}
|
||||
|
||||
type ParticipantNumberEntity struct {
|
||||
ProjectId int64 `json:"projectId" dc:"项目id"`
|
||||
ProjectName string `json:"projectName" dc:"项目名称"`
|
||||
ShortName string `json:"shortName" dc:"项目简称"`
|
||||
Number int `json:"number" dc:"人员数量"`
|
||||
WorkList []*TypeOfWork `json:"workList"`
|
||||
}
|
||||
|
||||
type ParticipantNumberTwoEntity struct {
|
||||
ProjectId int64 `json:"projectId" dc:"项目id"`
|
||||
ProjectName string `json:"projectName" dc:"项目名称"`
|
||||
ShortName string `json:"shortName" dc:"项目简称"`
|
||||
WorkName string `json:"workName" dc:"工种名称"`
|
||||
WorkNumber int `json:"workNumber" dc:"工种数量"`
|
||||
}
|
||||
|
||||
type TypeOfWork struct {
|
||||
WorkName string `json:"workName" dc:"工种名称"`
|
||||
WorkNumber int `json:"workNumber" dc:"工种数量"`
|
||||
}
|
||||
|
||||
// MachineNumberReq 机械数量
|
||||
type MachineNumberReq struct {
|
||||
g.Meta `path:"/machineProject" tags:"GIS云图" method:"get" summary:"机械数量"`
|
||||
Paging
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// MachineNumberRes 机械数量
|
||||
type MachineNumberRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*MachineNumberEntity `json:"list"`
|
||||
}
|
||||
|
||||
type MachineNumberEntity struct {
|
||||
ProjectId int64 `json:"projectId" dc:"项目id"`
|
||||
ProjectName string `json:"projectName" dc:"项目名称"`
|
||||
StatusList []*AccountStatus `json:"statusList"`
|
||||
}
|
||||
|
||||
type AccountStatus struct {
|
||||
StatusName string `json:"statusName" dc:"机械名称"`
|
||||
StatusNumber int `json:"statusNumber" dc:"机械数量"`
|
||||
}
|
||||
|
||||
// MaterialsReq 材料数量
|
||||
type MaterialsReq struct {
|
||||
g.Meta `path:"/materials" tags:"GIS云图" method:"get" summary:"材料数量"`
|
||||
Paging
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// MaterialsRes 材料数量
|
||||
type MaterialsRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*MaterialsNumberEntity `json:"list"`
|
||||
}
|
||||
|
||||
type MaterialsNumberEntity struct {
|
||||
ProjectId int64 `json:"projectId" dc:"项目id"`
|
||||
ProjectName string `json:"projectName" dc:"项目名称"`
|
||||
MaterialsList []*Materials `json:"materialsList"`
|
||||
}
|
||||
|
||||
type Materials struct {
|
||||
StatusName string `json:"statusName" dc:"材料名称"`
|
||||
Predict int `json:"predict" dc:"预计使用数量"`
|
||||
Practical int `json:"practical" dc:"实际使用数量"`
|
||||
}
|
||||
|
||||
// ProgressOfWorksReq 合同容量
|
||||
type ProgressOfWorksReq struct {
|
||||
g.Meta `path:"/progressOfWorks" tags:"GIS云图" method:"get" summary:"合同容量"`
|
||||
Paging
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// ProgressOfWorksRes 合同容量
|
||||
type ProgressOfWorksRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*ProgressOfWorksNumberEntity `json:"list"`
|
||||
}
|
||||
|
||||
type ProgressOfWorksNumberEntity struct {
|
||||
ProjectId int64 `json:"projectId" dc:"项目id"`
|
||||
ProjectName string `json:"projectName" dc:"项目名称"`
|
||||
Plan string `json:"plan" dc:"预计容量"`
|
||||
Actual string `json:"actual" dc:"实际容量"`
|
||||
}
|
||||
|
||||
// ProjectCapacityReq 项目容量
|
||||
type ProjectCapacityReq struct {
|
||||
g.Meta `path:"/projectCapacity" tags:"GIS云图" method:"get" summary:"项目容量"`
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// ProjectCapacityRes 项目容量
|
||||
type ProjectCapacityRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
SumPlan string `json:"sumPlan" dc:"总预计容量"`
|
||||
SumActual string `json:"sumActual" dc:"总实际容量"`
|
||||
List []*ProjectCapacityTwoRes `json:"list" dc:"项目列表数据"`
|
||||
}
|
||||
|
||||
// ProjectCapacityTwoReq 项目容量
|
||||
type ProjectCapacityTwoReq struct {
|
||||
g.Meta `path:"/projectCapacityTwo" tags:"GIS云图" method:"get" summary:"项目容量Two"`
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// ProjectCapacityTwoRes 项目容量
|
||||
type ProjectCapacityTwoRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
SumPlan string `json:"sumPlan" dc:"总预计容量"`
|
||||
SumActual string `json:"sumActual" dc:"总实际容量"`
|
||||
List []*ProjectCapacityTwoTwoRes `json:"list" dc:"项目列表数据"`
|
||||
}
|
||||
|
||||
type ProjectCapacityTwoTwoRes struct {
|
||||
ProjectName string `json:"projectName" dc:"项目名称"`
|
||||
ShortName string `json:"shortName" dc:"项目简称"`
|
||||
Plan string `json:"plan" dc:"预计容量"`
|
||||
Actual string `json:"actual" dc:"实际容量"`
|
||||
}
|
||||
|
||||
// MechanicalConditionReq 机械情况
|
||||
type MechanicalConditionReq struct {
|
||||
g.Meta `path:"/mechanicalCondition" tags:"GIS云图" method:"get" summary:"机械情况"`
|
||||
Paging
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
ProjectId string `p:"projectId" dc:"项目id" `
|
||||
}
|
||||
|
||||
// MechanicalConditionRes 机械情况
|
||||
type MechanicalConditionRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*MechanicalConditionListRes `json:"list"`
|
||||
}
|
||||
|
||||
type MechanicalConditionListRes struct {
|
||||
StatusName string `json:"statusName" dc:"机械名称"`
|
||||
StatusNumber int `json:"statusNumber" dc:"机械数量"`
|
||||
}
|
||||
|
||||
// OneProjectReq 项目进度
|
||||
type OneProjectReq struct {
|
||||
g.Meta `path:"/mechanicalCondition" tags:"GIS云图" method:"get" summary:"项目进度"`
|
||||
commonApi.Author
|
||||
ProjectId string `p:"projectId" dc:"项目id" `
|
||||
}
|
||||
|
||||
// OneProjectRes 项目进度
|
||||
type OneProjectRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
PlanPercentage string `json:"planPercentage" dc:"预计(百分比)"`
|
||||
ActualPercentage string `json:"actualPercentage" dc:"实际(百分比)"`
|
||||
}
|
||||
|
||||
// SafetyReq 安全生产天数
|
||||
type SafetyReq struct {
|
||||
g.Meta `path:"/safety" tags:"GIS云图" method:"get" summary:"安全生产天数"`
|
||||
commonApi.Author
|
||||
ProjectId string `p:"projectId" dc:"项目id" `
|
||||
}
|
||||
|
||||
// SafetyRes 安全生产天数
|
||||
type SafetyRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
Day int `json:"day" dc:"天数"`
|
||||
}
|
||||
|
||||
// QualityReq 质量监控统计
|
||||
type QualityReq struct {
|
||||
g.Meta `path:"/quality" tags:"GIS云图" method:"get" summary:"质量监控统计"`
|
||||
ProjectId string `json:"projectId" v:"required#项目ID必须"`
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// QualityRes 质量监控统计
|
||||
type QualityRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
List []*QualityListRes `json:"list"`
|
||||
}
|
||||
|
||||
type QualityListRes struct {
|
||||
QualityType string `json:"qualityType" dc:"类型"`
|
||||
QualityName string `json:"qualityName" dc:"名称"`
|
||||
QualityNumber int `json:"qualityNumber" dc:"数量"`
|
||||
Proportion string `json:"proportion" dc:"百分比(%)"`
|
||||
}
|
||||
|
||||
// QualityDataListReq 质量监控统计列表
|
||||
type QualityDataListReq struct {
|
||||
g.Meta `path:"/qualityDataList" tags:"GIS云图" method:"get" summary:"质量监控统计列表"`
|
||||
QualityType string `json:"qualityType" v:"required#类型不能为空"`
|
||||
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
|
||||
Paging
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// QualityDataListRes 质量监控统计列表
|
||||
type QualityDataListRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*model.BusQualityListRes `json:"list"`
|
||||
}
|
||||
|
||||
// ConditionReq 材料情况
|
||||
type ConditionReq struct {
|
||||
g.Meta `path:"/condition" tags:"GIS云图" method:"get" summary:"材料情况"`
|
||||
ProjectId string `json:"projectId" v:"required#项目ID必须"`
|
||||
Paging
|
||||
commonApi.PageReq
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// ConditionRes 材料情况
|
||||
type ConditionRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*ConditionListRes `json:"list"`
|
||||
}
|
||||
|
||||
type ConditionListRes struct {
|
||||
Id int64 `json:"id" dc:"主键ID"`
|
||||
Name string `json:"name" dc:"名称"`
|
||||
Number int `json:"number" dc:"数量"`
|
||||
}
|
||||
|
||||
//// ConditionReq 材料情况
|
||||
//type ConditionReq struct {
|
||||
// g.Meta `path:"/condition" tags:"GIS云图" method:"get" summary:"材料情况"`
|
||||
// ProjectId string `json:"projectId" v:"required#项目ID必须"`
|
||||
// Paging
|
||||
// commonApi.PageReq
|
||||
// commonApi.Author
|
||||
//}
|
||||
//
|
||||
//// ConditionRes 材料情况
|
||||
//type ConditionRes struct {
|
||||
// g.Meta `mime:"application/json"`
|
||||
// commonApi.ListRes
|
||||
// List []*DateListRes `json:"list"`
|
||||
//}
|
||||
//type DateListRes struct {
|
||||
// DateStr string `json:"dateStr" dc:"时间"`
|
||||
// List []*ConditionListRes `json:"list"`
|
||||
//}
|
||||
//
|
||||
//type ConditionListRes struct {
|
||||
// Id int64 `json:"id" dc:"主键ID"`
|
||||
// Name string `json:"name" dc:"名称"`
|
||||
// Number int `json:"number" dc:"数量"`
|
||||
//}
|
||||
|
||||
type GisQualityManagementReq struct {
|
||||
g.Meta `path:"/gisQualityManagement" tags:"GIS云图" method:"get" summary:"质量管理统计"`
|
||||
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
type GisQualityManagementRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
InspectionRecord int `json:"inspectionRecord" dc:"巡检记录"`
|
||||
ReorganizeTheSituation float64 `json:"reorganizeTheSituation" dc:"整改情况"`
|
||||
}
|
||||
|
||||
type GisQualityManagementListReq struct {
|
||||
g.Meta `path:"/gisQualityManagementList" tags:"GIS云图" method:"get" summary:"质量管理列表"`
|
||||
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
|
||||
Type string `json:"type" dc:"1整改情况 2巡检记录" v:"between:1,2#取值范围为1~2"`
|
||||
commonApi.Author
|
||||
commonApi.PageReq
|
||||
}
|
||||
|
||||
type GisQualityManagementListRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*GisQualityManagementListEntityRes `json:"list"`
|
||||
}
|
||||
|
||||
type GisQualityManagementListEntityRes struct {
|
||||
Id string `json:"id" dc:"主键ID"`
|
||||
DictLabel string `json:"dictLabel" dc:"工单类型"`
|
||||
InspectionHeadline string `json:"inspectionHeadline" dc:"主题"`
|
||||
Status string `json:"status" dc:"工单状态"`
|
||||
VerificationType string `json:"verificationType" dc:"验证状态(1通过 2未通过)"`
|
||||
CreatedAt string `json:"createdAt" dc:"创建时间"`
|
||||
}
|
||||
|
||||
// BusTourSearchAllReq 分页请求参数
|
||||
type BusTourSearchAllReq struct {
|
||||
g.Meta `path:"/tourSearchAllList" tags:"GIS云图" method:"get" summary:"GIS大屏展示所有ai"`
|
||||
ProjectId string `p:"projectId"`
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
// BusTourSearchAllRes 列表返回结果
|
||||
type BusTourSearchAllRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
List []*model.BusTourListRes `json:"list"`
|
||||
}
|
||||
|
||||
type GisSafetyManagementReq struct {
|
||||
g.Meta `path:"/gisSafetyManagement" tags:"GIS云图" method:"get" summary:"安全管理统计"`
|
||||
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
type GisSafetyManagementRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
TeamMeeting int `json:"teamMeeting" dc:"站班会"`
|
||||
InspectionRecord int `json:"inspectionRecord" dc:"巡检记录"`
|
||||
ReorganizeTheSituation float64 `json:"reorganizeTheSituation" dc:"整改情况"`
|
||||
}
|
||||
|
||||
type GisSafetyManagementListReq struct {
|
||||
g.Meta `path:"/gisSafetyManagementList" tags:"GIS云图" method:"get" summary:"安全管理列表"`
|
||||
ProjectId string `json:"projectId" v:"required#项目id不能为空"`
|
||||
Type string `json:"type" dc:"1站班会 2整改情况 3巡检记录" v:"between:1,3#取值范围为1~3"`
|
||||
commonApi.Author
|
||||
commonApi.PageReq
|
||||
}
|
||||
|
||||
type GisSafetyManagementListRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
commonApi.ListRes
|
||||
List []*GisSafetyManagementListEntityRes `json:"list"`
|
||||
}
|
||||
|
||||
type GisSafetyManagementListEntityRes struct {
|
||||
Id string `json:"id" dc:"主键ID"`
|
||||
StudyTypeDictLabel string `json:"studyTypeName" dc:"检查类型or班组"`
|
||||
TourTypeDictLabel string `json:"tourTypeName" dc:"违章类型or站班会"`
|
||||
TeamName string `json:"teamName" dc:"班组"`
|
||||
InspectionResult string `json:"inspectionResult" dc:"内容"`
|
||||
Status string `json:"status" dc:"工单状态"`
|
||||
VerificationType string `json:"verificationType" dc:"验证状态(1通过 2未通过)"`
|
||||
CreatedAt string `json:"createdAt" dc:"创建时间or站班时间"`
|
||||
}
|
||||
|
||||
type LargeScreenDetailsReq struct {
|
||||
g.Meta `path:"/argeScreenDetails" tags:"GIS云图" method:"get" summary:"大屏-质量管理"`
|
||||
Id string `json:"id" dc:"主键ID"`
|
||||
Type string `json:"type" dc:"1通知 2整改" v:"between:1,2#取值范围为1~2"`
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
type LargeScreenDetailsRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*model.LargeScreenDetailsEntityRes
|
||||
}
|
||||
|
||||
type SafetyLargeScreenDetailsReq struct {
|
||||
g.Meta `path:"/safetyLargeScreenDetails" tags:"GIS云图" method:"get" summary:"大屏-安全管理"`
|
||||
Id string `json:"id" dc:"主键ID"`
|
||||
Type string `json:"type" dc:"1巡检 2整改" v:"between:1,2#取值范围为1~2"`
|
||||
commonApi.Author
|
||||
}
|
||||
|
||||
type SafetyLargeScreenDetailsRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
*controllerModel.BusHseManagementDetailsRes
|
||||
}
|
Reference in New Issue
Block a user