This commit is contained in:
2025-07-07 20:11:59 +08:00
parent ab0fdbc447
commit 06e3aa2eb3
2009 changed files with 193082 additions and 0 deletions

View File

View File

@ -0,0 +1,29 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-05-28 15:09:13
// 生成路径: internal/app/system/model/app_menus.go
// 生成人gfast
// desc:app菜单
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// AppMenusInfoRes is the golang structure for table app_menus.
type AppMenusInfoRes struct {
gmeta.Meta `orm:"table:app_menus"`
MenuId uint `orm:"menu_id,primary" json:"menuId"` //
MenuName string `orm:"menu_name" json:"menuName"` // 菜单名
CreatedAt *gtime.Time `orm:"created_at" json:"-"` //
}
type AppMenusListRes struct {
MenuId uint `json:"menuId"`
MenuName string `json:"menuName"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,31 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-05-28 15:11:14
// 生成路径: internal/app/system/model/app_role_menus.go
// 生成人gfast
// desc:app角色绑定菜单
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// AppRoleMenusInfoRes is the golang structure for table app_role_menus.
type AppRoleMenusInfoRes struct {
gmeta.Meta `orm:"table:app_role_menus"`
Id uint `orm:"id,primary" json:"id"` //
RoleId int `orm:"role_id" json:"roleId"` // 角色ID
MenuId int `orm:"menu_id" json:"menuId"` // 菜单ID
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type AppRoleMenusListRes struct {
Id uint `json:"id"`
RoleId int `json:"roleId"`
MenuId int `json:"menuId"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,37 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-05-28 15:11:36
// 生成路径: internal/app/system/model/app_roles.go
// 生成人gfast
// desc:app角色
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// AppRolesInfoRes is the golang structure for table app_roles.
type AppRolesInfoRes struct {
gmeta.Meta `orm:"table:app_roles"`
RoleId uint `orm:"role_id,primary" json:"roleId"` //
RoleName string `orm:"role_name" json:"roleName"` // 角色名
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type AppRoleDetails struct {
gmeta.Meta `orm:"table:app_roles"`
RoleId uint `orm:"role_id,primary" json:"roleId"` //
RoleName string `orm:"role_name" json:"roleName"` // 角色名
Menus []AppMenusInfoRes `json:"menus"` // 拥有的菜单
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type AppRolesListRes struct {
RoleId uint `json:"roleId"`
RoleName string `json:"roleName"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,31 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-05-28 15:11:37
// 生成路径: internal/app/system/model/app_user_disable_menus.go
// 生成人gfast
// desc:app用户禁用菜单关联
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// AppUserDisableMenusInfoRes is the golang structure for table app_user_disable_menus.
type AppUserDisableMenusInfoRes struct {
gmeta.Meta `orm:"table:app_user_disable_menus"`
UserDisabledMenuId uint `orm:"user_disabled_menu_id,primary" json:"userDisabledMenuId"` //
UserId int `orm:"user_id" json:"userId"` // 用户ID
MenuId int `orm:"menu_id" json:"menuId"` // 菜单ID
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type AppUserDisableMenusListRes struct {
UserDisabledMenuId uint `json:"userDisabledMenuId"`
UserId int `json:"userId"`
MenuId int `json:"menuId"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,31 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-05-28 15:11:37
// 生成路径: internal/app/system/model/app_user_menus.go
// 生成人gfast
// desc:app用户菜单关联
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// AppUserMenusInfoRes is the golang structure for table app_user_menus.
type AppUserMenusInfoRes struct {
gmeta.Meta `orm:"table:app_user_menus"`
UserMenuId uint `orm:"user_menu_id,primary" json:"userMenuId"` //
UserId int `orm:"user_id" json:"userId"` // 用户ID
MenuId int `orm:"menu_id" json:"menuId"` // 菜单ID
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type AppUserMenusListRes struct {
UserMenuId uint `json:"userMenuId"`
UserId int `json:"userId"`
MenuId int `json:"menuId"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,49 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-05-28 15:11:37
// 生成路径: internal/app/system/model/app_user_roles.go
// 生成人gfast
// desc:app用户角色关联
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// AppUserRolesInfoRes is the golang structure for table app_user_roles.
type AppUserRolesInfoRes struct {
gmeta.Meta `orm:"table:app_user_roles"`
Id uint `orm:"id,primary" json:"id"` //
UserId int `orm:"user_id" json:"userId"` // 用户ID
RoleId int `orm:"role_id" json:"roleId"` // 关联的角色ID
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type AppUserRoleDetails struct {
gmeta.Meta `orm:"table:app_user_roles"`
Rules []Ruler `json:"rules"`
}
type Ruler struct {
UserId int `orm:"user_id" json:"-"` // 用户ID
RoleId int `orm:"role_id" json:"roleId" dc:"角色ID" ` // 关联的角色ID
MajorRole int `orm:"major_role" json:"-"`
RoleName string `orm:"role_name" json:"roleName" dc:"角色名称"`
}
type AppRoles struct {
RoleId int `orm:"role_id" json:"roleId" dc:"角色ID" ` // 关联的角色ID
RoleName string `orm:"role_name" json:"roleName" dc:"角色名称"`
Tag int `orm:"tag" json:"-" dc:"标签"`
}
type AppUserRolesListRes struct {
Id uint `json:"id"`
UserId int `json:"userId"`
RoleId int `json:"roleId"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,49 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2025-03-03 10:32:47
// 生成路径: internal/app/system/model/bus_attendance_machine.go
// 生成人gfast
// desc:考勤机
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusAttendanceMachineInfoRes is the golang structure for table bus_attendance_machine.
type BusAttendanceMachineInfoRes struct {
gmeta.Meta `orm:"table:bus_attendance_machine"`
Id uint64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId uint64 `orm:"project_id" json:"projectId"` // 项目ID
Sn string `orm:"sn" json:"sn"` // 设备sn
Status string `orm:"status" json:"status" ` //是否在线0不在线 1在线
Teams string `orm:"teams" json:"teams"` // 班组id多个逗号分隔
CreateBy string `orm:"create_by" json:"createBy"` // 创建人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
Remark string `orm:"remark" json:"remark"` // 备注
}
type BusAttendanceMachineListRes struct {
Id uint64 `json:"id"`
ProjectId uint64 `json:"projectId" dc:"项目ID"`
Sn string `json:"sn" dc:"考勤机标识"`
Status string `json:"status" dc:"是否在线0不在线 1在线"`
Teams string `json:"teams" dc:"班组ID多个逗号分割"`
CreatedAt *gtime.Time `json:"createdAt" dc:"da"`
Remark string `json:"remark"`
}
type BusAttendanceMachineExtendRes struct {
Id uint64 `json:"id"`
ProjectId uint64 `json:"projectId" dc:"项目ID"`
ProjectName string `json:"projectName" dc:"项目名称"`
Sn string `json:"sn" dc:"考勤机标识"`
Status string `json:"status" dc:"是否在线0不在线 1在线"`
Teams string `json:"teams" dc:"班组ID多个逗号分割"`
TeamsName string `json:"teamsName" dc:"班组名称(多个逗号分割)"`
Remark string `json:"remark" dc:"备注"`
}

View File

@ -0,0 +1,32 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2025-03-03 10:33:17
// 生成路径: internal/app/system/model/bus_attendance_machine_user.go
// 生成人gfast
// desc:考勤机用户列
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusAttendanceMachineUserInfoRes is the golang structure for table bus_attendance_machine_user.
type BusAttendanceMachineUserInfoRes struct {
gmeta.Meta `orm:"table:bus_attendance_machine_user"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
MachineId int64 `orm:"machine_id" json:"machineId"` // 考勤机主键ID
TeamId int64 `orm:"team_id" json:"teamId"` // 班组ID
UserId int64 `orm:"user_id" json:"userId"` // 用户ID
Identifying int `orm:"identifying" json:"identifying"` // 标识(是否下发)
}
type BusAttendanceMachineUserListRes struct {
Id int64 `json:"id"`
MachineId int64 `json:"machineId"`
TeamId int64 `json:"teamId"`
UserId int64 `json:"userId"`
Identifying int `json:"identifying"`
}

View File

@ -0,0 +1,61 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-09-20 14:55:42
// 生成路径: internal/app/system/model/bus_camera_channel.go
// 生成人gfast
// desc:摄像头(国标通道)
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCameraChannelInfoRes is the golang structure for table bus_camera_channel.
type BusCameraChannelInfoRes struct {
gmeta.Meta `orm:"table:bus_camera_channel"`
Id int64 `orm:"id,primary" json:"id"` // 序号
CountryId int64 `orm:"country_id" json:"countryId"` // 摄像头ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 摄像头ID
ChannelNumber string `orm:"channel_number" json:"channelNumber"` // 国标通道号
ChannelName string `orm:"channel_name" json:"channelName"` // 通道名称
ChannelPath string `orm:"channel_path" json:"channelPath"` // 视频路径 flv
ChannelPathWs string `orm:"channel_path_ws" json:"channelPathWs"` // 视频路径 ws
ChannelPathRtc string `orm:"channel_path_rtc" json:"channelPathRtc"` // 视频路径 rtc
ChannelPathHls string `orm:"channel_path_hls" json:"channelPathHls"` // 视频路径 hls
ChannelFormat string `orm:"channel_format" json:"channelFormat"` // 视频格式(字典)
ChannelState string `orm:"channel_state" json:"channelState"` // 在线状态(字典)
SourceType string `orm:"source_type" json:"sourceType"` // 在线状态(字典)
Remark string `orm:"remark" json:"remark"` // 备注
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
Detail string `orm:"detail" json:"detail"` // 更新者
Imei string `orm:"imei,primary" json:"imei"` // 更新者
Iccid string `orm:"iccid,primary" json:"iccid"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusCameraChannelListRes struct {
Id int64 `json:"id"`
CountryId int64 `json:"countryId"`
ProjectId *gtime.Time `json:"projectId"`
ChannelNumber string `json:"channelNumber"`
ChannelName string `json:"channelName"`
ChannelPath string `json:"channelPath"`
ChannelPathWs string `json:"channelPathWs"`
ChannelPathRtc string `json:"channelPathRtc"`
ChannelPathHls string `json:"channelPathHls"`
ChannelFormat string `json:"channelFormat"`
ChannelState string `json:"channelState"`
Remark string `json:"remark"`
Detail string `json:"detail"`
Imei string `json:"imei"`
Iccid string `json:"iccid"`
SourceType string `json:"source_type"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,40 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-09-20 14:55:24
// 生成路径: internal/app/system/model/bus_camera_chinese_standard.go
// 生成人gfast
// desc:摄像头(国标)
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCameraChineseStandardInfoRes is the golang structure for table bus_camera_chinese_standard.
type BusCameraChineseStandardInfoRes struct {
gmeta.Meta `orm:"table:bus_camera_chinese_standard"`
Id int64 `orm:"id,primary" json:"id"` // 序号
CountryNumber string `orm:"country_number" json:"countryNumber"` // 国标号
ProjectId int64 `orm:"project_id" json:"projectId"` // 国标号
CountryName string `orm:"country_name" json:"countryName"` // 摄像头名称
CountryState string `orm:"country_state" json:"countryState"` // 在线状态(字典)
Remark string `orm:"remark" json:"remark"` // 备注
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusCameraChineseStandardListRes struct {
Id int64 `json:"id"`
CountryNumber string `json:"countryNumber"`
CountryName string `json:"countryName"`
CountryState string `json:"countryState"`
ProjectId int64 `json:"projectId"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,26 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-10-07 15:52:19
// 生成路径: internal/app/system/model/bus_category.go
// 生成人gfast
// desc:题库_题库类别
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCategoryInfoRes is the golang structure for table bus_category.
type BusCategoryInfoRes struct {
gmeta.Meta `orm:"table:bus_category"`
Id int64 `orm:"id,primary" json:"id"` // 序号
CategoryName string `orm:"category_name" json:"categoryName"` // 题库类别
}
type BusCategoryListRes struct {
Id int64 `json:"id"`
CategoryName string `json:"categoryName"`
}

View File

@ -0,0 +1,43 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-28 14:08:14
// 生成路径: internal/app/system/model/bus_company.go
// 生成人gfast
// desc:公司
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCompanyInfoRes is the golang structure for table bus_company.
type BusCompanyInfoRes struct {
gmeta.Meta `orm:"table:bus_company"`
CompanyId int64 `orm:"company_id,primary" json:"companyId"` // 序号
CompanyName string `orm:"company_name" json:"companyName"` // 公司名称
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Status string `orm:"status" json:"status"` // 帐号状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusCompanyListRes struct {
CompanyId int64 `json:"companyId"`
CompanyName string `json:"companyName"`
Status string `json:"status"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
}
type BusCompanyAppListRes struct {
CompanyId int64 `json:"companyId"`
CompanyName string `json:"companyName"`
}

View File

@ -0,0 +1,55 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-12-04 18:09:50
// 生成路径: internal/app/system/model/bus_complaint_box.go
// 生成人gfast
// desc:意见箱
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusComplaintBoxInfoRes is the golang structure for table bus_complaint_box.
type BusComplaintBoxInfoRes struct {
gmeta.Meta `orm:"table:bus_complaint_box"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Openid string `orm:"openid" json:"openid"` // openid
Opinion string `orm:"opinion" json:"opinion"` // 意见
Status string `orm:"status" json:"status"` // 状态0未读1已读
Dispose *gtime.Time `orm:"dispose" json:"dispose"` // 处理时间
Remark string `orm:"remark" json:"remark"` // 备注
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
ProjectName string `orm:"project_name" json:"projectName"` // 项目名称
ShortName string `orm:"short_name" json:"shortName"` // 项目简称
Phone string `orm:"phone" json:"phone"` // 项目简称
FileEntityList []*FileEntityRes `orm:"fileEntityList" json:"fileEntityList"`
}
type BusComplaintBoxListRes struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
Openid string `json:"openid"`
Opinion string `json:"opinion"`
Status string `json:"status"`
Dispose *gtime.Time `json:"dispose"`
Remark string `json:"remark"`
CreatedAt *gtime.Time `json:"createdAt"`
ProjectName string `json:"projectName"`
ShortName string `json:"shortName"`
Phone string `json:"phone"`
}
type FileEntityRes struct {
Id int64 `p:"id" dc:"主键ID"`
TicketId int64 `p:"ticket_id" dc:"父主键ID"`
Name string `p:"name" dc:"文件名称"`
Path string `p:"path" dc:"文件路径"`
FileType string `p:"file_type" dc:"文件类型(后缀)"`
}

View File

@ -0,0 +1,35 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-11-10 14:08:39
// 生成路径: internal/app/system/model/bus_construction_blacklist.go
// 生成人gfast
// desc:黑名单
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionBlacklistInfoRes is the golang structure for table bus_construction_blacklist.
type BusConstructionBlacklistInfoRes struct {
gmeta.Meta `orm:"table:bus_construction_blacklist"`
Openid string `orm:"openid,primary" json:"openid"` // openid
Name string `orm:"name" json:"name"` // 名字
SfzNumber string `orm:"sfz_number" json:"sfzNumber"` // 身份证号码
Remark string `orm:"remark" json:"remark"` // 备注
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
CreateBy string `orm:"create_by" json:"createBy"` // 操作人/创建人
}
type BusConstructionBlacklistListRes struct {
Openid string `json:"openid"`
Name string `json:"name"`
SfzNumber string `json:"sfzNumber"`
Remark string `json:"remark"`
CreatedAt *gtime.Time `json:"createdAt"`
CreateBy string `json:"createBy"`
}

View File

@ -0,0 +1,62 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-22 16:27:43
// 生成路径: internal/app/system/model/bus_construction_log.go
// 生成人gfast
// desc:施工日志
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionLogInfoRes is the golang structure for table bus_construction_log.
type BusConstructionLogInfoRes struct {
gmeta.Meta `orm:"table:bus_construction_log"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
DateOfOccurrence string `orm:"date_of_occurrence" json:"dateOfOccurrence"` // 发生日期
Condition string `orm:"condition" json:"condition"` // 生产情况
TechnologyQuality string `orm:"technology_quality" json:"technologyQuality"` // 技术质量安全工作
Remark string `orm:"remark" json:"remark"` // 备注
Path string `orm:"path" json:"path"` // 附件(多个逗号分割)
CreatedBy string `orm:"created_by" json:"createdBy"` // 创建人
UpdatedBy string `orm:"updated_by" json:"updatedBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusConstructionLogListRes struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
DateOfOccurrence string `json:"dateOfOccurrence"`
Condition string `json:"condition"`
TechnologyQuality string `json:"technologyQuality"`
Remark string `json:"remark"`
CreatedBy string `json:"createdBy"`
}
type AppletDetails struct {
BusConstructionLogInfoRes
ProjectName string `orm:"project_name" json:"projectName"`
}
type AppletList struct {
Id int64 `json:"id" dc:"主键"`
ProjectName string `json:"projectName" p:"test" dc:"项目名称"`
CreatedBy string `json:"created_by" dc:"录入人"`
CreatedAt *gtime.Time `json:"created_at" dc:"录入时间"`
DateOfOccurrence string `json:"date_of_occurrence" dc:"发生日期"`
}
type AppletListaaaaaRes struct {
Id int64 `json:"id" dc:"主键"`
ProjectName string `json:"projectName" p:"test" dc:"项目名称"`
CreatedBy string `json:"created_by" dc:"录入人"`
CreatedAt *gtime.Time `json:"created_at" dc:"录入时间"`
}

View File

@ -0,0 +1,28 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-07 10:17:50
// 生成路径: internal/app/system/model/bus_construction_project.go
// 生成人gfast
// desc:施工人员对应项目
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionProjectInfoRes is the golang structure for table bus_construction_project.
type BusConstructionProjectInfoRes struct {
gmeta.Meta `orm:"table:bus_construction_project"`
Id uint64 `orm:"id,primary" json:"id"` // 序号
ConstructionUserId int64 `orm:"construction_user_id" json:"constructionUserId"` // 微信用户id
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
}
type BusConstructionProjectListRes struct {
Id uint64 `json:"id"`
ConstructionUserId int64 `json:"constructionUserId"`
ProjectId int64 `json:"projectId"`
}

View File

@ -0,0 +1,159 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-07 10:31:18
// 生成路径: internal/app/system/model/bus_construction_user.go
// 生成人gfast
// desc:施工人员
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionUserInfoRes is the golang structure for table bus_construction_user.
type BusConstructionUserInfoRes struct {
gmeta.Meta `orm:"table:bus_construction_user"`
Id int64 `orm:"id,primary" json:"id"` // 序号
Openid string `orm:"openid" json:"openid"` // 微信id
NickName string `orm:"nick_name" json:"nickName"` // 微信名称
TeamId int64 `orm:"team_id" json:"teamId"` // 班组id
LabourserviceId int64 `orm:"labourservice_id" json:"labourserviceId"` // 劳务ID
HeadIcon string `orm:"head_icon" json:"headIcon"` // 登陆照片
PacePhoto string `orm:"pace_photo" json:"pacePhoto"` // 人脸照
UserName string `orm:"user_name" json:"userName"` // 人员姓名
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Status string `orm:"status" json:"status"` // 状态
IsPinch string `orm:"is_pinch" json:"isPinch"` // 是否代打
IfManagement string `orm:"if_management" json:"ifManagement"` // 是否班组管理
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
Phone string `orm:"phone" json:"phone"` // 电话
Sex string `orm:"sex" json:"sex"` // 性别
SfzNation string `orm:"sfz_nation" json:"sfzNation"` // 身份证民族
SfzNumber string `orm:"sfz_number" json:"sfzNumber"` // 身份证号码
SfzStart string `orm:"sfz_start" json:"sfzStart"` // 身份证有效开始期
SfzEnd string `orm:"sfz_end" json:"sfzEnd"` // 身份证有效结束期
SfzSite string `orm:"sfz_site" json:"sfzSite"` // 身份证地址
NativePlace string `orm:"native_place" json:"nativePlace"` // 籍贯
YhkNumber string `orm:"yhk_number" json:"yhkNumber"` // 银行卡号
YhkOpeningBank string `orm:"yhk_opening_bank" json:"yhkOpeningBank"` // 开户行
YhkCardholder string `orm:"yhk_cardholder" json:"yhkCardholder"` // 持卡人
ProjectRecord string `orm:"project_record" json:"projectRecord"` // 持卡人
EntryDate *gtime.Time `orm:"entry_date" json:"entryDate"` // 入场时间
LeaveDate *gtime.Time `orm:"leave_date,omitempty" json:"leaveDate"` // 离场时间
}
type BusConstructionUserListRes struct {
Id int64 `json:"id"`
Openid string `json:"openid"`
NickName string `json:"nickName"`
TeamId int64 `json:"teamId"`
HeadIcon string `json:"headIcon"`
PacePhoto string `json:"pacePhoto"`
UserName string `json:"userName"`
ProjectId int64 `json:"projectId"`
Status string `json:"status"`
IsPinch string `json:"isPinch"`
IfManagement string `json:"ifManagement"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
Phone string `json:"phone"`
Sex string `json:"sex"`
SfzNation string `json:"sfzNation"`
SfzNumber string `json:"sfzNumber"`
SfzStart string `json:"sfzStart"`
SfzEnd string `json:"sfzEnd"`
SfzSite string `json:"sfzSite"`
NativePlace string `json:"nativePlace"`
YhkNumber string `json:"yhkNumber"`
YhkOpeningBank string `json:"yhkOpeningBank"`
YhkCardholder string `json:"yhkCardholder"`
ProjectRecord string `json:"projectRecord"`
EntryDate *gtime.Time `json:"entryDate"`
LeaveDate *gtime.Time `json:"leaveDate"`
}
type ModBlackListRes struct {
Id int64 `json:"id"`
Openid string `json:"openid"`
UserName string `json:"userName"`
SfzNumber string `json:"sfzNumber"`
}
// ExcelEntity 结构
type ExcelEntity struct {
Row int64 `json:"row"`
Col int64 `json:"col"`
Data string `json:"data"`
DataType string `json:"dataType"`
ID string `json:"id"`
}
// AttendanceAllEntity 考勤信息导出实体类(所有班组)
type AttendanceAllEntity struct {
ProjectName string `json:"projectName" dc:"项目名称"`
TeamName string `json:"teamName" dc:"班组名称"`
Team []AttendanceEntity `json:"team" dc:"班组"`
}
// AttendanceEntity 考勤信息导出实体类(班组成员)
type AttendanceEntity struct {
Name string `json:"row" dc:"姓名"`
IdentityCard string `json:"identity_card" dc:"身份证号码"`
Type bool `json:"type" dc:"是否退场true已退场 fales未退场"`
Attendance map[string]float32 `json:"attendance" dc:"实际出勤天数"`
}
// BusConstructionUserDepartureInfoRes 施工人员入场退场记录信息
type BusConstructionUserDepartureInfoRes struct {
gmeta.Meta `orm:"table:bus_construction_user_departure"`
Id int64 `orm:"id,primary" json:"id" dc:"主键ID"`
SfzNumber string `orm:"sfz_number" json:"sfzNumber" dc:"身份证号码"`
ProjectId int64 `orm:"project_id" json:"projectId" dc:"项目ID"`
TeamId int64 `orm:"team_id" json:"teamId" dc:"班组ID"`
EntryDate *gtime.Time `orm:"entry_date" json:"entryDate" dc:"入场"`
LeaveDate *gtime.Time `orm:"leave_date" json:"leaveDate" dc:"离场"`
Path string `orm:"path" json:"path" dc:"路径"`
Remark string `orm:"remark" json:"remark" dc:"备注"`
}
type DiSanFang struct {
Id int64 `json:"id"`
Openid string `json:"openid"`
NickName string `json:"nickName"`
TeamId int64 `json:"teamId"`
HeadIcon string `json:"headIcon"`
PacePhoto string `json:"pacePhoto"`
UserName string `json:"userName"`
ProjectId int64 `json:"projectId"`
Status string `json:"status"`
IsPinch string `json:"isPinch"`
IfManagement string `json:"ifManagement"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
Phone string `json:"phone"`
Sex string `json:"sex"`
SfzNation string `json:"sfzNation"`
SfzNumber string `json:"sfzNumber"`
SfzStart string `json:"sfzStart"`
SfzBirth string `json:"sfzBirth"`
SfzEnd string `json:"sfzEnd"`
SfzSite string `json:"sfzSite"`
NativePlace string `json:"nativePlace"`
YhkNumber string `json:"yhkNumber"`
YhkOpeningBank string `json:"yhkOpeningBank"`
YhkCardholder string `json:"yhkCardholder"`
ProjectRecord string `json:"projectRecord"`
EntryDate *gtime.Time `json:"entryDate"`
LeaveDate *gtime.Time `json:"leaveDate"`
PostId string `json:"postId"`
}

View File

@ -0,0 +1,54 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-07 10:17:41
// 生成路径: internal/app/system/model/bus_construction_user_file.go
// 生成人gfast
// desc:微信用户的文件存储
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionUserFileInfoRes is the golang structure for table bus_construction_user_file.
type BusConstructionUserFileInfoRes struct {
gmeta.Meta `orm:"table:bus_construction_user_file"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
UserId int64 `orm:"user_id" json:"userId"` // 用户id
UserImgType string `orm:"user_img_type" json:"userImgType"` // 图片类型
Path string `orm:"path" json:"path"` // 图片路径
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
Remark string `orm:"remark" json:"remark"` // 备注
}
type BusConstructionUserFileListRes struct {
Id int64 `json:"id"`
UserId int64 `json:"userId"`
UserImgType string `json:"userImgType" dc:"图片类型(字典)"`
Path string `json:"path"`
CreatedAt *gtime.Time `json:"createdAt"`
}
type DataRes struct {
BusConstructionUserFileListRes
IdentityCard string `json:"identityCard"`
}
// 施工人员表 bus_construction_user openid 和名字
type BusConstructionUserSafetyFileReq struct {
Openid string `json:"openid"`
UserName string `json:"userName"`
}
// 安全考试的pdf ModelWeChatPdfWoRes 结构体
type BusWechatFileRes struct {
Path string `json:"path" dc:"pdf试卷"`
Type string `json:"type" dc:"1pdf 2图片"`
}

View File

@ -0,0 +1,28 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-07 10:06:34
// 生成路径: internal/app/system/model/bus_construction_user_post.go
// 生成人gfast
// desc:施工人员岗位
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionUserPostInfoRes is the golang structure for table bus_construction_user_post.
type BusConstructionUserPostInfoRes struct {
gmeta.Meta `orm:"table:bus_construction_user_post"`
Id uint64 `orm:"id,primary" json:"id"` //
ConstructionUserId int64 `orm:"construction_user_id" json:"constructionUserId"` // 施工人员id
PostId int64 `orm:"post_id" json:"postId"` // 岗位id
}
type BusConstructionUserPostListRes struct {
Id uint64 `json:"id"`
ConstructionUserId int64 `json:"constructionUserId"`
PostId int64 `json:"postId"`
}

View File

@ -0,0 +1,36 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-20 16:49:36
// 生成路径: internal/app/system/model/bus_corporate_events.go
// 生成人gfast
// desc:企业大事记
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCorporateEventsInfoRes is the golang structure for table bus_corporate_events.
type BusCorporateEventsInfoRes struct {
gmeta.Meta `orm:"table:bus_corporate_events"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
Headline string `orm:"headline" json:"headline"` // 标题
Content string `orm:"content" json:"content"` // 内容
CreatedBy string `orm:"created_by" json:"createdBy"` // 创建人
UpdatedBy string `orm:"updated_by" json:"updatedBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusCorporateEventsListRes struct {
Id int64 `json:"id"`
Headline string `json:"headline"`
Content string `json:"content"`
CreatedBy string `json:"createdBy"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,76 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-04-09 15:40:16
// 生成路径: internal/app/system/model/bus_design_audit.go
// 生成人gfast
// desc:设计审核(竣工、施工、可研)
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusDesignAuditInfoRes is the golang structure for table bus_design_audit.
type BusDesignAuditInfoRes struct {
gmeta.Meta `orm:"table:bus_design_audit"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
TableName string `orm:"table_name" json:"tableName"` // 表名
TableId int64 `orm:"table_id" json:"tableId"` // 表ID
Status string `orm:"status" json:"status"` // 审核状态(1未读 2拒绝 3通过)
Cause string `orm:"cause" json:"cause"` // 拒绝原因
Auditor int64 `orm:"auditor" json:"auditor"` // 审核人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusDesignAuditListRes struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
TableName string `json:"tableName"`
TableId int64 `json:"tableId"`
Status string `json:"status"`
Cause string `json:"cause"`
Auditor int64 `json:"auditor"`
CreatedAt *gtime.Time `json:"createdAt"`
}
// CoryAuditListRes 审核列表PC
type CoryAuditListRes struct {
Id int64 `json:"id"`
FileType int `json:"fileType" dc:"文件状态1正常 2回收站 3彻底删除"`
Type string `json:"type" dc:"文件类型1文件 2文件夹"`
FileName string `json:"fileName" dc:"文件名称"`
FilePath string `json:"filePath" dc:"文件路径"`
TableName string `json:"tableName"`
TableId int64 `json:"tableId"`
Status string `json:"status" dc:"审核状态(1未读 2拒绝 3通过)"`
Cause string `json:"cause" dc:"拒绝原因"`
Auditor int64 `json:"auditor" dc:"审核人"`
AuditorName string `json:"auditorName" dc:"审核人名称"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
}
// ========================================= 设计文档操作记录
type SelectTabNameAndTabIdByDateReq struct {
TableName string `json:"tableName" dc:"表名"`
TableId int64 `json:"tableId" dc:"表ID"`
FatherId int64 `json:"fatherId" dc:"父ID"` //这个只用来取父ID的新增信息有且只会有一条
ProjectId int64 `json:"projectId" dc:"项目ID"`
}
type SelectTabNameAndTabIdByDateRes struct {
gmeta.Meta `orm:"table:bus_design_document_record"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
TableName string `orm:"table_name" json:"tableName"` // 表名
TableId int64 `orm:"table_id" json:"tableId"` // 表ID
DesignOperateType int64 `orm:"design_operate_type" json:"designOperateType"` // 操作类型(字典)
CreatedBy string `orm:"created_by" json:"createdBy"` // 创建人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
}

View File

@ -0,0 +1,39 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 16:31:29
// 生成路径: internal/app/system/model/bus_design_document.go
// 生成人gfast
// desc:设计管理
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusDesignDocumentInfoRes is the golang structure for table bus_design_document.
type BusDesignDocumentInfoRes struct {
gmeta.Meta `orm:"table:bus_design_document"`
Id int64 `orm:"id,primary" json:"id"` // 序号
DocumenName string `orm:"documen_name" json:"documenName"` // 文档名称
Remark string `orm:"remark" json:"remark"` // 备注
DocumentUrl string `orm:"document_url" json:"documentUrl"` // 文件路径
FileId int64 `orm:"file_id" json:"fileId"` // 文件夹id
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Status string `orm:"status" json:"status"` // 状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 上传时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusDesignDocumentListRes struct {
Id int64 `json:"id"`
DocumenName string `json:"documenName"`
Remark string `json:"remark"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,47 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-04-11 17:28:54
// 生成路径: internal/app/system/model/bus_design_period_range.go
// 生成人gfast
// desc:设计-周期范围
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusDesignPeriodRangeInfoRes is the golang structure for table bus_design_period_range.
type BusDesignPeriodRangeInfoRes struct {
gmeta.Meta `orm:"table:bus_design_period_range"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
TableType string `orm:"table_type" json:"tableType"` // 记录类型1竣工 2施工 3可研
FileName string `orm:"file_name" json:"fileName"` // 文件名称
FilePath string `orm:"file_path" json:"filePath"` // 文件路径
IsEntering string `orm:"is_entering" json:"isEntering"` // 路径内容是否存在1否 2是
StartTime string `orm:"start_time" json:"startTime"` // 起始时间
EndTime string `orm:"end_time" json:"endTime"` // 结束时间
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 录入者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusDesignPeriodRangeListRes struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
TableType string `json:"tableType"`
FileName string `json:"fileName"`
FilePath string `json:"filePath"`
IsEntering string `json:"isEntering"`
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,53 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 09:31:22
// 生成路径: internal/app/system/model/bus_engineering_quality.go
// 生成人gfast
// desc:工程质量列
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
)
// BusEngineeringQualityInfoRes is the golang structure for table bus_engineering_quality.
type BusEngineeringQualityInfoRes struct {
gmeta.Meta `orm:"table:bus_engineering_quality"`
Id uint64 `orm:"id,primary" json:"id"` // 序号
UnitName1 string `orm:"unit_name1" json:"unitName1"` // 单位工程
UnitName2 string `orm:"unit_name2" json:"unitName2"` // 子单位工程
UnitName3 string `orm:"unit_name3" json:"unitName3"` // 分部工程
UnitName4 string `orm:"unit_name4" json:"unitName4"` // 子分部工程
UnitName5 string `orm:"unit_name5" json:"unitName5"` // 分项工程
UnitName6 string `orm:"unit_name6" json:"unitName6"` // 检验批
QualityName string `orm:"quality_name" json:"qualityName"` // 工程项目名称
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Status string `orm:"status" json:"status"` // 施工类型状态
FileUrl string `orm:"file_url" json:"fileUrl"` // 文件地址
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreateTime *gtime.Time `orm:"create_time" json:"createTime"` // 创建时间
UpdateTime *gtime.Time `orm:"update_time" json:"updateTime"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusEngineeringQualityListRes struct {
Id uint64 `json:"id"`
UnitName1 string `json:"unitName1"`
UnitName2 string `json:"unitName2"`
UnitName3 string `json:"unitName3"`
UnitName4 string `json:"unitName4"`
UnitName5 string `json:"unitName5"`
UnitName6 string `json:"unitName6"`
QualityName string `json:"qualityName"`
Status string `json:"status"`
FileUrl []*comModel.UpFile `json:"fileUrl"`
CreateBy string `json:"createBy"`
CreateTime *gtime.Time `json:"createTime"`
UpdateTime *gtime.Time `json:"updateTime"`
}

View File

@ -0,0 +1,41 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 11:14:45
// 生成路径: internal/app/system/model/bus_equipment_equipment_unpacking.go
// 生成人gfast
// desc:开箱记录
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEquipmentEquipmentUnpackingInfoRes is the golang structure for table bus_equipment_equipment_unpacking.
type BusEquipmentEquipmentUnpackingInfoRes struct {
gmeta.Meta `orm:"table:bus_equipment_equipment_unpacking"`
UnpackingId int64 `orm:"unpacking_id,primary" json:"unpackingId"` // 序号
EquipmentMaterialsId int64 `orm:"equipment_materials_id" json:"equipmentMaterialsId"` // 设备id
UnpackingName string `orm:"unpacking_name" json:"unpackingName"` // 开箱名称
UnpackingUrl string `orm:"unpacking_url" json:"unpackingUrl"` // 开箱上传文件
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Status string `orm:"status" json:"status"` // 状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusEquipmentEquipmentUnpackingListRes struct {
UnpackingId int64 `json:"unpackingId"`
EquipmentMaterialsId int64 `json:"equipmentMaterialsId"`
UnpackingName string `json:"unpackingName"`
UnpackingUrl string `json:"unpackingUrl"`
ProjectId int64 `json:"projectId"`
Status string `json:"status"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,163 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 11:14:16
// 生成路径: internal/app/system/model/bus_equipment_materials.go
// 生成人gfast
// desc:材料/设备名称
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEquipmentMaterialsInfoRes is the golang structure for table bus_equipment_materials.
type BusEquipmentMaterialsInfoRes struct {
gmeta.Meta `orm:"table:bus_equipment_materials"`
EquipmentMaterialsId int64 `orm:"equipment_materials_id,primary" json:"equipmentMaterialsId"` // 序号
EquipmentMaterialsName string `orm:"equipment_materials_name" json:"equipmentMaterialsName"` // 材料/设备
CompanyId int64 `orm:"company_id" json:"companyId"` // 公司
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目
TypeSpecificationName string `orm:"type_specification_name" json:"typeSpecificationName"` // 规格型号
TypeSpecificationUrl string `orm:"type_specification_url" json:"typeSpecificationUrl"` // 规格型号文件
CertificateConformityName string `orm:"certificate_conformity_name" json:"certificateConformityName"` // 合格证编号
CertificateConformityUrl string `orm:"certificate_conformity_url" json:"certificateConformityUrl"` // 合格证编号文件
QualityName string `orm:"quality_name" json:"qualityName"` // 质量说明书编号
QualityUrl string `orm:"quality_url" json:"qualityUrl"` // 质量说明书文件
InspectionReportName string `orm:"inspection_report_name" json:"inspectionReportName"` // 检验报告编号
InspectionReportUrl string `orm:"inspection_report_url" json:"inspectionReportUrl"` // 检验报告文件
ReexamineReportName string `orm:"reexamine_report_name" json:"reexamineReportName"` // 复试报告编号
ReexamineReportUrl string `orm:"reexamine_report_url" json:"reexamineReportUrl"` // 复试报告文件
UsePart string `orm:"use_part" json:"usePart"` // 使用部位
WeightId string `orm:"weight_id" json:"weightId"` // 计量单位
Remark string `orm:"remark" json:"remark"` // 备注
QuantityCount string `orm:"quantity_count" json:"quantityCount"` // 材料数量
Status string `orm:"status" json:"status"` // 状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除视角
Nr int `orm:"nr" json:"nr"` // 出库数量统计
Rk int `orm:"rk" json:"rk"` // 入库数量统计
TimeOfEntryAndExit *gtime.Time `orm:"timeOfEntryAndExit" json:"timeOfEntryAndExit"` // 出入库最新操作时间
TotalNumber int `orm:"total_number" json:"totalNumber"`
}
type BusEquipmentMaterialsListRes struct {
EquipmentMaterialsId int64 `json:"equipmentMaterialsId"`
EquipmentMaterialsName string `json:"equipmentMaterialsName"`
CompanyId int64 `json:"companyId"`
ProjectId int64 `json:"projectId"`
TypeSpecificationName string `json:"typeSpecificationName"`
TypeSpecificationUrl string `json:"typeSpecificationUrl"`
CertificateConformityName string `json:"certificateConformityName"`
CertificateConformityUrl string `json:"certificateConformityUrl"`
QualityName string `json:"qualityName"`
QualityUrl string `json:"qualityUrl"`
InspectionReportName string `json:"inspectionReportName"`
InspectionReportUrl string `json:"inspectionReportUrl"`
ReexamineReportName string `json:"reexamineReportName"`
ReexamineReportUrl string `json:"reexamineReportUrl"`
UsePart string `json:"usePart"`
WeightId string `json:"weightId"`
Remark string `json:"remark"`
QuantityCount string `json:"quantityCount"`
Status string `json:"status"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
Nr int `json:"nr"` // 出库数量统计
Rk int `json:"rk"` // 入库数量统计
TimeOfEntryAndExit *gtime.Time `json:"timeOfEntryAndExit"` // 最新的出入库时间
}
//app
type BusEquipmentMaterialsAppNameRes struct {
EquipmentMaterialsId int64 `orm:"equipment_materials_id,primary" json:"equipmentMaterialsId" dc:"序号"`
EquipmentMaterialsName string `orm:"equipment_materials_name" json:"equipmentMaterialsName" dc:"材料名称"`
CompanyId int64 `orm:"company_id" json:"companyId" dc:"公司"`
ProjectId int64 `orm:"project_id" json:"projectId" dc:"项目"`
WeightId string `orm:"weight_id" json:"weightId" dc:"计量单位"`
TypeSpecificationName string `orm:"type_specification_name" json:"typeSpecificationName" dc:"规格型号"`
QuantityCount string `json:"quantityCount" dc:"设计量"`
}
type BusEquipmentMaterialsAppListRes struct {
EquipmentMaterialsId int64 `orm:"equipment_materials_id,primary" json:"equipmentMaterialsId" dc:"序号"`
EquipmentMaterialsName string `orm:"equipment_materials_name" json:"equipmentMaterialsName" dc:"材料名称"`
CompanyId int64 `orm:"company_id" json:"companyId" dc:"公司"`
ProjectId int64 `orm:"project_id" json:"projectId" dc:"项目"`
WeightId string `orm:"weight_id" json:"weightId" dc:"计量单位"`
TypeSpecificationName string `orm:"type_specification_name" json:"typeSpecificationName" dc:"规格型号"`
QuantityCount string `json:"quantityCount" dc:"设计量"`
AllInventoryNumber int `json:"allInventoryNumber" dc:"总的入库库存数量"`
AllOutboundNumber int `json:"allOutboundNumber" dc:"总的出库数量"`
}
//appgetid
// BusEquipmentMaterialsAppInfoRes is the golang structure for table bus_equipment_materials.
type BusEquipmentMaterialsAppInfoRes struct {
gmeta.Meta `orm:"table:bus_equipment_materials"`
EquipmentMaterialsId int64 `orm:"equipment_materials_id,primary" json:"equipmentMaterialsId"` // 序号
EquipmentMaterialsName string `orm:"equipment_materials_name" json:"equipmentMaterialsName"` // 材料/设备
CompanyId int64 `orm:"company_id" json:"companyId"` // 公司
CompanyName string `orm:"company_name"json:"companyName" dc:"公司名字"`
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目
TypeSpecificationName string `orm:"type_specification_name" json:"typeSpecificationName" dc:"规格型号"` // 规格型号
TypeSpecificationUrl string `orm:"type_specification_url" json:"typeSpecificationUrl"` // 规格型号文件
CertificateConformityName string `orm:"certificate_conformity_name" json:"certificateConformityName" dc:"合格证编号"` // 合格证编号
CertificateConformityUrl string `orm:"certificate_conformity_url" json:"certificateConformityUrl"` // 合格证编号文件
QualityName string `orm:"quality_name" json:"qualityName" dc:"质量说明书编号"` // 质量说明书编号
QualityUrl string `orm:"quality_url" json:"qualityUrl"` // 质量说明书文件
InspectionReportName string `orm:"inspection_report_name" json:"inspectionReportName" dc:"检验报告编号"` // 检验报告编号
InspectionReportUrl string `orm:"inspection_report_url" json:"inspectionReportUrl"` // 检验报告文件
ReexamineReportName string `orm:"reexamine_report_name" json:"reexamineReportName" dc:"复试报告编号"` // 复试报告编号
ReexamineReportUrl string `orm:"reexamine_report_url" json:"reexamineReportUrl"` // 复试报告文件
UsePart string `orm:"use_part" json:"usePart" dc:"使用部位"` // 使用部位
WeightId string `orm:"weight_id" json:"weightId" dc:"计量单位"` // 计量单位
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
QuantityCount string `orm:"quantity_count" json:"quantityCount" dc:"预计使用量"` // 材料数量
Status string `orm:"status" json:"status" dc:"状态"` // 状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
}
type FourFile struct {
Name string `json:"name" dc:"文件名字"`
Path string `json:"url" dc:"文件路径"`
Size int64 `json:"size" dc:"文件大小"`
Suffix string `json:"fileType" dc:"文件后缀"`
}
// BusEquipmentMaterialsAppInfoRes is the golang structure for table bus_equipment_materials.
type BusEquipmentMaterialsAppFileInfoRes struct {
gmeta.Meta `orm:"table:bus_equipment_materials"`
EquipmentMaterialsId int64 `orm:"equipment_materials_id,primary" json:"equipmentMaterialsId"` // 序号
EquipmentMaterialsName string `orm:"equipment_materials_name" json:"equipmentMaterialsName"` // 材料/设备
CompanyId int64 `orm:"company_id" json:"companyId"` // 公司
CompanyName string `orm:"company_name"json:"companyName" dc:"公司名字"`
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目
TypeSpecificationName string `orm:"type_specification_name" json:"typeSpecificationName" dc:"规格型号"` // 规格型号
TypeSpecificationUrl string `orm:"type_specification_url" json:"typeSpecificationUrl"` // 规格型号文件
CertificateConformityFile []FourFile `json:"certificateConformityFile" dc:"合格证编号"` // 合格证编号
QualityFile []FourFile `json:"qualityFile" dc:"质量说明书编号"` // 质量说明书编号
InspectionReportFile []FourFile `json:"inspectionReportFile" dc:"检验报告编号"` // 检验报告编号
ReexamineReportFile []FourFile `json:"reexamineReportFile" dc:"复试报告编号"` // 复试报告编号
UsePart string `orm:"use_part" json:"usePart" dc:"使用部位"` // 使用部位
WeightId string `orm:"weight_id" json:"weightId" dc:"计量单位"` // 计量单位
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
QuantityCount string `orm:"quantity_count" json:"quantityCount" dc:"预计使用量"` // 材料数量
Status string `orm:"status" json:"status" dc:"状态"` // 状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
}

View File

@ -0,0 +1,63 @@
package model
import (
"github.com/gogf/gf/v2/os/gtime"
)
type BusEquipmentMaterialsExcelListRes struct {
SerialNumber int `json:"serialNumber" dc:"序号"`
Id int `json:"id" dc:"入库设备主键id"`
EquipmentMaterialsName string `json:"equipmentMaterialsName" dc:"设备/材料名称"`
TypeSpecificationName string `json:"typeSpecificationName" dc:"材料型号"`
WeightId string `json:"weightId" dc:"单位"`
QuantityCount string `json:"quantityCount"dc:"设计量"` // 材料数量
Inventory *Inventory `json:"inventory" dc:"入库登记"`
Outbound *Outbound `json:"outbound"dc:"出库登记"`
Residue string `json:"residue" dc:"剩余量"`
Disposition string `json:"disposition"dc:"处理方式"`
}
// 入库登录
type Inventory struct {
Number int `json:"number" dc:"数量"`
Operator string `json:"operator" dc:"签收人"`
OutPutTime *gtime.Time `json:"outPutTime" dc:"入库日期"`
}
// 出库登记
type Outbound struct {
Recipient string `json:"recipient" dc:"交接单位(班组)"`
Number int `json:"number" dc:"数量"`
Shipper string `json:"shipper" dc:"领用人"`
Operator string `json:"operator" dc:"出库人"`
OutPutTime *gtime.Time `json:"outPutTime" dc:"出库日期"`
}
// list结果
type BusEquimentRes struct {
SerialNumber int `json:"SerialNumber" dc:"序号"`
Id int `json:"Id" dc:"bmi.id"`
EquipmentMaterialsId int64 `json:"EquipmentMaterialsId" dc:"材料id"`
EquipmentMaterialsName string `json:"EquipmentMaterialsName" dc:"设备/材料名称"`
TypeSpecificationName string `json:"typeSpecificationName" dc:"材料型号"`
WeightId string `json:"WeightId" dc:"单位"`
QuantityCount string `json:"QuantityCount"dc:"设计量"` // 材料数量
Output string `json:"OutPut" dc:"出入库状态-字典 入库2 出库1"`
Number int `json:"Number" dc:"数量(出/入库的数量)"`
Operator string `json:"Operator" dc:"操作人(入库人、领料人)"`
OutputTime *gtime.Time `json:"OutPutTime" dc:"出入库操作时间"`
UpdateAt *gtime.Time `json:"UpdateAt" dc:"更新时间"`
Residue string `json:"Residue" dc:"剩余量"`
Disposition string `json:"Disposition"dc:"处理方式"`
Recipient string `json:"Recipient"dc:"交接单位(班组)"`
Shipper string `json:"Shipper"dc:"领用人"`
}
// 首页返回表
type BusEquimentIndexRes struct {
EquipmentMaterialsName string `json:"equipmentMaterialsName" dc:"设备/材料名称"`
WeightId string `json:"weightId" dc:"单位"`
QuantityCount int `json:"quantityCount"dc:"设计量"` // 材料数量
InventoryNumber int `json:"inventoryNumber" dc:"入库库存数量"`
OutboundNumber int `json:"outboundNumber" dc:"出库数量"`
}

View File

@ -0,0 +1,105 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-09-13 14:21:30
// 生成路径: internal/app/system/model/bus_equipment_materials_inventory.go
// 生成人gfast
// desc:设备材料入库
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEquipmentMaterialsInventoryInfoRes is the golang structure for table bus_equipment_materials_inventory.
type BusEquipmentMaterialsInventoryInfoRes struct {
gmeta.Meta `orm:"table:bus_equipment_materials_inventory"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
EquipmentMaterialsId int64 `orm:"equipment_materials_id" json:"equipmentMaterialsId"` // 材料ID
OutPut string `orm:"out_put" json:"outPut"` // 出入库
Number int `orm:"number" json:"number"` // 数量
Residue int `orm:"residue" json:"residue"` // 剩余库存数量
Operator string `orm:"operator" json:"operator"` // 出入库负责人
Remark string `orm:"remark" json:"remark"` // 备注
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除视角
OutPutTime *gtime.Time `orm:"out_put_time" json:"outPutTime"` // 删除视角
Path string `orm:"path" json:"path"` // 删除视角
Disposition string `orm:"disposition" json:"disposition" dc:"处理方式"` //处理方式
Recipient string `orm:"recipient" json:"recipient" dc:"交接单位"`
Shipper string `orm:"shipper" json:"shipper" dc:"领用人"`
}
type BusEquipmentMaterialsInventoryListRes struct {
Id int64 `json:"id"`
OutPut string `json:"outPut"`
Number int `json:"number"`
Residue int `json:"residue"`
Operator string `json:"operator"`
Remark string `json:"remark"`
Recipient string `json:"recipient" dc:"交接单位"`
Shipper string `json:"shipper" dc:"领用人""`
CreatedAt *gtime.Time `json:"createdAt"`
OutPutTime *gtime.Time `json:"outPutTime"`
Path string `json:"path"`
}
// 入库总量 和设计量
type BemiInputLinkBemQCRes struct {
QuantityCount string `json:"quantityCount" dc:"设计量 预计使用量"`
InputNumber int `json:"inputNumber" dc:"入库总量"`
}
// app
// app 新增文件
type MaterialsInventoryFileAddApp struct {
Name string `orm:"name" json:"name" dc:"文件名字"`
Path string `orm:"path" json:"url" dc:"文件路径"`
Size int64 `orm:"size" json:"size" dc:"文件大小"`
Suffix string `orm:"suffix" json:"fileType" dc:"文件后缀"`
}
type MaterialsInventoryFileEditApp struct {
Id int64 `json:"id"`
MaterialsInventoryId int64 `json:"materials_inventory_id" dc:"设备材料Id"`
Name string `orm:"name" json:"name" dc:"文件名字"`
Path string `orm:"path" json:"url" dc:"文件路径"`
Size int64 `orm:"size" json:"size" dc:"文件大小"`
Suffix string `orm:"suffix" json:"fileType" dc:"文件后缀"`
}
// applist
type BusEquipmentMaterialsInventoryAppListRes struct {
Id int64 `json:"id" dc:"主键id"`
OutPut string `json:"outPut" dc:"出入库"`
Number int `json:"number" dc:"数量"`
Residue int `json:"residue" dc:"剩余库存量"`
Recipient string `json:"recipient" dc:"交接单位"`
Shipper string `json:"shipper" dc:"领用人""`
OutPutTime *gtime.Time `json:"outPutTime" dc:"进出时间"`
}
// appGet
type BusEquipmentMaterialsInventoryAppInfoRes struct {
Id int64 `json:"id" dc:"主键id"`
EquipmentMaterialsId int64 `orm:"equipment_materials_id" json:"equipmentMaterialsId"` // 材料ID
EquipmentMaterialsName string `orm:"equipment_materials_name" json:"equipmentMaterialsName"` // 材料/设备
OutPut string `json:"outPut" dc:"出入库"`
Number int `json:"number" dc:"数量"`
Residue int `json:"residue" dc:"剩余库存量"`
Operator string `json:"operator" dc:"出入库负责人"`
Remark string `json:"remark" dc:"备注"`
Recipient string `json:"recipient" dc:"交接单位"`
Shipper string `json:"shipper" dc:"领用人"`
OutPutTime *gtime.Time `json:"outPutTime" dc:"进出时间"`
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
File []MaterialsInventoryFileEditApp `json:"file" dc:"文件列表"`
}

View File

@ -0,0 +1,34 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-28 15:27:53
// 生成路径: internal/app/system/model/bus_equipment_materials_weight.go
// 生成人gfast
// desc:计量单位
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEquipmentMaterialsWeightInfoRes is the golang structure for table bus_equipment_materials_weight.
type BusEquipmentMaterialsWeightInfoRes struct {
gmeta.Meta `orm:"table:bus_equipment_materials_weight"`
WeightId int64 `orm:"weight_id,primary" json:"weightId"` // 序号
Weight string `orm:"weight" json:"weight"` // 计量单位名称
Status string `orm:"status" json:"status"` // 状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusEquipmentMaterialsWeightListRes struct {
WeightId int64 `json:"weightId"`
Weight string `json:"weight"`
Status string `json:"status"`
}

View File

@ -0,0 +1,34 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-20 19:38:54
// 生成路径: internal/app/system/model/bus_essential_information.go
// 生成人gfast
// desc:项目基本信息
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEssentialInformationInfoRes is the golang structure for table bus_essential_information.
type BusEssentialInformationInfoRes struct {
gmeta.Meta `orm:"table:bus_essential_information"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
One string `orm:"one" json:"one"` // 发电量
Two string `orm:"two" json:"two"` // 年发电量
Three string `orm:"three" json:"three"` // 当前发电量
Four string `orm:"four" json:"four"` // 减排量
Five string `orm:"five" json:"five"` // 预估发电量
}
type BusEssentialInformationListRes struct {
Id int64 `json:"id"`
One string `json:"one"`
Two string `json:"two"`
Three string `json:"three"`
Four string `json:"four"`
Five string `json:"five"`
}

View File

@ -0,0 +1,41 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-09-15 17:15:59
// 生成路径: internal/app/system/model/bus_folder.go
// 生成人gfast
// desc:文件夹
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusFolderInfoRes is the golang structure for table bus_folder.
type BusFolderInfoRes struct {
gmeta.Meta `orm:"table:bus_folder"`
Id int64 `orm:"id,primary" json:"id"` // 序号
Father int64 `orm:"father" json:"father"` // 大于0表示当前文件夹有父级
FolderType string `orm:"folder_type" json:"folderType"` // 文件夹类型
Icon string `orm:"icon" json:"icon"` // 文件夹图标
Name string `orm:"name" json:"name"` // 文件夹名称
Remark string `orm:"remark" json:"remark"` // 备注
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusFolderListRes struct {
Id int64 `json:"id"`
FolderType string `json:"folderType"`
Icon string `json:"icon"`
Name string `json:"name"`
Remark string `json:"remark"`
CreatedAt *gtime.Time `json:"createdAt"`
QiePian []string `json:"qiePian"`
}

View File

@ -0,0 +1,62 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-09-15 17:16:00
// 生成路径: internal/app/system/model/bus_folder_file.go
// 生成人gfast
// desc:文件
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusFolderFileInfoRes is the golang structure for table bus_folder_file.
type BusFolderFileInfoRes struct {
gmeta.Meta `orm:"table:bus_folder_file"`
Id int64 `orm:"id,primary" json:"id"` // 序号
ProjectId int64 `orm:"project_id" json:"projectId"` // 項目id
FolderId int64 `orm:"folder_id" json:"folderId"` // 所属文件夹
LinkedFolderId *LinkedBusFolderFileBusFolder `orm:"with:id=folder_id" json:"linkedFolderId"`
FileType string `orm:"file_type" json:"fileType"` // 文件类型
Name string `orm:"name" json:"name"` // 文件名称
Size string `orm:"size" json:"size"` // 文件大小
Suffix string `orm:"suffix" json:"suffix"` // 文件后缀
Path string `orm:"path" json:"path"` // 文件路径
Remark string `orm:"remark" json:"remark"` // 备注
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
TableName string `orm:"table_name" json:"tableName"` // 表名
TableId int64 `orm:"table_id" json:"tableId"` // id
UserType string `orm:"user_type" json:"userType"` // 用户类型 1后台 2小程序
}
type LinkedBusFolderFileBusFolder struct {
gmeta.Meta `orm:"table:bus_folder"`
Id int64 `orm:"id" json:"id"` // 主键ID
Name string `orm:"name" json:"name"` // 文件夹名称
}
type BusFolderFileListRes struct {
Id int64 `json:"id"`
FolderId int64 `json:"folderId"`
ProjectId int64 `json:"projectId"`
LinkedFolderId *LinkedBusFolderFileBusFolder `orm:"with:id=folder_id" json:"linkedFolderId"`
FileType string `json:"fileType"`
Name string `json:"name"`
Size string `json:"size"`
Suffix string `json:"suffix"`
Remark string `json:"remark"`
Path string `json:"path"`
CreatedAt *gtime.Time `json:"createdAt"`
TableName string `json:"tableName"`
TableId int64 `json:"tableId"`
UserType string `json:"userType"`
CreateBy string `json:"createBy"` // 创建者
}

View File

@ -0,0 +1,143 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-28 14:53:05
// 生成路径: internal/app/system/model/bus_hse_management.go
// 生成人gfast
// desc:HSE-巡检工单
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusHseManagementInfoRes is the golang structure for table bus_hse_management.
type BusHseManagementInfoRes struct {
gmeta.Meta `orm:"table:bus_hse_management"`
Pid int64 `orm:"pid" json:"pid"` // 父级主键ID
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
StudyType string `orm:"study_type" json:"studyType"` // 检查类型
TourType string `orm:"tour_type" json:"tourType"` // 违章类型字典
InspectionResult string `orm:"inspection_result" json:"inspectionResult"` // 巡检结果
TeamName string `orm:"team_name" json:"teamName"` // 名称(班组/部门)
Corrector string `orm:"corrector" json:"corrector"` // 整改人(班组长)
IsReply string `orm:"is_reply" json:"isReply"` // 是否回复1回复 2不回复
ReplyDate string `orm:"reply_date" json:"replyDate"` // 回复日期
Status string `orm:"status" json:"status"` // 工单状态1通知 2整改 3复查
HiddenDanger string `orm:"hidden_danger" json:"hiddenDanger"` // 问题隐患
Measure string `orm:"measure" json:"measure"` // 整改措施
Review string `orm:"review" json:"review"` // 复查情况
ReviewType string `orm:"review_type" json:"reviewType"` // 复查状态
CreatedBy string `orm:"created_by" json:"createdBy"` // 创建人
UpdatedBy string `orm:"updated_by" json:"updatedBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
CheckTime *gtime.Time `orm:"check_time" json:"checkTime"` // 检查时间
RectificationTime *gtime.Time `orm:"rectification_time" json:"rectificationTime"` // 整改时间
ReviewTime *gtime.Time `orm:"review_time" json:"reviewTime"` // 复查时间
}
type BusHseManagementListRes struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
StudyType string `json:"studyType"`
TourType string `json:"tourType"`
InspectionResult string `json:"inspectionResult"`
TeamName string `json:"teamName"`
Corrector string `json:"corrector"`
IsReply string `json:"isReply"`
ReplyDate string `json:"replyDate"`
Status string `json:"status"`
HiddenDanger string `json:"hiddenDanger"`
Measure string `json:"measure"`
Review string `json:"review"`
ReviewType string `json:"reviewType"`
CreatedBy string `json:"createdBy"`
CreatedAt *gtime.Time `json:"createdAt"`
CheckTime *gtime.Time `json:"checkTime"`
RectificationTime *gtime.Time `json:"rectificationTime"`
ReviewTime *gtime.Time `json:"reviewTime"`
}
type BusHseManagementInfoTwoRes struct {
BusHseManagementInfoRes
ProjectName string `json:"projectName"`
Abarbeitung string `json:"abarbeitung" dc:"整改人"`
Fill string `json:"fill" dc:"创建人(检查、复查)"`
Inspectionccessories []*BusHseManagementPath `json:"inspectionccessories" dc:"巡检附件"`
RefuseList interface{} `json:"refuseList" dc:"拒绝数组结构体"`
}
// HseManagementAppletListRes 小程序检查工单列表
type HseManagementAppletListRes struct {
Id int64 `json:"id" dc:"主键ID"`
ProjectName string `json:"projectName" dc:"项目名称"`
StudyTypeName string `json:"studyTypeName" dc:"检查类型"`
TourTypeName string `json:"tourTypeName" dc:"违章类型"`
UserName string `json:"userName" dc:"整改人"`
Status string `json:"status" dc:"工单状态1通知 2整改 3验证"`
ReviewType string `json:"reviewType" dc:"验证状态1通过 2未通过"`
CreatedBy string `json:"createdBy" dc:"填报人"`
CreatedAt string `json:"createdAt" dc:"填报时间"`
IsReply string `json:"isReply" dc:"是否回复1回复 2不回复"`
RefuseList interface{} `json:"refuseList" dc:"拒绝数组结构体"`
}
// BusHseManagementPath 检查工单附件表
type BusHseManagementPath struct {
gmeta.Meta `orm:"table:bus_hse_management_path"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
TicketId int64 `orm:"ticket_id" json:"ticketId"` // 质量工单主键ID级联删除
Type string `orm:"type" json:"type"` // 类型1巡检 2整改
Name string `orm:"name" json:"name"` // 文件名称
Path string `orm:"path" json:"path"` // 文件路径
FileType string `orm:"file_type" json:"fileType"` // 文件类型(后缀)
}
// BusHseManagementDetailsRes 小程序检查工单详情
type BusHseManagementDetailsRes struct {
Id int64 `json:"id"`
ProjectName string `json:"projectName" dc:"项目名称"`
StudyTypeName string `json:"studyTypeName" dc:"检查类型"`
TourTypeName string `json:"tourTypeName" dc:"违章类型"`
InspectionResult string `json:"inspectionResult" dc:"巡检结果"`
CheckTime *gtime.Time `json:"checkTime" dc:"检查时间"`
ReplyDate string `json:"replyDate" dc:"要求整改期限"`
TeamName string `json:"teamName" dc:"班组"`
Abarbeitung string `json:"abarbeitung" dc:"整改人"`
RectificationTime *gtime.Time `json:"rectificationTime" dc:"整改时间"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
Hidden_danger string `json:"hiddenDanger" dc:"问题隐患"`
Measure string `json:"measure" dc:"整改措施"`
ReviewTime string `json:"reviewTime" dc:"复查时间"`
Review string `json:"review" dc:"复查情况"`
Status string `json:"status" dc:"工单状态1通知 2整改 3复查"`
ReviewType string `json:"reviewType" dc:"复查状态1通过 2未通过"`
Fill string `json:"fill" dc:"创建人(检查、复查)"`
IsReply string `json:"isReply" dc:"是否回复"`
CheckAttachment []*BusHseManagementPath `json:"checkAttachment" dc:"检查附件"`
AbarbeitungAttachment []*BusHseManagementPath `json:"abarbeitungAttachment" dc:"整改附件"`
}
// InsertRejectionRes 安全拒绝重新插入
type InsertRejectionRes struct {
gmeta.Meta `orm:"table:bus_hse_management"`
Pid int64 `orm:"pid" json:"pid"` // 上级id
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
StudyType string `orm:"study_type" json:"studyType"` // 检查类型
TourType string `orm:"tour_type" json:"tourType"` // 违章类型字典
InspectionResult string `orm:"inspection_result" json:"inspectionResult"` // 巡检结果
TeamName string `orm:"team_name" json:"teamName"` // 名称(班组/部门)
Corrector string `orm:"corrector" json:"corrector"` // 整改人(班组长)
IsReply string `orm:"is_reply" json:"isReply"` // 是否回复1回复 2不回复
ReplyDate string `orm:"reply_date" json:"replyDate"` // 回复日期
Status string `orm:"status" json:"status"` // 工单状态1通知 2整改 3复查
HiddenDanger string `orm:"hidden_danger" json:"hiddenDanger"` // 问题隐患
CreatedBy string `orm:"created_by" json:"createdBy"` // 创建人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
CheckTime *gtime.Time `orm:"check_time" json:"checkTime"` // 检查时间
}

View File

@ -0,0 +1,80 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-04-07 17:00:45
// 生成路径: internal/app/system/model/bus_hse_security_log.go
// 生成人gfast
// desc:HSE安全日志
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusHseSecurityLogInfoRes is the golang structure for table bus_hse_security_log.
type BusHseSecurityLogInfoRes struct {
gmeta.Meta `orm:"table:bus_hse_security_log"`
Id int64 `dc:"主键ID" orm:"id,primary" json:"id"`
ProjectId int64 `dc:"项目ID" orm:"project_id" json:"projectId"`
DateOfOccurrence string `dc:"发生日期" orm:"date_of_occurrence" json:"dateOfOccurrence"`
AirTemperatureMax float64 `dc:"最高气温" orm:"air_temperature_max" json:"airTemperatureMax"`
AirTemperatureMin float64 `dc:"最低气温" orm:"air_temperature_min" json:"airTemperatureMin"`
Climate string `dc:"气候(字典)" orm:"climate" json:"climate"`
Progress string `dc:"进展情况" orm:"progress" json:"progress"`
JobContent string `dc:"作业内容" orm:"job_content" json:"jobContent"`
DiscloseTheFacts string `dc:"交底情况" orm:"disclose_the_facts" json:"discloseTheFacts"`
ProgressOfActivity string `dc:"活动情况" orm:"progress_of_activity" json:"progressOfActivity"`
Examine string `dc:"检查情况" orm:"examine" json:"examine"`
Implementation string `dc:"实施情况" orm:"implementation" json:"implementation"`
SafetyInspectionSituation string `dc:"安全检查情况" orm:"safety_inspection_situation" json:"safetyInspectionSituation"`
StoppageOrOvertime string `dc:"停工或加班情况" orm:"stoppage_or_overtime" json:"stoppageOrOvertime"`
OtherRecords string `dc:"其他情况" orm:"other_records" json:"otherRecords"`
Remark string `dc:"备注" orm:"remark" json:"remark"`
CreatedBy string `dc:"创建人" orm:"created_by" json:"createdBy"`
UpdatedBy string `dc:"更新人" orm:"updated_by" json:"updatedBy"`
CreatedAt *gtime.Time `dc:"创建时间" orm:"created_at" json:"createdAt"`
UpdatedAt *gtime.Time `dc:"更新时间" orm:"updated_at" json:"updatedAt"`
DeletedAt *gtime.Time `dc:"删除时间" orm:"deleted_at" json:"deletedAt"`
}
type BusHseSecurityLogListRes struct {
Id int64 `dc:"主键ID" json:"id"`
ProjectId int64 `dc:"项目ID" json:"projectId"`
DateOfOccurrence string `dc:"发生日期" json:"dateOfOccurrence"`
AirTemperatureMax float64 `dc:"最高气温" json:"airTemperatureMax"`
AirTemperatureMin float64 `dc:"最低气温" json:"airTemperatureMin"`
Climate string `dc:"气候(字典)" json:"climate"`
Progress string `dc:"进展情况" json:"progress"`
JobContent string `dc:"作业内容" json:"jobContent"`
DiscloseTheFacts string `dc:"交底情况" json:"discloseTheFacts"`
ProgressOfActivity string `dc:"活动情况" json:"progressOfActivity"`
Examine string `dc:"检查情况" json:"examine"`
Implementation string `dc:"实施情况" json:"implementation"`
SafetyInspectionSituation string `dc:"安全检查情况" json:"safetyInspectionSituation"`
StoppageOrOvertime string `dc:"停工或加班情况" json:"stoppageOrOvertime"`
OtherRecords string `dc:"其他情况" json:"otherRecords"`
Remark string `dc:"备注" json:"remark"`
CreatedBy string `dc:"创建人" json:"createdBy"`
CreatedAt *gtime.Time `dc:"更新人" json:"createdAt"`
}
type BusHseSecurityLogInfoTwoRes struct {
BusHseSecurityLogInfoRes
ClimateName string `dc:"字典名称" orm:"climateName" json:"climateName"`
ProjectName string `dc:"项目名称" orm:"projectName" json:"projectName"`
Fill string `dc:"创建人名称" orm:"fill" json:"fill"`
FileList []*HseSecurityLogPath `json:"fileList" dc:"附件列表"`
}
type HseSecurityLogPath struct {
gmeta.Meta `orm:"table:bus_hse_security_log_path"`
Id int64 `dc:"主键ID" orm:"id,primary" json:"id"`
TicketId int64 `dc:"父主键ID" orm:"ticket_id" json:"ticketId"`
Type string `dc:"类型1文件 2图片" orm:"type" json:"type"`
Name string `dc:"文件名称" orm:"name" json:"name"`
Path string `dc:"文件路径" orm:"path" json:"path"`
FileType string `dc:"文件类型(后缀)" orm:"file_type" json:"fileType"`
}

View File

@ -0,0 +1,159 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-21 15:23:59
// 生成路径: internal/app/system/model/bus_inspection_ticket.go
// 生成人gfast
// desc:质量工单
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusInspectionTicketInfoRes is the golang structure for table bus_inspection_ticket.
type BusInspectionTicketInfoRes struct {
gmeta.Meta `orm:"table:bus_inspection_ticket"`
Pid int64 `orm:"pid" json:"pid"` // 父级主键ID
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
InspectionType string `orm:"inspection_type" json:"inspectionType"` // 巡检类型(关联字典)
InspectionHeadline string `orm:"inspection_headline" json:"inspectionHeadline"` // 巡检主题
InspectionResult string `orm:"inspection_result" json:"inspectionResult"` // 巡检结果
Corrector string `orm:"corrector" json:"corrector"` // 整改人(班组长)
IsReply string `orm:"is_reply" json:"isReply"` // 是否回复1回复 2不回复
ReplyDate string `orm:"reply_date" json:"replyDate"` // 回复日期
Status string `orm:"status" json:"status"` // 工单状态1通知 2整改 3验证
Feedback string `orm:"feedback" json:"feedback"` // 整改反馈
VerificationResult string `orm:"verification_result" json:"verificationResult"` // 验证结果
VerificationType string `orm:"verification_type" json:"verificationType"` // 验证结果
CreatedBy string `orm:"created_by" json:"createdBy"` // 创建人
UpdatedBy string `orm:"updated_by" json:"updatedBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
RectificationTime *gtime.Time `orm:"rectification_time" json:"rectificationTime"` // 整改时间
}
type BusInspectionTicketListRes struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
InspectionType string `json:"inspectionType"`
InspectionHeadline string `json:"inspectionHeadline"`
InspectionResult string `json:"inspectionResult"`
Corrector string `json:"corrector"`
IsReply string `json:"isReply"`
ReplyDate string `json:"replyDate"`
Status string `json:"status"`
Feedback string `json:"feedback"`
VerificationResult string `json:"verificationResult"`
CreatedBy string `json:"createdBy"`
CreatedAt *gtime.Time `json:"createdAt"`
RectificationTime *gtime.Time `json:"rectificationTime"`
}
type PcListRes struct {
BusInspectionTicketInfoRes
ProjectName string `orm:"project_name" json:"projectName" dc:"项目名称"`
One string `orm:"one" json:"one" dc:"填报人"`
Two string `orm:"two" json:"two" dc:"整改人"`
RefuseList interface{} `json:"refuseList" dc:"拒绝数组结构体"`
}
// AppletListRes 小程序检查工单列表
type AppletListRes struct {
Id int64 `json:"id" dc:"主键ID"`
ProjectName string `json:"projectName" dc:"项目名称"`
DictLabel string `json:"dictLabel" dc:"巡检类型"`
UserName string `json:"userName" dc:"整改人"`
InspectionHeadline string `json:"inspectionHeadline" dc:"巡检主题"`
InspectionResult string `json:"inspectionResult" dc:"巡检结果"`
IsReply string `json:"isReply" dc:"是否回复1回复 2不回复"`
Status string `json:"status" dc:"工单状态1通知 2整改 3验证"`
VerificationType string `json:"verificationType" dc:"验证状态1通过 2未通过"`
CreatedBy string `json:"createdBy" dc:"填报人"`
CreatedAt string `json:"createdAt" dc:"填报时间"`
CreatedById string `json:"createdById" dc:"填报人Id"`
RefuseList interface{} `json:"refuseList" dc:"拒绝数组结构体"`
}
// AcquisitionOfCorrectivePersonnelEntityRes 获取整改人(整改人为当前项目的所有班组长)
type AcquisitionOfCorrectivePersonnelEntityRes struct {
OpenId string `json:"openid" dc:"openid"`
UserName string `json:"userName" dc:"整改人名称"`
}
// AppletDetailsRes 小程序检查工单详情
type AppletDetailsRes struct {
Id int64 `json:"id"`
ProjectName string `json:"projectName" dc:"项目名称"`
DictLabel string `json:"dictLabel" dc:"巡检类型"`
InspectionHeadline string `json:"inspectionHeadline" dc:"巡检主题"`
InspectionResult string `json:"inspectionResult" dc:"巡检结果"`
Abarbeitung string `json:"abarbeitung" dc:"整改人"`
IsReply string `json:"isReply" dc:"是否回复1回复 2不回复"`
ReplyDate string `json:"replyDate" dc:"回复时间"`
Fill string `json:"fill" dc:"填报人"`
CreatedAt string `json:"createdAt" dc:"填报时间"`
Feedback string `json:"feedback" dc:"整改反馈"`
VerificationResult string `json:"verificationResult" dc:"验证结果"`
Status string `json:"status" dc:"工单状态1通知 2整改 3验证"`
VerificationType string `json:"verificationType" dc:"验证状态1通过 2未通过"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
RectificationTime *gtime.Time `json:"rectificationTime" dc:"整改时间"`
Inspectionccessories []*BusInspectionTicketPath `json:"inspectionccessories" dc:"巡检附件"`
CorrectiveAttachment []*BusInspectionTicketPath `json:"correctiveAttachment" dc:"整改附件"`
}
// BusInspectionTicketPath 检查工单附件表
type BusInspectionTicketPath struct {
gmeta.Meta `orm:"table:bus_inspection_ticket_path"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
TicketId int64 `orm:"ticket_id" json:"ticketId"` // 质量工单主键ID级联删除
Type string `orm:"type" json:"type"` // 类型1巡检 2整改
Name string `orm:"name" json:"name"` // 文件名称
Path string `orm:"path" json:"path"` // 文件路径
FileType string `orm:"file_type" json:"fileType"` // 文件类型(后缀)
}
// LargeScreenDetailsRes 大屏工单详情
type LargeScreenDetailsEntityRes struct {
Id int64 `json:"id"`
ProjectName string `json:"projectName" dc:"项目名称"`
Fill string `json:"fill" dc:"检查人"`
CheckTime *gtime.Time `json:"checkTime" dc:"检查时间"`
RectificationTime *gtime.Time `json:"rectificationTime" dc:"整改时间"`
Feedback string `json:"feedback" dc:"整改反馈"`
ReviewTime *gtime.Time `json:"reviewTime" dc:"验证时间"`
Abarbeitung string `json:"abarbeitung" dc:"整改人"`
IsReply string `json:"isReply" dc:"是否回复1回复 2不回复"`
ReplyDate string `json:"replyDate" dc:"回复时间"`
InspectionHeadline string `json:"inspectionHeadline" dc:"巡检主题"`
InspectionResult string `json:"inspectionResult" dc:"巡检结果"`
InspectionType string `json:"inspectionType" dc:"巡检类型"`
CreatedAt *gtime.Time `json:"createdAt" dc:"巡检记录时间"`
Status string `json:"status" dc:"工单状态1通知 2整改 3验证"`
VerificationType string `json:"verificationType" dc:"验证状态1通过 2未通过"`
Inspectionccessories []*BusInspectionTicketPath `json:"inspectionccessories" dc:"巡检附件"`
CorrectiveAttachment []*BusInspectionTicketPath `json:"correctiveAttachment" dc:"整改附件"`
}
// ReviewRejectionRes ,需要重新录入数据到整改人
type ReviewRejectionRes struct {
gmeta.Meta `orm:"table:bus_inspection_ticket"`
Pid int64 `orm:"pid" json:"pid"` // 父级主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
InspectionType string `orm:"inspection_type" json:"inspectionType"` // 巡检类型(关联字典)
InspectionHeadline string `orm:"inspection_headline" json:"inspectionHeadline"` // 巡检主题
InspectionResult string `orm:"inspection_result" json:"inspectionResult"` // 巡检结果
Corrector string `orm:"corrector" json:"corrector"` // 整改人(班组长)
IsReply string `orm:"is_reply" json:"isReply"` // 是否回复1回复 2不回复
ReplyDate string `orm:"reply_date" json:"replyDate"` // 回复日期
Status string `orm:"status" json:"status"` // 工单状态1通知 2整改 3验证
CreatedBy string `orm:"created_by" json:"createdBy"` // 创建人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
CheckTime *gtime.Time `orm:"check_time" json:"checkTime"` // 检查时间
}

View File

@ -0,0 +1,70 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 14:02:01
// 生成路径: internal/app/system/model/bus_machinery.go
// 生成人gfast
// desc:机械
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusMachineryInfoRes is the golang structure for table bus_machinery.
type BusMachineryInfoRes struct {
gmeta.Meta `orm:"table:bus_machinery"`
Id uint64 `orm:"id,primary" json:"id" dc:"序号"` // 序号
MachineryName string `orm:"machinery_name" json:"machineryName"dc:"机械名称"` // 机械名称
MachineryNumber string `orm:"machinery_number" json:"machineryNumber" dc:"编号"` // 编号
ProjectId int64 `orm:"project_id" json:"projectId" dc:"项目id"` // 项目id
CheckoutNumber string `orm:"checkout_number" json:"checkoutNumber" dc:"检验证编号"` // 检验证编号
CheckoutUnit string `orm:"checkout_unit" json:"checkoutUnit" dc:"检验单位"` // 检验单位
CheckoutDate string `orm:"checkout_date" json:"checkoutDate" dc:"检定日期/有效期"` // 检定日期/有效期
Status string `orm:"status" json:"status" dc:"施工类型状态"` // 施工类型状态
CreateBy string `orm:"create_by" json:"createBy" dc:"创建者"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy" dc:"更新者"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt" dc:"删除时间"` // 删除时间
Number int `orm:"number" json:"number" dc:" 数量(废弃)"` // 数量(废弃)
EntryTime *gtime.Time `orm:"entry_time" json:"entryTime" dc:"进场时间"` // 进场时间
//Principal string `orm:"principal" json:"principal" dc:"负责人"` // 负责人
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
Ct int `orm:"ct" json:"ct" dc:"数量(出入入场)"` // 数量(出入入场)
}
type BusMachineryListRes struct {
Id uint64 `json:"id"`
MachineryName string `json:"machineryName"`
MachineryNumber string `json:"machineryNumber"`
CheckoutNumber string `json:"checkoutNumber"`
CheckoutUnit string `json:"checkoutUnit"`
CheckoutDate string `json:"checkoutDate"`
Status string `json:"status"`
CreatedAt *gtime.Time `json:"createdAt"`
Number int `json:"number"`
EntryTime *gtime.Time `json:"entryTime"`
//Principal string `json:"principal"`
Remark string `json:"remark"`
CreateBy string `json:"createBy"` // 创建者
MachineryId string `json:"machineryId"`
Ct int `json:"ct"` // 更新者
}
// app列表
type BusMachineryAppListRes struct {
Id uint64 `json:"id"dc:"序号"`
MachineryName string `json:"machineryName" dc:"机械名称"`
MachineryNumber string `json:"machineryNumber"dc:"编号"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
Number int `json:"number"dc:"数量"`
EntryTime *gtime.Time `json:"entryTime"dc:"进场时间"`
//Principal string `json:"principal"dc:"负责人"`
Remark string `json:"remark"dc:"备注"`
CreateBy string `json:"createBy"dc:"创建者"`
Ct int `json:"ct" dc:"数量(出入入场)"` // 更新者
}

View File

@ -0,0 +1,148 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-10-12 11:41:31
// 生成路径: internal/app/system/model/bus_machinery_detail.go
// 生成人gfast
// desc:机械详情
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusMachineryDetailInfoRes is the golang structure for table bus_machinery_detail.
type BusMachineryDetailInfoRes struct {
gmeta.Meta `orm:"table:bus_machinery_detail"`
Id int64 `orm:"id,primary" json:"id" dc:"序号"` // 序号
CheckoutNumber string `orm:"checkout_number" json:"checkoutNumber" dc:"检验证编号"` // 检验证编号
CheckoutUnit string `orm:"checkout_unit" json:"checkoutUnit"dc:"检验单位"` // 检验单位
CheckoutDate string `orm:"checkout_date" json:"checkoutDate" dc:"检定日期/有效期"` // 检定日期/有效期
Status string `orm:"status" json:"status" dc:"施工类型状态 0正常 1停用"` // 施工类型状态 0正常 1停用
EntryTime *gtime.Time `orm:"entry_time" json:"entryTime" dc:"入场时间"` // 入场时间
CreateBy string `orm:"create_by" json:"createBy" dc:"创建者"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy" dc:"更新者"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt" dc:"删除时间"` // 删除时间
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
Picture string `orm:"picture" json:"picture" dc:"4张图片逗号分隔"` // 4张图片逗号分隔
MachineryId int64 `orm:"machinery_id" json:"machineryId" dc:"机械主键ID"` // 机械主键ID
Type string `orm:"type" json:"type" dc:"1出场 2入场"` // 1出场 2入场
Principal string `orm:"principal" json:"principal" dc:"负责人"` // 负责人
}
type BusMachineryDetailListRes struct {
Id int64 `json:"id"`
CheckoutNumber string `json:"checkoutNumber"`
CheckoutUnit string `json:"checkoutUnit"`
CheckoutDate string `json:"checkoutDate"`
Status string `json:"status"`
EntryTime *gtime.Time `json:"entryTime"`
CreatedAt *gtime.Time `json:"createdAt"`
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"` // 更新时间
Remark string `json:"remark"`
Picture string `json:"picture"`
MachineryId int64 `json:"machineryId"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
Type string `json:"type"` // 1出场 2入场
Principal string `json:"principal"`
}
// applist
type BusMachineryDetailAppListRes struct {
Id int64 `json:"id"dc:"序号"`
CheckoutNumber string `json:"checkoutNumber"dc:"检验证编号"`
CheckoutUnit string `json:"checkoutUnit"dc:"检验单位"`
CheckoutDate string `json:"checkoutDate"dc:"检定日期/有效期"`
Status string `json:"status" dc:"0正常 1停用"`
EntryTime *gtime.Time `json:"entryTime"dc:"入场时间"`
CreatedAt *gtime.Time `json:"createdAt"dc:"创建时间"`
Remark string `json:"remark"dc:"备注"`
Picture string `json:"picture"dc:"4张图片逗号分隔"`
MachineryId int64 `json:"machineryId"dc:"机械主键ID"`
CreateBy string `json:"createBy"dc:"创建人"`
UpdateBy string `json:"updateBy"dc:"更新人"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"` // 更新时间
Type string `json:"type" dc:"1出场 2入场"` // 1出场 2入场
Principal string `json:"principal" dc:"负责人"`
}
// getid状态记录详情
type BusMachineryDetailGetIdInfoRes struct {
gmeta.Meta `orm:"table:bus_machinery_detail"`
Id int64 `orm:"id,primary" json:"id" dc:"序号"` // 序号
CheckoutNumber string `orm:"checkout_number" json:"checkoutNumber" dc:"检验证编号"` // 检验证编号
CheckoutUnit string `orm:"checkout_unit" json:"checkoutUnit"dc:"检验单位"` // 检验单位
CheckoutDate string `orm:"checkout_date" json:"checkoutDate" dc:"检定日期/有效期"` // 检定日期/有效期
Status string `orm:"status" json:"status" dc:"施工类型状态 0正常 1停用"` // 施工类型状态 0正常 1停用
EntryTime *gtime.Time `orm:"entry_time" json:"entryTime" dc:"入场时间"` // 入场时间
CreateBy string `orm:"create_by" json:"createBy" dc:"创建者"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy" dc:"更新者"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt" dc:"删除时间"` // 删除时间
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
Picture string `orm:"picture" json:"picture" dc:"4张图片逗号分隔"` // 4张图片逗号分隔
MachineryId int64 `orm:"machinery_id" json:"machineryId" dc:"机械主键ID"` // 机械主键ID
Type string `orm:"type" json:"type" dc:"1出场 2入场"` // 1出场 2入场
Principal string `orm:"principal" json:"principal" dc:"负责人" `
RecordList []*BusMachineryRecordList `json:"recordList" dc:"状态记录详情"`
}
// 新增|修改记录详情
type BusMachineryRecordList struct {
Id string `json:"id" dc:"id"`
MachineryDetailId string `json:"machineryDetailId" dc:"机械详情id"`
Status string `json:"status"dc:"施工类型状态0正常 1停用"`
Type string `json:"type"dc:"1出场 2入场"`
RecordTime string `json:"recordTime"dc:"记录状态时间"`
CreateBy string `json:"createBy"dc:"创建人"`
CreatedAt string `json:"createdAt"dc:"创建时间"`
Principal string `json:"principal" dc:"负责人"`
}
// app 修改文件
type BusMachineryDetailFile struct {
Id int64 `json:"id" dc:"主键"`
Name string `json:"name" dc:"文件名字"`
Url string `json:"url" dc:"文件路径"`
Size int64 `json:"size" dc:"文件大小"`
FileType string `json:"fileType" orm:"type"dc:"文件类型"`
}
// app 新增文件
type BusMachineryDetailAddFile struct {
Name string `json:"name" dc:"文件名字"`
Url string `json:"url" dc:"文件路径"`
Size int64 `json:"size" dc:"文件大小"`
FileType string `json:"fileType" orm:"type"dc:"文件类型"`
}
// appgetid
type BusMachineryDetailAppGetIdInfoRes struct {
gmeta.Meta `orm:"table:bus_machinery_detail"`
Id int64 `orm:"id,primary" json:"id" dc:"序号"` // 序号
CheckoutNumber string `orm:"checkout_number" json:"checkoutNumber" dc:"检验证编号"` // 检验证编号
CheckoutUnit string `orm:"checkout_unit" json:"checkoutUnit"dc:"检验单位"` // 检验单位
CheckoutDate string `orm:"checkout_date" json:"checkoutDate" dc:"检定日期/有效期"` // 检定日期/有效期
Status string `orm:"status" json:"status" dc:"施工类型状态 0正常 1停用"` // 施工类型状态 0正常 1停用
EntryTime *gtime.Time `orm:"entry_time" json:"entryTime" dc:"入场时间"` // 入场时间
CreateBy string `orm:"create_by" json:"createBy" dc:"创建者"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy" dc:"更新者"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt" dc:"删除时间"` // 删除时间
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
Picture string `orm:"picture" json:"picture" dc:"4张图片逗号分隔"` // 4张图片逗号分隔
MachineryId int64 `orm:"machinery_id" json:"machineryId" dc:"机械主键ID"` // 机械主键ID
Type string `orm:"type" json:"type" dc:"1出场 2入场"` // 1出场 2入场
Principal string ` json:"principal" dc:"负责人"` // 负责人
MachineryName string ` json:"machineryName"dc:"机械名称"` // 机械名称
InspectionFile []BusMachineryDetailFile `json:"inspectionFile" dc:"上传设备合格校验单"`
LeaseFile []BusMachineryDetailFile `json:"leaseFile"dc:"上传设备租赁合同"`
}

View File

@ -0,0 +1,108 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-11-20 13:51:38
// 生成路径: internal/app/system/model/bus_payroll_list.go
// 生成人gfast
// desc:工资excel导入形成的
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusPayrollListInfoRes is the golang structure for table bus_payroll_list.
type BusPayrollListInfoRes struct {
gmeta.Meta `orm:"table:bus_payroll_list"`
Id int64 `orm:"id,primary" json:"id"` //
Pid int64 `dc:"父ID"orm:"pid" json:"pid" ` // 父ID
XNumber string `dc:"编号" orm:"x_number" json:"xNumber" ` // 编号
Name string `dc:"姓名" orm:"name" json:"name"` //
IdentityCard string `dc:"身份证号码" orm:"identity_card" json:"identityCard"` //
ContactWay string `dc:"联系方式" orm:"contact_way" json:"contactWay"` //
TeamOrGroup string `dc:"班组" orm:"team_or_group" json:"teamOrGroup"` //
TypeOfWork string `dc:"工种" orm:"type_of_work" json:"typeOfWork"` //
AttendanceTime string `dc:"当月考勤工作时间" orm:"attendance_time" json:"attendanceTime"` //
ActualWorkload string `dc:"当月产生实际工作量" orm:"actual_workload" json:"actualWorkload"` //
Quantity string `dc:"元量" orm:"quantity" json:"quantity"` //
XDay string `dc:"元天" orm:"x_day" json:"xDay"` //
XMonth string `dc:"元月" orm:"x_month" json:"xMonth"` //
OvertimeWage string `dc:"加班工资" orm:"overtime_wage" json:"overtimeWage"` //
Salary string `dc:"应发" orm:"salary" json:"salary"` //
AmountWithheld string `dc:"代扣金额" orm:"amount_withheld" json:"amountWithheld"` //
AmountPaid string `dc:"代缴金额" orm:"amount_paid" json:"amountPaid"` //
DeductOther string `dc:"扣除其他项目金额(如:预支)" orm:"deduct_other" json:"deductOther"` //
AmountPaidOut string `dc:"实发金额" orm:"amount_paid_out" json:"amountPaidOut"` //
ReleaseMode string `dc:"发放方式" orm:"release_mode" json:"releaseMode"` //
CreditCardNumbers string `dc:"银行卡号" orm:"credit_card_numbers" json:"creditCardNumbers"` //
OpeningBank string `dc:"开户行(具体到分行)" orm:"opening_bank" json:"openingBank"` //
CreateBy string `dc:"创建者" orm:"create_by" json:"createBy"` //
UpdateBy string `dc:"更新者" orm:"update_by" json:"updateBy"` //
CreatedAt *gtime.Time `dc:"创建时间" orm:"created_at" json:"createdAt"` //
UpdatedAt *gtime.Time `dc:"更新时间" orm:"updated_at" json:"updatedAt"` //
DeletedAt *gtime.Time `dc:"删除时间" orm:"deleted_at" json:"deletedAt"` //
}
type BusPayrollListListRes struct {
Id int64 `json:"id"`
Name string `dc:"姓名 "json:"name"`
IdentityCard string `dc:"身份证号码 "json:"identityCard"`
ContactWay string `dc:"联系方式 "json:"contactWay"`
TeamOrGroup string `dc:"班组 "json:"teamOrGroup"`
TypeOfWork string `dc:"工种 "json:"typeOfWork"`
AttendanceTime string `dc:"当月考勤工作时间 "json:"attendanceTime"`
ActualWorkload string `dc:"当月产生实际工作量 "json:"actualWorkload"`
Quantity string `dc:"元量 "json:"quantity"`
XDay string `dc:"元天 "json:"xDay"`
XMonth string `dc:"元月 "json:"xMonth"`
OvertimeWage string `dc:"加班工资 "json:"overtimeWage"`
Salary string `dc:"应发 "json:"salary"`
AmountWithheld string `dc:"代扣金额 "json:"amountWithheld"`
AmountPaid string `dc:"代缴金额 "json:"amountPaid"`
DeductOther string `dc:"扣除其他项目金额(如:预支) "json:"deductOther"`
AmountPaidOut string `dc:"实发金额 "json:"amountPaidOut"`
ReleaseMode string `dc:"发放方式 "json:"releaseMode"`
CreditCardNumbers string `dc:"银行卡号 "json:"creditCardNumbers"`
OpeningBank string `dc:"开户行(具体到分行) "json:"openingBank"`
CreateBy string `dc:"创建者 "json:"createBy"`
UpdateBy string `dc:"更新者 "json:"updateBy"`
CreatedAt *gtime.Time `dc:"创建时间 "json:"createdAt"`
}
type JieGouTi struct {
XNumber string `orm:"x_number" json:"xNumber"` // 编号
Name string `orm:"name" json:"name"` // 姓名
IdentityCard string `orm:"identity_card" json:"identityCard"` // 身份证号码
ContactWay string `orm:"contact_way" json:"contactWay"` // 联系方式
TeamOrGroup string `orm:"team_or_group" json:"teamOrGroup"` // 班组
TypeOfWork string `orm:"type_of_work" json:"typeOfWork"` // 工种
AttendanceTime string `orm:"attendance_time" json:"attendanceTime"` // 当月考勤工作时间
ActualWorkload string `orm:"actual_workload" json:"actualWorkload"` // 当月产生实际工作量
Quantity string `orm:"quantity" json:"quantity"` // 元量
XDay string `orm:"x_day" json:"xDay"` // 元天
XMonth string `orm:"x_month" json:"xMonth"` // 元月
OvertimeWage string `orm:"overtime_wage" json:"overtimeWage"` // 加班工资
Salary string `orm:"salary" json:"salary"` // 应发
AmountWithheld string `orm:"amount_withheld" json:"amountWithheld"` // 代扣金额
AmountPaid string `orm:"amount_paid" json:"amountPaid"` // 代缴金额
DeductOther string `orm:"deduct_other" json:"deductOther"` // 扣除其他项目金额(如:预支)
AmountPaidOut string `orm:"amount_paid_out" json:"amountPaidOut"` // 实发金额
ReleaseMode string `orm:"release_mode" json:"releaseMode"` // 发放方式
CreditCardNumbers string `orm:"credit_card_numbers" json:"creditCardNumbers"` // 银行卡号
OpeningBank string `orm:"opening_bank" json:"openingBank"` // 开户行(具体到分行)
}
type QieJieGouTi struct {
Qie []*JieGouTi `json:"qie"`
}
type BusPayrollRes struct {
Id int64 `json:"id" dc:"Id"`
Title string `json:"title" dc:"标题"`
Money string `json:"money" dc:"金额"`
CreateBy string `json:"createBy" dc:"创建人"`
CreatedAt string `json:"createdAt" dc:"创建试时间"`
}

View File

@ -0,0 +1,43 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-10-19 15:17:27
// 生成路径: internal/app/system/model/bus_presetting_bit.go
// 生成人gfast
// desc:摄像头预置位
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusPresettingBitInfoRes is the golang structure for table bus_presetting_bit.
type BusPresettingBitInfoRes struct {
gmeta.Meta `orm:"table:bus_presetting_bit"`
Id int64 `orm:"id,primary" json:"id"` // 序号
CameraId int64 `orm:"camera_id" json:"cameraId"` // 摄像头ID
Serial string `orm:"serial" json:"serial"` // 国标号
Code string `orm:"code" json:"code"` // 通道号
Command string `orm:"command" json:"command"` // 指令
Preset int `orm:"preset" json:"preset"` // 预置位编号
Name string `orm:"name" json:"name"` // 预置位名称
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusPresettingBitListRes struct {
Id int64 `json:"id"`
CameraId int64 `json:"cameraId"`
Serial string `json:"serial"`
Code string `json:"code"`
Command string `json:"command"`
Preset int `json:"preset"`
Name string `json:"name"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,31 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-20 19:45:19
// 生成路径: internal/app/system/model/bus_projectin_progress.go
// 生成人gfast
// desc:在建项目
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusProjectinProgressInfoRes is the golang structure for table bus_projectin_progress.
type BusProjectinProgressInfoRes struct {
gmeta.Meta `orm:"table:bus_projectin_progress"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
ParallelIn float64 `orm:"parallel_in" json:"parallelIn"` // 并网容量
CreatedBy *gtime.Time `orm:"created_by" json:"createdBy"` // 创建时间
}
type BusProjectinProgressListRes struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
ParallelIn float64 `json:"parallelIn"`
CreatedBy *gtime.Time `json:"createdBy"`
}

View File

@ -0,0 +1,46 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-02 17:11:39
// 生成路径: internal/app/system/model/bus_quality.go
// 生成人gfast
// desc:质量文档管理
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
)
// BusQualityInfoRes is the golang structure for table bus_quality.
type BusQualityInfoRes struct {
gmeta.Meta `orm:"table:bus_quality"`
Id uint64 `orm:"id,primary" json:"id"` // 序号
QualityName string `orm:"quality_name" json:"qualityName"` // 质量检查名称
QualityExplain string `orm:"quality_explain" json:"qualityExplain"` // 质量说明
QualityDocument string `orm:"quality_document" json:"qualityDocument"` // 质量检查文件
QualityDocumentObj []*comModel.UpFile `orm:"quality_document_obj" json:"qualityDocumentObj"` // 质量检查文件 cory增加
QualityType string `orm:"quality_type" json:"qualityType"` // 质量类型
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Status string `orm:"status" json:"status"` // 帐号状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusQualityListRes struct {
Id uint64 `json:"id"`
QualityName string `json:"qualityName"`
QualityExplain string `json:"qualityExplain"`
QualityDocument string `json:"qualityDocument"`
QualityDocumentObj []*comModel.UpFile `json:"qualityDocumentObj"`
QualityType string `json:"qualityType"`
ProjectId int64 `json:"projectId"`
Status string `json:"status"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,52 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-10-07 15:52:18
// 生成路径: internal/app/system/model/bus_question_bank.go
// 生成人gfast
// desc:题库
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusQuestionBankInfoRes is the golang structure for table bus_question_bank.
type BusQuestionBankInfoRes struct {
gmeta.Meta `orm:"table:bus_question_bank"`
Id int64 `orm:"id,primary" json:"id"` // 序号
CategoryId int64 `orm:"category_id" json:"categoryId"` // 题目类别
LinkedCategoryId *LinkedBusQuestionBankBusCategory `orm:"with:id=category_id" json:"linkedCategoryId"`
QuestionType string `orm:"question_type" json:"questionType"` // 题目类型1单选、2多选、3判断、4填空、5问答
QuestionText string `orm:"question_text" json:"questionText"` // 题目内容
Options string `orm:"options" json:"options"` // 选项对单选、多选、判断这种固定答案有效以JSON数组形式存储
CorrectAnswer string `orm:"correct_answer" json:"correctAnswer"` // 正确答案
Score float64 `orm:"score" json:"score"` // 得分
WxOrPc string `orm:"wx_or_pc" json:"wxOrPc"` // 创建人类型1pc、2小程序
CreateBy string `orm:"create_by" json:"createBy"` // 创建人
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type LinkedBusQuestionBankBusCategory struct {
gmeta.Meta `orm:"table:bus_category"`
Id int64 `orm:"id" json:"id"` // 主键ID
CategoryName string `orm:"category_name" json:"categoryName"` // 题库类别
}
type BusQuestionBankListRes struct {
Id int64 `json:"id"`
CategoryId int64 `json:"categoryId"`
LinkedCategoryId *LinkedBusQuestionBankBusCategory `orm:"with:id=category_id" json:"linkedCategoryId"`
QuestionType string `json:"questionType"`
QuestionText string `json:"questionText"`
Options string `json:"options"`
CorrectAnswer string `json:"correctAnswer"`
Score float64 `json:"score"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,118 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-11-01 17:33:04
// 生成路径: internal/app/system/model/bus_question_save.go
// 生成人gfast
// desc:用户试卷存储
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusQuestionSaveInfoRes is the golang structure for table bus_question_save.
type BusQuestionSaveInfoRes struct {
gmeta.Meta `orm:"table:bus_question_save"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
Openid string `orm:"openid" json:"openid"` // openid
BankId int64 `orm:"bank_id" json:"bankId"` // 题库ID
Answer string `orm:"answer" json:"answer"` // 答案
Correct string `orm:"correct" json:"correct"` // 答题是否正确1正确 2错误
Score float64 `orm:"score" json:"score"` // 得分(当前题)
Sign string `orm:"sign" json:"sign"` // 签名路径
TakeTime int64 `orm:"take_time" json:"takeTime"` // 用时时间(时间戳/秒)
TimeOut int `orm:"time_out" json:"timeOut"` // 最大超时时间(单位/分钟)
Pass string `orm:"pass" json:"pass"` // 及格线/总分格式60,100
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusQuestionSaveListRes struct {
Id int64 `json:"id"`
Openid string `json:"openid"`
BankId int64 `json:"bankId"`
Answer string `json:"answer"`
Correct string `json:"correct"`
Score float64 `json:"score"`
Sign string `json:"sign"`
TakeTime int64 `json:"takeTime"`
TimeOut int `json:"timeOut"`
Pass string `json:"pass"`
CreatedAt *gtime.Time `json:"createdAt"`
}
// ModelWeChatPdfWoRes 安全考试 返回列表
type ModelWeChatPdfWoRes struct {
Openid string `orm:"openid" json:"openid" dc:"openid"`
UserName string `orm:"userName" json:"userName" dc:"用户姓名"`
Pass string `orm:"pass" json:"pass" dc:"及格分/满分"`
SumScore string `orm:"sumScore" json:"sumScore" dc:"得分"`
Path string `orm:"path" json:"path" dc:"pdf试卷"`
TakeTime int64 `orm:"takeTime" json:"takeTime" dc:"已用考试时间(单位/秒)"`
TakeTimeStr string `orm:"takeTimeStr" json:"takeTimeStr" dc:"已用考试时间(秒转字符串)"`
TimeOut int64 `orm:"timeOut" json:"timeOut" dc:"考试时间(单位/分)"`
TimeOutStr string `orm:"timeOutStr" json:"timeOutStr" dc:"考试时间(分转字符串)"`
CreatedAt *gtime.Time `orm:"createdAt" json:"createdAt" dc:"创建"`
Type string `orm:"type" json:"type" dc:"1pdf 2图片"`
OTO string `orm:"oto" json:"oto" dc:"线上1 线下2"`
}
// ExaminationPaperRes 生成试卷返回结果
type ExaminationPaperRes struct {
UserName string `orm:"user_name" json:"userName"` // 用户姓名
Pass string `orm:"pass" json:"pass"` // 及格线/总分格式60,100
SumScore string `orm:"sumScore" json:"sumScore"` // 总得分
Single *ExaminationPaperOne `json:"singleList" dc:"单选题"`
Multiple *ExaminationPaperOne `json:"multipleList" dc:"多选题"`
Estimate *ExaminationPaperOne `json:"estimateList" dc:"判断题"`
Sign string `orm:"sign" json:"sign"` // 签名路径
Openid string `orm:"openid" json:"openid"` // openid
}
type ExaminationPaperOne struct {
Topic string `p:"categoryId" dc:"题目+分数"`
List []*ExaminationPaperTwo `json:"list"`
}
type ExaminationPaperTwo struct {
QuestionText string `orm:"question_text" json:"questionText"` // 内容
Options string `orm:"options" json:"options"` // 选择
Answer string `orm:"answer" json:"answer"` // 用户填写答案
CorrectAnswer string `orm:"correct_answer" json:"correctAnswer"` // 正确答案答案
Correct string `orm:"correct" json:"correct"` // 答题是否正确1正确 2错误
Score float64 `orm:"score" json:"score"` // 得分(当前题)
}
// WoEntity 转pdf试卷需要
type WoEntity struct {
QuestionType string `orm:"question_type" json:"questionType"` // 类型
QuestionText string `orm:"question_text" json:"questionText"` // 内容
Options string `orm:"options" json:"options"` // 选择
Answer string `orm:"answer" json:"answer"` // 用户填写答案
CorrectAnswer string `orm:"correct_answer" json:"correctAnswer"` // 正确答案答案
Correct string `orm:"correct" json:"correct"` // 答题是否正确1正确 2错误
Score float64 `orm:"score" json:"score"` // 得分(当前题)
UserName string `orm:"user_name" json:"userName"` // 用户姓名
Pass string `orm:"pass" json:"pass"` // 及格线/总分格式60,100
SumScore float64 `orm:"sumScore" json:"sumScore"` // 总得分
Sign string `orm:"sign" json:"sign"` // 签名路径
}
// BusQuestionOfflineRes 线下安全考试信息
type BusQuestionOfflineRes struct {
gmeta.Meta `orm:"table:bus_question_offline"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
FullMark float64 `orm:"full_mark" json:"fullMark"` // 满分
Score float64 `orm:"score" json:"score"` // 得分
Pass float64 `orm:"pass" json:"pass"` // 及格分
Img string `orm:"img" json:"img"` // 试卷图片,多个逗号分隔
Openid string `orm:"openid" json:"openid"` // openid
IdentityCard string `orm:"identityCard" json:"identityCard"` // 身份证
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
//CreatedAt *gtime.Time `orm:"createdAt" json:"createdAt"`
}

View File

@ -0,0 +1,42 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-10-07 17:11:20
// 生成路径: internal/app/system/model/bus_questions_configuration.go
// 生成人gfast
// desc:题库配置
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusQuestionsConfigurationInfoRes is the golang structure for table bus_questions_configuration.
type BusQuestionsConfigurationInfoRes struct {
gmeta.Meta `orm:"table:bus_questions_configuration"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
SingleChoice int `orm:"single_choice" json:"singleChoice"` // 单选题(单位/道)
SingleScore float64 `orm:"single_score" json:"singleScore"` // 单选分数
MultipleChoice int `orm:"multiple_choice" json:"multipleChoice"` // 多选题(单位/道)
MultipleScore float64 `orm:"multiple_score" json:"multipleScore"` // 多选分数
Estimate int `orm:"estimate" json:"estimate"` // 判断题(单位/道)
EstimateScore float64 `orm:"estimate_score" json:"estimateScore"` // 判断分数
FullMark float64 `orm:"full_mark" json:"fullMark"` // 满分
PassingScore float64 `orm:"passing_score" json:"passingScore"` // 及格线
AnswerTime int `orm:"answer_time" json:"answerTime"` // 最大答题时间(单位/分)
}
type BusQuestionsConfigurationListRes struct {
Id int64 `json:"id"`
SingleChoice int `json:"singleChoice"`
SingleScore float64 `json:"singleScore"`
MultipleChoice int `json:"multipleChoice"`
MultipleScore float64 `json:"multipleScore"`
Estimate int `json:"estimate"`
EstimateScore float64 `json:"estimateScore"`
FullMark float64 `json:"fullMark"`
PassingScore float64 `json:"passingScore"`
AnswerTime int `json:"answerTime"`
}

View File

@ -0,0 +1,136 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-02-02 15:18:48
// 生成路径: internal/app/system/model/bus_reissue_a_card.go
// 生成人gfast
// desc:施工人员补卡申请
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
commonApi "github.com/tiger1103/gfast/v3/api/v1/common"
)
// BusReissueACardInfoRes is the golang structure for table bus_reissue_a_card.
type BusReissueACardInfoRes struct {
gmeta.Meta `orm:"table:bus_reissue_a_card"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
Openid string `orm:"openid" json:"openid"` // 申请人
Scope string `orm:"scope" json:"scope"` // 申请补卡范围
Explain string `orm:"explain" json:"explain"` // 申请补卡说明
Ganger string `orm:"ganger" json:"ganger"` // 班组长
GangerOpinion string `orm:"ganger_opinion" json:"gangerOpinion"` // 班组长意见1未读 2同意 3拒绝
GangerExplain string `orm:"ganger_explain" json:"gangerExplain"` // 班组长说明
GangerTime *gtime.Time `orm:"ganger_time" json:"gangerTime"` // 班组长操作时间
ManagerOpinion string `orm:"manager_opinion" json:"managerOpinion"` // 管理员意见1未读 2同意 3拒绝
ManagerExplain string `orm:"manager_explain" json:"managerExplain"` // 管理员说明
UpdateBy string `orm:"update_by" json:"updateBy"` // 后台操作人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
TeamId int64 `orm:"team_id" json:"teamId"` // 班组ID
Type string `orm:"type" json:"type"` // type
ProjectName string `orm:"project_name" json:"projectName"`
TeamName string `orm:"team_name" json:"teamName"`
UserName string `orm:"user_name" json:"userName" dc:"真实姓名"`
}
type BusReissueACardListRes struct {
Id int64 `json:"id"`
Openid string `json:"openid"`
Scope string `json:"scope"`
Explain string `json:"explain"`
Ganger string `json:"ganger"`
GangerOpinion string `json:"gangerOpinion"`
GangerExplain string `json:"gangerExplain"`
GangerTime *gtime.Time `json:"gangerTime"`
ManagerOpinion string `json:"managerOpinion"`
ManagerExplain string `json:"managerExplain"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
UpdatedAt *gtime.Time `json:"updatedAt"`
ProjectId int64 `json:"projectId"`
TeamId int64 `json:"teamId"`
ProjectName string `json:"projectName"`
TeamName string `json:"teamName"`
Type string `json:"type"`
CardMode string `json:"cardMode" dc:"卡片状态(文字)"`
CardNumber string `json:"cardNumber" dc:"卡片状态数字1待审核 2审核中 3已拒绝 4已同意"`
UserName string `json:"userName" dc:"真实姓名"`
}
type WxBusReissueACardListRes struct {
Id int64 `json:"id"`
NickName string `json:"nickName" dc:"头像"`
UserName string `json:"userName" dc:"真实姓名"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"管理员操作时间"`
Openid string `json:"openid"`
Scope string `json:"scope" dc:"补卡范围"`
Explain string `json:"explain" dc:"补卡说明"`
Ganger string `json:"ganger" dc:"班组长"`
GangerName string `json:"gangerName" dc:"班组长姓名"`
GangerOpinion string `json:"gangerOpinion" dc:"班组长意见1未读 2同意 3拒绝"`
GangerExplain string `json:"gangerExplain" dc:"班组长说明"`
GangerTime *gtime.Time `json:"gangerTime" dc:"班组长操作时间"`
ManagerOpinion string `json:"managerOpinion" dc:"管理员意见1未读 2同意 3拒绝"`
ManagerExplain string `json:"managerExplain" dc:"管理员说明"`
CardMode string `json:"cardMode" dc:"卡片状态(文字)"`
CardNumber string `json:"cardNumber" dc:"卡片状态数字1待审核 2审核中 3已拒绝 4已同意"`
ProjectWhereYouWork string `json:"projectWhereYouWork" dc:"所在项目"`
ProjectId int64 `json:"projectId"`
TeamId int64 `json:"teamId"`
//UpdateBy string `json:"updateBy dc:"管理员"`
}
type AppTheTeamLeaderSupplementCardApprovalList struct {
Id int64 `json:"id"`
HeadIcon string `json:"headIcon" dc:"头像"`
UserName string `json:"userName" dc:"真实姓名"`
Scope string `json:"scope" dc:"补卡范围"`
Explain string `json:"explain" dc:"补卡说明"`
ManagerOpinion string `json:"managerOpinion" dc:"管理员意见1未读 2同意 3拒绝"`
GangerOpinion string `json:"gangerOpinion" dc:"班组长意见1未读 2同意 3拒绝"`
CardMode string `json:"cardMode" dc:"卡片状态"`
CardNumber string `json:"cardNumber" dc:"卡片状态数字1待审核 2审核中 3已拒绝 4已同意"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
GangerTime *gtime.Time `json:"gangerTime" dc:"班组长审批时间"`
}
type AppTheTeamLeaderSupplementCardApprovalRes struct {
commonApi.PageReq
Openid string `json:"openid" dc:"openid" `
Type string `json:"type" dc:"1审批列表 2审批列表记录"`
YearAndMonth string `p:"yearAndMonth" dc:"日期格式2024-04-01" v:"date-format:Y-m-d#时间格式为2024-04-01"`
}
type AppApprovalRecordDetailsRes struct {
Id int64 `json:"id"`
UserName string `json:"userName" dc:"真实姓名"`
Openid string `json:"openid"`
Scope string `json:"scope" dc:"补卡范围"`
Explain string `json:"explain" dc:"补卡说明"`
CardMode string `json:"cardMode" dc:"卡片状态"`
CardNumber string `json:"cardNumber" dc:"卡片状态数字1待审核 2审核中 3已拒绝 4已同意"`
ProjectWhereYouWork string `json:"projectWhereYouWork" dc:"所在项目"`
ProjectId int64 `json:"projectId"`
TeamId int64 `json:"teamId"`
GangerHead string `json:"gangerHead" dc:"班组长头像"`
GangerName string `json:"gangerName" dc:"班组长姓名"`
Ganger string `json:"ganger" dc:"班组长"`
GangerOpinion string `json:"gangerOpinion" dc:"班组长意见1未读 2同意 3拒绝"`
GangerExplain string `json:"gangerExplain" dc:"班组长说明"`
ManagerHead string `json:"managerHead" dc:"管理员头像"`
ManagerName string `json:"managerName" dc:"管理员姓名"`
UpdateBy string `json:"updateBy" dc:"管理员"`
ManagerOpinion string `json:"managerOpinion" dc:"管理员意见1未读 2同意 3拒绝"`
ManagerExplain string `json:"managerExplain" dc:"管理员说明"`
}

View File

@ -0,0 +1,38 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 16:04:06
// 生成路径: internal/app/system/model/bus_research_document.go
// 生成人gfast
// desc:科研文档
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusResearchDocumentInfoRes is the golang structure for table bus_research_document.
type BusResearchDocumentInfoRes struct {
gmeta.Meta `orm:"table:bus_research_document"`
Id int64 `orm:"id,primary" json:"id"` // 序号
DocumenName string `orm:"documen_name" json:"documenName"` // 文档名称
Remark string `orm:"remark" json:"remark"` // 备注
DocumentUrl string `orm:"document_url" json:"documentUrl"` // 文件路径
FileId int64 `orm:"file_id" json:"fileId"` // 文件夹id
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Status string `orm:"status" json:"status"` // 状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 上传时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusResearchDocumentListRes struct {
Id int64 `json:"id"`
DocumenName string `json:"documenName"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,51 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-02 15:40:48
// 生成路径: internal/app/system/model/bus_safety.go
// 生成人gfast
// desc:安全例会管理
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
comModel "github.com/tiger1103/gfast/v3/internal/app/common/model"
)
// BusSafetyInfoRes is the golang structure for table bus_safety.
type BusSafetyInfoRes struct {
gmeta.Meta `orm:"table:bus_safety"`
Id int64 `orm:"id,primary" json:"id"` // 序号
SafetyName string `orm:"safety_name" json:"safetyName"` // 安全检查名称
SafetyExplain string `orm:"safety_explain" json:"safetyExplain"` // 安全说明
SafetyDocument string `orm:"safety_document" json:"safetyDocument"` // 安全检查文件
SafetyDocumentObj []*comModel.UpFile `orm:"safety_document_obj" json:"safetyDocumentObj"` // 安全检查文件对象 cory增加
SafetyType string `orm:"safety_type" json:"safetyType"` // 安全类型
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Status string `orm:"status" json:"status"` // 帐号状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
StartDate *gtime.Time `orm:"start_date" json:"startDate"` //实际创建时间
SafetyGrade string `orm:"safety_grade" json:"safetyGrade"` //等级
UserType string `orm:"user_type" json:"userType"` //用户类型
}
type BusSafetyListRes struct {
Id int64 `json:"id"`
SafetyName string `json:"safetyName"`
SafetyExplain string `json:"safetyExplain"`
SafetyDocument string `json:"safetyDocument"`
SafetyType string `json:"safetyType"`
ProjectId int64 `json:"projectId"`
Status string `json:"status"`
StartDate *gtime.Time `json:"startDate"`
SafetyGrade string `json:"safetyGrade"`
UserType string `json:"userType"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,90 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-02-01 16:39:01
// 生成路径: internal/app/system/model/bus_salary_details.go
// 生成人gfast
// desc:员工工资考核记录
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusSalaryDetailsInfoRes is the golang structure for table bus_salary_details.
type BusSalaryDetailsInfoRes struct {
gmeta.Meta `orm:"table:bus_salary_details"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
SfzNumber string `orm:"sfz_number" json:"sfzNumber"` // 身份证
Name string `orm:"name" json:"name"` // 户名
Account string `orm:"account" json:"account"` // 账户
BankingHouse string `orm:"banking_house" json:"bankingHouse"` // 银行
SumDuration float64 `orm:"sum_duration" json:"sumDuration"` // 当月总时长
Salary float64 `orm:"salary" json:"salary"` // 薪水(天)
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
TeamId int64 `orm:"team_id" json:"teamId"` // 班组id
ProjectName string `orm:"project_name" json:"projectName"` // 项目名称
TeamName string `orm:"team_name" json:"teamName"` // 班组名称
DateOfIssue string `orm:"date_of_issue" json:"dateOfIssue"` // 发放年月
Lister string `orm:"lister" json:"lister"` // 制表人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusSalaryDetailsListRes struct {
Id int64 `json:"id"`
SfzNumber string `json:"sfzNumber"`
Name string `json:"name"`
Account string `json:"account"`
SumDuration float64 `json:"sumDuration"`
Salary float64 `json:"salary"`
DateOfIssue string `json:"dateOfIssue"`
Lister string `json:"lister"`
CreatedAt *gtime.Time `json:"createdAt"`
}
// AttendanceImportRes 新增考勤记录实体类
type AttendanceImportRes struct {
Name string `json:"name" dc:"用户名"`
SfzNumber string `json:"sfzNumber" dc:"身份证"`
Dates []DateRes `json:"dates" dc:"考勤详情"`
Lister string `json:"lister" dc:"制表人"`
SumDuration float64 `json:"sumDuration" dc:"工作总时长"`
DateOfIssue string `json:"dateOfIssue" dc:"发放年月"`
}
type AttendanceImportTwoRes struct {
AttendanceImportRes
Id int64 `json:"id" dc:"主键ID"`
UserName string `json:"userName" dc:"户名"`
YhkNumber string `json:"yhkNumber" dc:"银行卡"`
YhkOpeningBank string `json:"yhkOpeningBank" dc:"开户行"`
ProjectId int64 `json:"projectId" dc:"项目id"`
TeamId int64 `json:"teamId" dc:"班组id"`
FinalSalary float64 `json:"finalSalary" dc:"薪水"`
}
// DateRes 新增考勤记录实体类
type DateRes struct {
WorkingDate string `json:"working_date" dc:"工作日期"`
Duration string `json:"duration" dc:"工作时长"`
}
type DateTwoRes struct {
WorkingDate string `json:"working_date" dc:"工作日期"`
Duration string `json:"duration" dc:"工作时长"`
SfzNumber string `json:"sfzNumber" dc:"身份证"`
DateOfIssue string `json:"dateOfIssue" dc:"发放年月"`
}
// SalarySheetRes 导出为excel工资条的数据
type SalarySheetRes struct {
YhkNumber string `json:"yhkNumber" dc:"账号"`
UserName string `json:"userName" dc:"户名"`
Money string `json:"money" dc:"金额"`
BankingHouse string `json:"bankingHouse" dc:"行名(开户行)"`
ProjectName string `json:"projectName" dc:"项目名称"`
TeamName string `json:"teamName" dc:"班组名称"`
}

View File

@ -0,0 +1,53 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 17:39:12
// 生成路径: internal/app/system/model/bus_scheduled_plan_type.go
// 生成人gfast
// desc:施工进度分类
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusScheduledPlanTypeInfoRes is the golang structure for table bus_scheduled_plan_type.
type BusScheduledPlanTypeInfoRes struct {
gmeta.Meta `orm:"table:bus_scheduled_plan_type"`
PlanTypeId int `orm:"plan_type_id,primary" json:"planTypeId"` // 施工类型id
ParentId int `orm:"parent_id" json:"parentId"` // 父文件id
Ancestors string `orm:"ancestors" json:"ancestors"` // 祖级列表
PlanTypeName string `orm:"plan_type_name" json:"planTypeName"` // 施工类型名称
PlannedTime int64 `orm:"planned_time" json:"plannedTime"` // 计划施工持续时间
PlanStartTime string `orm:"plan_start_time" json:"planStartTime"` // 计划工期开始时间
PlanEndTime string `orm:"plan_end_time" json:"planEndTime"` // 计划工期结束时间
OrderNum int `orm:"order_num" json:"orderNum"` // 显示顺序
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Leader string `orm:"leader" json:"leader"` // 负责人
Status string `orm:"status" json:"status"` // 施工类型状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusScheduledPlanTypeListRes struct {
PlanTypeId int `json:"planTypeId"`
ParentId int `json:"parentId"`
Ancestors string `json:"ancestors"`
PlanTypeName string `json:"planTypeName"`
PlannedTime int64 `json:"plannedTime"`
PlanStartTime string `json:"planStartTime"`
PlanEndTime string `json:"planEndTime"`
OrderNum int `json:"orderNum"`
ProjectId int64 `json:"projectId"`
Leader string `json:"leader"`
Status string `json:"status"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,55 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 17:15:27
// 生成路径: internal/app/system/model/bus_scheduled_plan_type_detail.go
// 生成人gfast
// desc:施工进度月报,年报分类
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusScheduledPlanTypeDetailInfoRes is the golang structure for table bus_scheduled_plan_type_detail.
type BusScheduledPlanTypeDetailInfoRes struct {
gmeta.Meta `orm:"table:bus_scheduled_plan_type_detail"`
PlanTypeDetailId int `orm:"plan_type_detail_id,primary" json:"planTypeDetailId"` // 施工类型id
ParentId int `orm:"parent_id" json:"parentId"` // 父文件id
Ancestors string `orm:"ancestors" json:"ancestors"` // 祖级列表
PlanTypeName string `orm:"plan_type_name" json:"planTypeName"` // 施工类型名称
PlannedTime int64 `orm:"planned_time" json:"plannedTime"` // 计划施工持续时间
PlanStartTime string `orm:"plan_start_time" json:"planStartTime"` // 计划工期开始时间
PlanEndTime string `orm:"plan_end_time" json:"planEndTime"` // 计划工期结束时间
OrderNum int `orm:"order_num" json:"orderNum"` // 显示顺序
DateValue string `orm:"date_value" json:"dateValue"` // 时间
DateType string `orm:"date_type" json:"dateType"` // 日期类型状态
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
Leader string `orm:"leader" json:"leader"` // 负责人
Status string `orm:"status" json:"status"` // 施工类型状态
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusScheduledPlanTypeDetailListRes struct {
PlanTypeDetailId int `json:"planTypeDetailId"`
ParentId int `json:"parentId"`
Ancestors string `json:"ancestors"`
PlanTypeName string `json:"planTypeName"`
PlannedTime int64 `json:"plannedTime"`
PlanStartTime string `json:"planStartTime"`
PlanEndTime string `json:"planEndTime"`
OrderNum int `json:"orderNum"`
DateValue string `json:"dateValue"`
DateType string `json:"dateType"`
ProjectId int64 `json:"projectId"`
Leader string `json:"leader"`
Status string `json:"status"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,55 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-02 15:28:49
// 生成路径: internal/app/system/model/bus_scheduled_weekly.go
// 生成人gfast
// desc:周报
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusScheduledWeeklyInfoRes is the golang structure for table bus_scheduled_weekly.
type BusScheduledWeeklyInfoRes struct {
gmeta.Meta `orm:"table:bus_scheduled_weekly"`
PlanWeeklyId int64 `orm:"plan_weekly_id,primary" json:"planWeeklyId"` // 施工周报id
PlanPeriodId int64 `orm:"plan_period_id" json:"planPeriodId"` // 施工分类id
WeeklyPlanName string `orm:"weekly_plan_name" json:"weeklyPlanName"` // 施工分类下第几周
WeeklyStartTime string `orm:"weekly_start_time" json:"weeklyStartTime"` // 周开始时间
WeeklyEndTime string `orm:"weekly_end_time" json:"weeklyEndTime"` // 周完成时间
WeeklyPlanFinish string `orm:"weekly_plan_finish" json:"weeklyPlanFinish"` // 周计划完成量
WeeklyRealityFinish string `orm:"weekly_reality_finish" json:"weeklyRealityFinish"` // 周实际完成量
WeekyAccumulativeFinish string `orm:"weeky_accumulative_finish" json:"weekyAccumulativeFinish"` // 累计完成量
WeekyAccumulativeTotal string `orm:"weeky_accumulative_total" json:"weekyAccumulativeTotal"` // 总量
CompletionRate string `orm:"completion_rate" json:"completionRate"` // 累计完成比例
Leader string `orm:"leader" json:"leader"` // 负责人
Status string `orm:"status" json:"status"` // 施工类型状态
WeeklyDocumentUrl string `orm:"weekly_document_url" json:"weeklyDocumentUrl"` // 施工周报文档地址
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusScheduledWeeklyListRes struct {
PlanWeeklyId int64 `json:"planWeeklyId"`
PlanPeriodId int64 `json:"planPeriodId"`
WeeklyPlanName string `json:"weeklyPlanName"`
WeeklyStartTime string `json:"weeklyStartTime"`
WeeklyEndTime string `json:"weeklyEndTime"`
WeeklyPlanFinish string `json:"weeklyPlanFinish"`
WeeklyRealityFinish string `json:"weeklyRealityFinish"`
WeekyAccumulativeFinish string `json:"weekyAccumulativeFinish"`
WeekyAccumulativeTotal string `json:"weekyAccumulativeTotal"`
CompletionRate string `json:"completionRate"`
Leader string `json:"leader"`
Status string `json:"status"`
WeeklyDocumentUrl string `json:"weeklyDocumentUrl"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,45 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-08-02 15:21:55
// 生成路径: internal/app/system/model/bus_scheduled_weekly_photovoltaic.go
// 生成人gfast
// desc:周报-光伏板
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusScheduledWeeklyPhotovoltaicInfoRes is the golang structure for table bus_scheduled_weekly_photovoltaic.
type BusScheduledWeeklyPhotovoltaicInfoRes struct {
gmeta.Meta `orm:"table:bus_scheduled_weekly_photovoltaic"`
PhotovoltaicId int64 `orm:"photovoltaic_id,primary" json:"photovoltaicId"` // 序号
PlanWeeklyId int64 `orm:"plan_weekly_id" json:"planWeeklyId"` // 周报id
PhotovoltaicNumber string `orm:"photovoltaic_number" json:"photovoltaicNumber"` // 光伏板编号
PhotovoltaicNumberGis string `orm:"photovoltaic_number_gis" json:"photovoltaicNumberGis"` // gis地图中使用的真实的光伏板id
InstallNot string `orm:"install_not" json:"installNot"` // 是否安装
InstallCreateTime string `orm:"install_createTime" json:"installCreateTime"` // 安装时间
Status string `orm:"status" json:"status"` // 光伏板状态
ProjectId string `orm:"project_id" json:"projectId"` // '项目id'
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusScheduledWeeklyPhotovoltaicListRes struct {
PhotovoltaicId int64 `json:"photovoltaicId"`
PlanWeeklyId int64 `json:"planWeeklyId"`
PhotovoltaicNumber string `json:"photovoltaicNumber"`
PhotovoltaicNumberGis string `json:"photovoltaicNumberGis"`
InstallNot string `json:"installNot"`
InstallCreateTime string `json:"installCreateTime"`
Status string `json:"status"`
ProjectId string `json:"projectId"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,50 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 11:36:04
// 生成路径: internal/app/system/model/bus_standing_book.go
// 生成人gfast
// desc:台账
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusStandingBookInfoRes is the golang structure for table bus_standing_book.
type BusStandingBookInfoRes struct {
gmeta.Meta `orm:"table:bus_standing_book"`
StandingBookId int64 `orm:"standing_book_id,primary" json:"standingBookId"` // 序号
EquipmentMaterialsId int64 `orm:"equipment_materials_id" json:"equipmentMaterialsId"` // 材料/设备
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
StandingBookType string `orm:"standing_book_type" json:"standingBookType"` // 台账类型
ApproachTime string `orm:"approach_time" json:"approachTime"` // 进场时间
ClaimingDate string `orm:"claiming_date" json:"claimingDate"` // 领用时间
Quantity string `orm:"quantity" json:"quantity"` // 数量
Gross string `orm:"gross" json:"gross"` // 总量
Status string `orm:"status" json:"status"` // 状态
SignerRecipient string `orm:"signer_recipient" json:"signerRecipient"` // 签收领用人
RecipientUnit string `orm:"recipient_unit" json:"recipientUnit"` // 使用单位
StoreIssue string `orm:"store_issue" json:"storeIssue"` // 发料人
ProcessMode string `orm:"process_mode" json:"processMode"` // 处理方式
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusStandingBookListRes struct {
StandingBookId int64 `json:"standingBookId"`
EquipmentMaterialsId int64 `json:"equipmentMaterialsId"`
StandingBookType string `json:"standingBookType"`
ApproachTime string `json:"approachTime"`
Quantity string `json:"quantity"`
Gross string `json:"gross"`
Status string `json:"status"`
SignerRecipient string `json:"signerRecipient"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,47 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-10-10 12:11:05
// 生成路径: internal/app/system/model/bus_tour.go
// 生成人gfast
// desc:煤科巡视-故障记录
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusTourInfoRes is the golang structure for table bus_tour.
type BusTourInfoRes struct {
gmeta.Meta `orm:"table:bus_tour"`
Id int64 `orm:"id,primary" json:"id"` // 序号
ProjectId int64 `orm:"project_id,primary" json:"projectId"` // 项目id
TourCategory string `orm:"tour_category" json:"tourCategory"` // 类别字典
TourType string `orm:"tour_type" json:"tourType"` // 类型字典
Picture string `orm:"picture" json:"picture"` // 图片路径
Num string `orm:"num" json:"num"` // 违规数量
Describe string `orm:"describe" json:"describe"` // 故障描述
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
TableName string `orm:"table_name" json:"tableName"` // 表名
TableId int64 `orm:"table_id" json:"tableId"` // 表id
Nickname string `orm:"nickname" json:"nickname"` //根据表名+id得到的昵称
SxtName string `orm:"sxt_name" json:"sxtName"` //根据表名+id得到的昵称
}
type BusTourListRes struct {
Id int64 `json:"id" dc:"主键ID"`
ProjectId int64 `json:"projectId" dc:"项目id"`
TourCategory string `json:"tourCategory" dc:"类别字典(如:无人机识别、监控拍摄)"`
TourType string `json:"tourType" dc:"类型字典(如:安全帽、安全带)"`
Picture string `json:"picture" dc:"图片路径"`
Describe string `json:"describe" dc:"故障描述"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
Num string `orm:"num" json:"num" dc:"违规人数"`
Nickname string `json:"nickname" dc:"昵称"`
SxtName string `json:"sxtName" dc:"摄像头名称"`
}

View File

@ -0,0 +1,35 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-09-05 10:07:11
// 生成路径: internal/app/system/model/bus_type_of_wage.go
// 生成人gfast
// desc:工种薪水
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusTypeOfWageInfoRes is the golang structure for table bus_type_of_wage.
type BusTypeOfWageInfoRes struct {
gmeta.Meta `orm:"table:bus_type_of_wage"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
TypeOfWork string `orm:"type_of_work" json:"typeOfWork"` // 工种字典
Standard float64 `orm:"standard" json:"standard"` // 工资标准
CreateBy string `orm:"create_by" json:"createBy"` // 创建人
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusTypeOfWageListRes struct {
Id int64 `json:"id"`
TypeOfWork string `json:"typeOfWork"`
Standard float64 `json:"standard"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,62 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-11-20 11:18:36
// 生成路径: internal/app/system/model/bus_violation_level.go
// 生成人gfast
// desc:违章等级
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
"github.com/tiger1103/gfast/v3/internal/app/system/model/entity"
)
// BusViolationLevelInfoRes is the golang structure for table bus_violation_level.
type BusViolationLevelInfoRes struct {
gmeta.Meta `orm:"table:bus_violation_level"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
Grade string `orm:"grade" json:"grade"` // 违章等级
Color string `orm:"color" json:"color"` // 颜色
TourType string `orm:"tour_type" json:"tourType"` // 违章类型
Risx string `orm:"risx" json:"risx"` // 违章类型
WxOrPc string `orm:"wx_or_pc" json:"wxOrPc"` // 来源1pc 2小程序
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
DictLabel string `orm:"dict_label" json:"dictLabel"`
PostEntity []*entity.SysPost `orm:"postEntity" json:"postEntity"` // 岗位信息
}
type BusViolationLevelListRes struct {
Id int64 `json:"id"`
Grade string `json:"grade"`
Color string `json:"color"`
TourType string `json:"tourType"`
Risx string `json:"risx"`
CreatedAt *gtime.Time `json:"createdAt"`
}
type ViolationLevelPost struct {
gmeta.Meta `orm:"table:bus_violation_level_post"`
Id int64 `json:"id" dc:"主键ID"`
Level int64 `json:"level" dc:"等级主键ID"`
Post int64 `json:"post" dc:"岗位主键ID"`
}
type ViolationRecordCorrelation struct {
gmeta.Meta `orm:"table:bus_violation_record_correlation"`
Id int64 `json:"id" dc:"主键ID"`
RecordId int64 `json:"record_id" dc:"等级主键ID"`
UserId int64 `json:"user_id" dc:"岗位主键ID"`
PostId int64 `json:"post_id" dc:"岗位主键ID"`
userName string `json:"user_name" dc:"用户名称"`
PostName string `json:"post_name" dc:"岗位名称"`
}

View File

@ -0,0 +1,160 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-11-20 11:18:37
// 生成路径: internal/app/system/model/bus_violation_record.go
// 生成人gfast
// desc:违章记录
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusViolationRecordInfoRes is the golang structure for table bus_violation_record.
type BusViolationRecordInfoRes struct {
gmeta.Meta `orm:"table:bus_violation_record"`
Pid int64 `orm:"pid" json:"pid"` // 父级主键ID
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
LevelId int64 `orm:"level_id" json:"levelId"` // 违章等级主键ID
Level string `orm:"level" json:"level"` // 违章等级
TourType string `orm:"tour_type" json:"tourType"` // 违章类型
TourId int64 `orm:"tour_id" json:"tourId"` // 违章详情关联bus_tourLevel string `orm:"level" json:"level"` // 违章等级
DataSource string `orm:"data_source" json:"dataSource"` // 数据来源
SelectPeople int64 `orm:"select_people" json:"selectPeople"` // 选择人后台用户ID
Openid string `orm:"openid" json:"openid"` // 处理人
Status string `orm:"status" json:"status" dc:"工单状态1通知 2整改 3复查"`
ProcessingPeriod string `orm:"processing_period" json:"processingPeriod"` // 处理期限(要求)
ProcessingPeriodPractical string `orm:"processing_period_practical" json:"processingPeriodPractical"` // 处理期限(实际)
Measure string `orm:"measure" json:"measure"` // 整改措施
Review string `orm:"review" json:"review"` // 复查情况
ReviewType string `orm:"review_type" json:"reviewType"` // 复查状态1通过 2未通过
RectificationTime *gtime.Time `orm:"rectification_time" json:"rectificationTime"` // 整改时间
ReviewTime *gtime.Time `orm:"review_time" json:"reviewTime"` // 复查时间
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
Remark string `orm:"remark" json:"remark"` // 备注
SxtName string `orm:"sxt_name" json:"sxtName"`
//IsDispose string `orm:"is_dispose" json:"isDispose"` // 是否处理1待处理 2已处理
//Picture string `orm:"picture" json:"picture"` // 图片
//LaborDate string `orm:"labor_date" json:"laborDate"` // 人工日期
//ProcessingTime string `orm:"processing_time" json:"processingTime"` // 处理日期
//WxOrPc string `orm:"wx_or_pc" json:"wxOrPc"` // 来源1pc 2小程序
NickName string `orm:"nickName" json:"nickName" dc:"微信用户昵称"`
UserName string `orm:"userName" json:"userName" dc:"微信用户姓名"`
PictureTwo string `orm:"pictureTwo" json:"pictureTwo" dc:"违章的图片"`
ViolationRecordCorrelationList []*ViolationRecordCorrelation `orm:"violationRecordCorrelationList" json:"violationRecordCorrelationList"`
IsReview bool `orm:"isReview" json:"isReview" dc:"是否可以复查"`
RefuseList interface{} `json:"refuseList" dc:"拒绝数组结构体"`
}
type BusViolationRecordListRes struct {
Id int64 `dc:"主键ID" json:"id"`
ProjectId int64 `dc:"项目id" json:"projectId"`
LevelId int64 `dc:"违章等级主键ID" json:"levelId"`
Level string `dc:"违章等级" json:"level"`
TourType string `dc:"违章类型" json:"tourType"`
TourId int64 `dc:"违章详情关联bus_tour" json:"tourId"`
DataSource string `dc:"数据来源" json:"dataSource"`
SelectPeople string `dc:"选择人后台用户ID" json:"selectPeople"`
Openid string `dc:"处理人" json:"openid"`
Status string `dc:"工单状态1通知 2整改 3复查" json:"status"`
ProcessingPeriod string `dc:"处理期限(要求)" json:"processingPeriod"`
ProcessingPeriodPractical string `dc:"处理期限(实际)" json:"processingPeriodPractical"`
Measure string `dc:"整改措施" json:"measure"`
Review string `dc:"复查情况" json:"review"`
ReviewType string `dc:"复查状态1通过 2未通过" json:"reviewType"`
RectificationTime *gtime.Time `dc:"整改时间" json:"rectificationTime"`
ReviewTime *gtime.Time `dc:"复查时间" json:"reviewTime"`
CreateBy string `dc:"创建者" json:"createBy"`
UpdateBy string `dc:"更新者" json:"updateBy"`
CreatedAt *gtime.Time `dc:"创建时间" json:"createdAt"`
UpdatedAt *gtime.Time `dc:"更新时间" json:"updatedAt"`
DeletedAt *gtime.Time `dc:"删除时间" json:"deletedAt"`
Remark string `dc:"备注" json:"remark"`
ReviewName string `dc:"复查人" json:"reviewName"`
SxtName string `dc:"摄像头名称" json:"sxtName"`
NickName string `json:"nickName" dc:"用户真实姓名"`
UserName string `json:"userName" dc:"微信用户姓名"`
PictureTwo string `json:"pictureTwo" dc:"违章的图片"`
RefuseList interface{} `json:"refuseList" dc:"拒绝数组结构体"`
}
type AppWorkOrderPcListLogicRes struct {
ProjectId string `json:"projectId" dc:"项目ID" `
ProjectName string `json:"projectName" dc:"项目名称" `
Id int64 `json:"id" dc:"主键ID"`
Tt string `json:"tt" dc:"违章类型"`
Level string `json:"level" dc:"违章等级"`
Ds string `json:"ds" dc:"数据来源"`
Status string `json:"status" dc:"工单状态1通知 2整改 3复查"`
ReviewType string `json:"reviewType" dc:"复查状态1通过 2未通过"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
Openid string `json:"openid" dc:"处理人"`
OpenidName string `json:"openidName" dc:"处理人名字"`
//UpdateBy string `json:"updateBy" dc:"复查人" `
SelectPeople int64 `json:"selectPeople" dc:"复查人" `
ReviewName string `json:"reviewName" dc:"复查人名称"`
SuperintendName []string `json:"superintendName" dc:"督察人名称(多个)"`
IsReview bool `json:"isReview" dc:"是否可以复查"`
CheckAttachment []*BusViolationRecordPathLogicRes `json:"checkAttachment" dc:"检查附件"`
RefuseList interface{} `json:"refuseList" dc:"拒绝数组结构体"`
}
type AppWorkOrderParticularsLogicRes struct {
AppWorkOrderPcListLogicRes
SelectPeople string `json:"selectPeople" dc:"选择人选择谁处理后台用户ID" `
SelectPeopleName string `json:"selectPeopleName" dc:"选择人名称" `
ProcessingPeriod string `json:"processingPeriod" dc:"处理期限(要求)" `
ProcessingPeriodPractical string `json:"processingPeriodPractical" dc:"处理期限(实际)" `
Measure string `json:"measure" dc:"整改措施" `
Review string `json:"review" dc:"复查情况" `
RectificationTime *gtime.Time `json:"rectificationTime" dc:"整改时间" `
ReviewTime *gtime.Time `json:"reviewTime" dc:"复查时间" `
Remark string `json:"remark" dc:"备注" `
CheckAttachment []*BusViolationRecordPathLogicRes `json:"checkAttachment" dc:"检查附件"`
AbarbeitungAttachment []*BusViolationRecordPathLogicRes `json:"abarbeitungAttachment" dc:"整改附件"`
}
// BusViolationRecordPathLogicRes 工单附件表
type BusViolationRecordPathLogicRes struct {
gmeta.Meta `orm:"table:bus_violation_record_path"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
TicketId int64 `orm:"ticket_id" json:"ticketId"` // 质量工单主键ID级联删除
Type string `orm:"type" json:"type"` // 类型1通知 2整改
Name string `orm:"name" json:"name"` // 文件名称
Path string `orm:"path" json:"path"` // 文件路径
FileType string `orm:"file_type" json:"fileType"` // 文件类型(后缀)
}
// RefuseToAddRes 拒绝状态新增数据
type RefuseToAddRes struct {
gmeta.Meta `orm:"table:bus_violation_record"`
Pid int64 `orm:"pid" json:"pid"` // 上级id
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
LevelId int64 `orm:"level_id" json:"levelId"` // 违章等级主键ID
Level string `orm:"level" json:"level"` // 违章等级
TourType string `orm:"tour_type" json:"tourType"` // 违章类型
TourId int64 `orm:"tour_id" json:"tourId"` // 违章详情关联bus_tourLevel string `orm:"level" json:"level"` // 违章等级
DataSource string `orm:"data_source" json:"dataSource"` // 数据来源
SelectPeople int64 `orm:"select_people" json:"selectPeople"` // 选择人后台用户ID
Openid string `orm:"openid" json:"openid"` // 处理人
Status string `orm:"status" json:"status" dc:"工单状态1通知 2整改 3复查"`
ProcessingPeriod string `orm:"processing_period" json:"processingPeriod"` // 处理期限(要求)
ProcessingPeriodPractical string `orm:"processing_period_practical" json:"processingPeriodPractical"` // 处理期限(实际)
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
Remark string `orm:"remark" json:"remark"` // 备注
SxtName string `orm:"sxt_name" json:"sxtName"` // 备注
}

View File

@ -0,0 +1,45 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-04-02 18:03:23
// 生成路径: internal/app/system/model/bus_weekly_security_report.go
// 生成人gfast
// desc:安全周期
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusWeeklySecurityReportInfoRes is the golang structure for table bus_weekly_security_report.
type BusWeeklySecurityReportInfoRes struct {
gmeta.Meta `orm:"table:bus_weekly_security_report"`
Id int64 `orm:"id,primary" json:"id"` // 主键ID
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
ProjectName string `orm:"project_name" json:"projectName"` // 项目名称
Week string `orm:"week" json:"week"` // 周期
Scope string `orm:"scope" json:"scope"` // 周期范围
ScopeEnd string `orm:"scope_end" json:"scopeEnd"` // 周期范围结束
Path string `orm:"path" json:"path"` // 文件位置
CreateBy string `orm:"create_by" json:"createBy"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}
type BusWeeklySecurityReportListRes struct {
Id int64 `json:"id"`
ProjectId int64 `json:"projectId"`
ProjectName string `json:"projectName"`
Week string `json:"week"`
Scope string `json:"scope"`
ScopeEnd string `json:"scopeEnd"`
Path string `json:"path"`
CreateBy string `json:"createBy"`
UpdateBy string `json:"updateBy"`
CreatedAt *gtime.Time `json:"createdAt"`
}

View File

@ -0,0 +1,52 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-05-14 10:21:06
// 生成路径: internal/app/system/model/comment_list.go
// 生成人gfast
// desc:App消息-评论
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// CommentListInfoRes is the golang structure for table comment_list.
type CommentListInfoRes struct {
gmeta.Meta `orm:"table:comment_list"`
Id uint `orm:"id,primary" json:"id"` //
ProjectId int `orm:"project_id" json:"projectId"` // 项目ID
Receiver int `orm:"receiver" json:"receiver"` // 消息接收者
Content string `orm:"content" json:"content"` // 评论内容
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
Sender int `orm:"sender" json:"sender"` // 消息的发起人
}
type CommentListListRes struct {
Id uint `json:"id"`
ProjectId int `json:"projectId"`
Receiver int `json:"receiver"`
Content string `json:"content"`
CreatedAt *gtime.Time `json:"createdAt"`
Sender int `json:"sender"`
}
type CommentInfo struct {
// 自增ID
Id int `orm:"id"`
// 用户名
UserNickName string `orm:"user_nickname"`
// 项目名
ProjectName string `orm:"project_name"`
// 评论内容
Content string `orm:"content"`
// 评论时间
CreatedAt string `orm:"created_at"`
}
func (m *CommentInfo) Title() string {
return m.UserNickName + "评论了你上传的形象进度"
}

View File

@ -0,0 +1,33 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-04-23 14:47:24
// 生成路径: internal/app/system/model/comments.go
// 生成人gfast
// desc:App通知公告评论
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// CommentsInfoRes is the golang structure for table comments.
type CommentsInfoRes struct {
gmeta.Meta `orm:"table:comments"`
Id uint `orm:"id,primary" json:"id"` // 主键
NotificationId int `orm:"notification_id" json:"notificationId"` // 关联的通知ID
CommentText string `orm:"comment_text" json:"commentText"` // 评论内容
CommentId string `orm:"comment_id" json:"commentId"` // 用户ID
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}
type CommentsListRes struct {
Id uint `json:"id"`
CommentId string `json:"comment_id" dc:"用户的ID"`
Name string `json:"name" orm:"user_nickname" dc:"用户名"`
CommentText string `json:"comment_text" dc:"评论内容"`
CreatedAt *gtime.Time `json:"createdAt" dc:"评论时间"`
}

View File

@ -0,0 +1,54 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-13 18:10:56
// 生成路径: internal/app/system/model/construction_details.go
// 生成人gfast
// desc:施工类别详情
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// ConstructionDetailsInfoRes is the golang structure for table construction_details.
type ConstructionDetailsInfoRes struct {
gmeta.Meta `orm:"table:construction_details"`
Id uint64 `orm:"id,primary" json:"id"` //
CreatedBy uint64 `orm:"created_by" json:"createdBy"` //
UpdatedBy uint64 `orm:"updated_by" json:"updatedBy"` //
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` //
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` //
Name string `orm:"name" json:"name"` // 施工名称
Types string `orm:"types" json:"types"` // 施工类别
Total int `orm:"total" json:"total"` // 总量
ConstructionId int `orm:"construction_id" json:"constructionId"` // 施工id父级id
Remark string `orm:"remark" json:"remark"` // 备注
IsPercentage int `orm:"isPercentage" json:"isPercentage"` // 数据类型是否为百分比
StartTime *gtime.Time `orm:"start_time" json:"startTime"` // 开始时间
EndTime *gtime.Time `orm:"end_time" json:"endTime"` // 结束时间
Completed int `orm:"completed" json:"completed"` // 完成量
Selectable int `orm:"selectable" json:"selectable"` // 可选择余量
Overall int `orm:"overall" json:"overall"` // 总余量
}
type ConstructionDetailsListRes struct {
Id uint64 `json:"id"`
CreatedBy uint64 `json:"createdBy"`
CreatedAt *gtime.Time `json:"createdAt"`
Name string `json:"name"`
Types string `json:"types"`
Total int `json:"total"`
ConstructionId int `json:"constructionId"`
Remark string `json:"remark"`
IsPercentage int `json:"isPercentage"`
StartTime *gtime.Time `json:"startTime"`
EndTime *gtime.Time `json:"endTime"`
Completed int `json:"completed"`
Selectable int `json:"selectable"`
Overall int `json:"overall"`
}

View File

@ -0,0 +1,46 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-13 17:36:45
// 生成路径: internal/app/system/model/construction_project.go
// 生成人gfast
// desc:施工项目
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// ConstructionProjectInfoRes is the golang structure for table construction_project.
type ConstructionProjectInfoRes struct {
gmeta.Meta `orm:"table:construction_project"`
ConstructionId uint64 `orm:"construction_id,primary" json:"constructionId"` // 主键id
CreatedBy uint64 `orm:"created_by" json:"createdBy"` //
UpdatedBy uint64 `orm:"updated_by" json:"updatedBy"` //
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` //
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` //
FangzhenId int `orm:"fangzhen_id" json:"fangzhenId"` // 方阵id
ConstructionName string `orm:"construction_name" json:"constructionName"` // 施工名称
Total int `orm:"total" json:"total"` // 总量
Remark string `orm:"remark" json:"remark"` // 备注
IsPercentage int `orm:"isPercentage" json:"isPercentage"` // 数据类型是否为百分比
EndTime *gtime.Time `orm:"end_time" json:"endTime"` // 结束时间
StartTime *gtime.Time `orm:"start_time" json:"startTime"` // 开始时间
}
type ConstructionProjectListRes struct {
ConstructionId uint64 `json:"constructionId"`
CreatedBy uint64 `json:"createdBy"`
CreatedAt *gtime.Time `json:"createdAt"`
FangzhenId int `json:"fangzhenId"`
ConstructionName string `json:"constructionName"`
Total int `json:"total"`
Remark string `json:"remark"`
IsPercentage int `json:"isPercentage"`
EndTime *gtime.Time `json:"endTime"`
StartTime *gtime.Time `json:"startTime"`
}

View File

@ -0,0 +1,16 @@
/*
* @desc:context-model
* @company:云南奇讯科技有限公司
* @Author: yixiaohu
* @Date: 2022/3/16 14:45
*/
package model
type Context struct {
User *ContextUser // User in context.
}
type ContextUser struct {
*LoginUserRes
}

View File

@ -0,0 +1,75 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-11-24 09:57:07
// 生成路径: internal/app/system/model/device.go
// 生成人gfast
// desc:安全帽设备java
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// DeviceInfoRes is the golang structure for table device.
type DeviceInfoRes struct {
gmeta.Meta `orm:"table:device"`
DevNum string `orm:"devNum,primary" json:"devNum"` // 设备编号
DevName string `orm:"devName" json:"devName"` // 设备名称
Status int `orm:"status" json:"status" dc:"状态0下线 1上线` // 状态
CreateTime *gtime.Time `orm:"createTime" json:"createTime"` // 添加时间
UpdateTime *gtime.Time `orm:"updateTime" json:"updateTime"` // 修改时间
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目ID
BatteryLevel float64 `orm:"battery_level" json:"batteryLevel"` // 项目ID
IsLowBattery int `orm:"is_low_battery" json:"isLowBattery" ` //dc:"是否处于低电量1代表低电量0则不是低电量"
BatteryOn string `orm:"battery_on" json:"batteryOn" ` //开机时间
BatteryOff string `orm:"battery_off" json:"batteryOff" ` //关机时间
HeadIcon string `orm:"head_icon" json:"headIcon" dc:"头像"`
NickName string `orm:"nick_name" json:"nickName" dc:"昵称"`
UserName string `orm:"user_name" json:"userName" dc:"真实姓名"`
Phone string `orm:"phone" json:"phone" dc:"联系电话"`
Openid string `orm:"openid" json:"openid" dc:"openid"`
ProjectName string `orm:"project_name" json:"projectName" dc:"项目名称"`
}
type DeviceListRes struct {
DevNum string `json:"devNum"`
DevName string `json:"devName"`
Status int `json:"status" dc:"状态0下线 1上线""`
CreateTime *gtime.Time `json:"createTime"`
UpdateTime *gtime.Time `json:"updateTime"`
ProjectId int64 `json:"projectId"`
HeadIcon string `json:"headIcon" dc:"头像"`
NickName string `json:"nickName" dc:"昵称"`
UserName string `json:"userName" dc:"真实姓名"`
Phone string `json:"phone" dc:"联系电话"`
Openid string `json:"openid" dc:"openid"`
ProjectName string `json:"projectName" dc:"项目名称"`
BatteryLevel float64 `json:"batteryLevel" dc:"电量"`
IsLowBattery int `json:"isLowBattery" dc:"是否处于低电量1代表低电量0则不是低电量"`
BatteryOn string `json:"batteryOn" dc:"电池开关时间"`
BatteryOff string `json:"batteryOff" dc:"电池关机时间"`
}
//type DeviceDataRes struct {
// gmeta.Meta `orm:"table:device"`
// DevNum string `json:"devNum" dc:"设备标识"`
// DevName string `json:"devName" dc:"设备名称"`
// Status int `json:"status" dc:"状态0下线 1上线"`
// CreateTime *gtime.Time `json:"createTime" dc:"创建时间"`
// UpdateTime *gtime.Time `json:"updateTime" dc:"更新时间"`
// UserDetail *UserDetail `orm:"with:devNum=dev_num" dc:"用户信息"`
//}
//
//// UserDetail 用户信息
//type UserDetail struct {
// gmeta.Meta `orm:"table:bus_construction_user"`
// HeadIcon int `json:"headIcon" dc:"头像"`
// NickName int `json:"nickName" dc:"昵称"`
// UserName int `json:"userName" dc:"真实姓名"`
// Phone string `json:"phone" dc:"联系电话"`
// DevNum string `json:"devNum" dc:"设备标识"`
//}

View File

@ -0,0 +1,35 @@
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-01 12:50:08
// 生成路径: internal/app/system/model/device_preset.go
// 生成人gfast
// desc:预置位
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// DevicePresetInfoRes is the golang structure for table device_preset.
type DevicePresetInfoRes struct {
gmeta.Meta `orm:"table:device_preset"`
Id uint `orm:"id,primary" json:"id"` // 主键ID
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
DeviceSerial string `orm:"deviceSerial" json:"deviceSerial"` // 设备序列号
ChannelNo string `orm:"channelNo" json:"channelNo"` // 通道号
Index int `orm:"index" json:"index"` // 预置点序号
Name string `orm:"name" json:"name"` // 预置点名称
}
type DevicePresetListRes struct {
Id uint `json:"id"`
CreatedAt *gtime.Time `json:"createdAt"`
DeviceSerial string `json:"deviceSerial"`
ChannelNo string `json:"channelNo"`
Index int `json:"index"`
Name string `json:"name"`
}

View File

@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AppMenus is the golang structure of table app_menus for DAO operations like Where/Data.
type AppMenus struct {
g.Meta `orm:"table:app_menus, do:true"`
MenuId interface{} //
MenuName interface{} // 菜单名
CreatedAt *gtime.Time //
}

View File

@ -0,0 +1,24 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2024-05-28 15:11:15
// 生成路径: internal/app/system/model/entity/app_role_menus.go
// 生成人gfast
// desc:app角色绑定菜单
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// AppRoleMenus is the golang structure for table app_role_menus.
type AppRoleMenus struct {
gmeta.Meta `orm:"table:app_role_menus, do:true"`
Id interface{} `orm:"id,primary" json:"id"` //
RoleId interface{} `orm:"role_id" json:"roleId"` // 角色ID
MenuId interface{} `orm:"menu_id" json:"menuId"` // 菜单ID
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
}

View File

@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AppRoles is the golang structure of table app_roles for DAO operations like Where/Data.
type AppRoles struct {
g.Meta `orm:"table:app_roles, do:true"`
RoleId interface{} //
RoleName interface{} // 角色名
CreatedAt *gtime.Time //
Tag interface{} // 0 管理员 | 1 施工人员
}

View File

@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AppUserDisableMenus is the golang structure of table app_user_disable_menus for DAO operations like Where/Data.
type AppUserDisableMenus struct {
g.Meta `orm:"table:app_user_disable_menus, do:true"`
UserDisabledMenuId interface{} //
UserId interface{} // 用户ID
MenuId interface{} // 菜单ID
CreatedAt *gtime.Time //
}

View File

@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AppUserMenus is the golang structure of table app_user_menus for DAO operations like Where/Data.
type AppUserMenus struct {
g.Meta `orm:"table:app_user_menus, do:true"`
UserMenuId interface{} //
UserId interface{} // 用户ID
MenuId interface{} // 菜单ID
CreatedAt *gtime.Time //
}

View File

@ -0,0 +1,20 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AppUserRoles is the golang structure of table app_user_roles for DAO operations like Where/Data.
type AppUserRoles struct {
g.Meta `orm:"table:app_user_roles, do:true"`
Id interface{} //
UserId interface{} // 用户ID
RoleId interface{} // 关联的角色ID
CreatedAt *gtime.Time //
MajorRole interface{} // 0 后台管理人员 | 1 施工人员
}

View File

@ -0,0 +1,20 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// AppVersions is the golang structure of table app_versions for DAO operations like Where/Data.
type AppVersions struct {
g.Meta `orm:"table:app_versions, do:true"`
Id interface{} //
Version interface{} // 版本号
FilePath interface{} // 版本文件的路径
CreatedAt *gtime.Time //
Platform interface{} // 0 安卓 | 1 IOS
}

View File

@ -0,0 +1,29 @@
// =================================================================================
// Code generated by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// BigFile is the golang structure of table big_file for DAO operations like Where/Data.
type BigFile struct {
g.Meta `orm:"table:big_file, do:true"`
Id interface{} //
Name interface{} // 文件名称
Size interface{} // 文件大小
Path interface{} // 文件相对路径
FullPath interface{} // 文件绝对路径
MimeType interface{} // 文件类型
Source interface{} // 文件来源 0 - 本地1 - 腾讯云 2 - 七牛云
Describe interface{} // 描述
Md5 interface{} // md5
CreatedBy interface{} //
UpdatedBy interface{} //
CreatedAt *gtime.Time //
UpdatedAt *gtime.Time //
DeletedAt *gtime.Time //
}

View File

@ -0,0 +1,28 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2025-03-03 10:32:47
// 生成路径: internal/app/system/model/entity/bus_attendance_machine.go
// 生成人gfast
// desc:考勤机
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusAttendanceMachine is the golang structure for table bus_attendance_machine.
type BusAttendanceMachine struct {
gmeta.Meta `orm:"table:bus_attendance_machine, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目ID
Sn interface{} `orm:"sn" json:"sn"` // 设备sn
Status interface{} `orm:"status" json:"status"` // 设备sn
Teams interface{} `orm:"teams" json:"teams"` // 班组id多个逗号分隔
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
Remark interface{} `orm:"remark" json:"remark"` // 备注
}

View File

@ -0,0 +1,24 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2025-03-03 10:33:17
// 生成路径: internal/app/system/model/entity/bus_attendance_machine_user.go
// 生成人gfast
// desc:考勤机用户列
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusAttendanceMachineUser is the golang structure for table bus_attendance_machine_user.
type BusAttendanceMachineUser struct {
gmeta.Meta `orm:"table:bus_attendance_machine_user, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
MachineId interface{} `orm:"machine_id" json:"machineId"` // 考勤机主键ID
TeamId interface{} `orm:"team_id" json:"teamId"` // 班组ID
UserId interface{} `orm:"user_id" json:"userId"` // 用户ID
Identifying interface{} `orm:"identifying" json:"identifying"` // 标识(是否下发)
}

View File

@ -0,0 +1,41 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-09-20 14:55:42
// 生成路径: internal/app/system/model/entity/bus_camera_channel.go
// 生成人gfast
// desc:摄像头(国标通道)
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCameraChannel is the golang structure for table bus_camera_channel.
type BusCameraChannel struct {
gmeta.Meta `orm:"table:bus_camera_channel, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 序号
CountryId interface{} `orm:"country_id" json:"countryId"` // 摄像头ID
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目ID
ChannelNumber interface{} `orm:"channel_number" json:"channelNumber"` // 国标通道号
ChannelName interface{} `orm:"channel_name" json:"channelName"` // 通道名称
ChannelPath interface{} `orm:"channel_path" json:"channelPath"` // 视频路径 flv
ChannelPathWs interface{} `orm:"channel_path_ws" json:"channelPathWs"` // 视频路径 ws
ChannelPathRtc interface{} `orm:"channel_path_rtc" json:"channelPathRtc"` // 视频路径 rtc
ChannelPathHls interface{} `orm:"channel_path_hls" json:"channelPathHls"` // 视频路径 hls
ChannelFormat interface{} `orm:"channel_format" json:"channelFormat"` // 视频格式(字典)
ChannelState interface{} `orm:"channel_state" json:"channelState"` // 在线状态(字典)
Remark interface{} `orm:"remark" json:"remark"` // 备注
Detail interface{} `orm:"detail" json:"detail"` // 坐标
Imei interface{} `orm:"imei,primary" json:"imei"` // 识别码
Iccid interface{} `orm:"iccid,primary" json:"iccid"` // 序列号
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
SourceType interface{} `orm:"source_type" json:"sourceType"` // 资源类型
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,31 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-09-20 14:55:24
// 生成路径: internal/app/system/model/entity/bus_camera_chinese_standard.go
// 生成人gfast
// desc:摄像头(国标)
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCameraChineseStandard is the golang structure for table bus_camera_chinese_standard.
type BusCameraChineseStandard struct {
gmeta.Meta `orm:"table:bus_camera_chinese_standard, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 序号
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目ID
CountryNumber interface{} `orm:"country_number" json:"countryNumber"` // 国标号
CountryName interface{} `orm:"country_name" json:"countryName"` // 摄像头名称
CountryState interface{} `orm:"country_state" json:"countryState"` // 在线状态(字典)
Remark interface{} `orm:"remark" json:"remark"` // 备注
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,21 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-10-07 15:52:19
// 生成路径: internal/app/system/model/entity/bus_category.go
// 生成人gfast
// desc:题库_题库类别
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCategory is the golang structure for table bus_category.
type BusCategory struct {
gmeta.Meta `orm:"table:bus_category, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 序号
CategoryName interface{} `orm:"category_name" json:"categoryName"` // 题库类别
}

View File

@ -0,0 +1,29 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-07-28 14:08:14
// 生成路径: internal/app/system/model/entity/bus_company.go
// 生成人gfast
// desc:公司
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCompany is the golang structure for table bus_company.
type BusCompany struct {
gmeta.Meta `orm:"table:bus_company, do:true"`
CompanyId interface{} `orm:"company_id,primary" json:"companyId"` // 序号
CompanyName interface{} `orm:"company_name" json:"companyName"` // 公司名称
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目id
Status interface{} `orm:"status" json:"status"` // 帐号状态
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,29 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-12-04 18:09:50
// 生成路径: internal/app/system/model/entity/bus_complaint_box.go
// 生成人gfast
// desc:意见箱
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusComplaintBox is the golang structure for table bus_complaint_box.
type BusComplaintBox struct {
gmeta.Meta `orm:"table:bus_complaint_box, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目id
Openid interface{} `orm:"openid" json:"openid"` // openid
Opinion interface{} `orm:"opinion" json:"opinion"` // 意见
Status interface{} `orm:"status" json:"status"` // 状态0未读1已读
Dispose *gtime.Time `orm:"dispose" json:"dispose"` // 处理时间
Remark interface{} `orm:"remark" json:"remark"` // 备注
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
}

View File

@ -0,0 +1,26 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-11-10 14:08:39
// 生成路径: internal/app/system/model/entity/bus_construction_blacklist.go
// 生成人gfast
// desc:黑名单
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionBlacklist is the golang structure for table bus_construction_blacklist.
type BusConstructionBlacklist struct {
gmeta.Meta `orm:"table:bus_construction_blacklist, do:true"`
Openid interface{} `orm:"openid,primary" json:"openid"` // openid
Name interface{} `orm:"name" json:"name"` // 名字
SfzNumber interface{} `orm:"sfz_number" json:"sfzNumber"` // 身份证号码
Remark interface{} `orm:"remark" json:"remark"` // 备注
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建人
}

View File

@ -0,0 +1,32 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2024-03-22 16:27:43
// 生成路径: internal/app/system/model/entity/bus_construction_log.go
// 生成人gfast
// desc:施工日志
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionLog is the golang structure for table bus_construction_log.
type BusConstructionLog struct {
gmeta.Meta `orm:"table:bus_construction_log, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目ID
DateOfOccurrence interface{} `orm:"date_of_occurrence" json:"dateOfOccurrence"` // 发生日期
Condition interface{} `orm:"condition" json:"condition"` // 生产情况
TechnologyQuality interface{} `orm:"technology_quality" json:"technologyQuality"` // 技术质量安全工作
Remark interface{} `orm:"remark" json:"remark"` // 备注
Path interface{} `orm:"path" json:"path"` // 附件(多个逗号分割)
CreatedBy interface{} `orm:"created_by" json:"createdBy"` // 创建人
UpdatedBy interface{} `orm:"updated_by" json:"updatedBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,22 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-08-07 10:17:50
// 生成路径: internal/app/system/model/entity/bus_construction_project.go
// 生成人gfast
// desc:施工人员对应项目
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionProject is the golang structure for table bus_construction_project.
type BusConstructionProject struct {
gmeta.Meta `orm:"table:bus_construction_project, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 序号
ConstructionUserId interface{} `orm:"construction_user_id" json:"constructionUserId"` // 微信用户id
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目id
}

View File

@ -0,0 +1,53 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// BusConstructionUser is the golang structure of table bus_construction_user for DAO operations like Where/Data.
type BusConstructionUser struct {
g.Meta `orm:"table:bus_construction_user, do:true"`
Id interface{} //
Openid interface{} // 微信id
NickName interface{} // 微信名称
TeamId interface{} // 班组id
HeadIcon interface{} // 登陆照片
PacePhoto interface{} // 人脸照
UserName interface{} // 人员姓名
ProjectId interface{} // 项目id
Status interface{} // 状态0在职 1离职-字典position_status
IsPinch interface{} // 是否代打
IfManagement interface{} // 是否班组管理
CreateBy interface{} // 创建者
UpdateBy interface{} // 更新者
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 删除时间
Phone interface{} // 电话
Sex interface{} // 1:男,2女,3保密
SfzNation interface{} // 身份证民族
SfzNumber interface{} // 身份证号码
SfzStart interface{} // 身份证有效开始期
SfzEnd interface{} // 身份证有效结束期
SfzSite interface{} // 身份证地址
SfzBirth interface{} // 身份证出生日期
NativePlace interface{} // 籍贯
YhkNumber interface{} // 银行卡号
YhkOpeningBank interface{} // 开户行
YhkCardholder interface{} // 持卡人
TypeOfWork interface{} // 工种(字典)
Clock interface{} // 打卡(1启用打卡 2禁止打卡)
LabourserviceId interface{} // 劳务公司id
EntryDate interface{} // 入场时间
LeaveDate interface{} // 离场时间
Salary interface{} // 薪水此字段为0表示此字段无效
ProjectRecord interface{} // 是否开启项目备案小程序1开启 2不开启
WxOrPc interface{} // 哪添加的1表示pc 2表示小程序
Subscription interface{} // 消息订阅状态1订阅 2无订阅
DevNum interface{} // 安全帽设备标识
}

View File

@ -0,0 +1,30 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-08-07 10:17:41
// 生成路径: internal/app/system/model/entity/bus_construction_user_file.go
// 生成人gfast
// desc:微信用户的文件存储
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionUserFile is the golang structure for table bus_construction_user_file.
type BusConstructionUserFile struct {
gmeta.Meta `orm:"table:bus_construction_user_file, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
UserId interface{} `orm:"user_id" json:"userId"` // 用户id
UserImgType interface{} `orm:"user_img_type" json:"userImgType"` // 图片类型
Path interface{} `orm:"path" json:"path"` // 图片路径
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
Remark interface{} `orm:"remark" json:"remark"` // 备注
}

View File

@ -0,0 +1,22 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-08-07 10:06:34
// 生成路径: internal/app/system/model/entity/bus_construction_user_post.go
// 生成人gfast
// desc:施工人员岗位
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusConstructionUserPost is the golang structure for table bus_construction_user_post.
type BusConstructionUserPost struct {
gmeta.Meta `orm:"table:bus_construction_user_post, do:true"`
Id interface{} `orm:"id,primary" json:"id"` //
ConstructionUserId interface{} `orm:"construction_user_id" json:"constructionUserId"` // 施工人员id
PostId interface{} `orm:"post_id" json:"postId"` // 岗位id
}

View File

@ -0,0 +1,28 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2024-03-20 16:49:36
// 生成路径: internal/app/system/model/entity/bus_corporate_events.go
// 生成人gfast
// desc:企业大事记
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusCorporateEvents is the golang structure for table bus_corporate_events.
type BusCorporateEvents struct {
gmeta.Meta `orm:"table:bus_corporate_events, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
Headline interface{} `orm:"headline" json:"headline"` // 标题
Content interface{} `orm:"content" json:"content"` // 内容
CreatedBy interface{} `orm:"created_by" json:"createdBy"` // 创建人
UpdatedBy interface{} `orm:"updated_by" json:"updatedBy"` // 更新人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,30 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2024-04-09 15:40:16
// 生成路径: internal/app/system/model/entity/bus_design_audit.go
// 生成人gfast
// desc:设计审核(竣工、施工、可研)
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusDesignAudit is the golang structure for table bus_design_audit.
type BusDesignAudit struct {
gmeta.Meta `orm:"table:bus_design_audit, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目ID
TableName interface{} `orm:"table_name" json:"tableName"` // 表名
TableId interface{} `orm:"table_id" json:"tableId"` // 表ID
Status interface{} `orm:"status" json:"status"` // 审核状态(1未读 2拒绝 3通过)
Cause interface{} `orm:"cause" json:"cause"` // 拒绝原因
Auditor interface{} `orm:"auditor" json:"auditor"` // 审核人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,32 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-07-29 16:31:29
// 生成路径: internal/app/system/model/entity/bus_design_document.go
// 生成人gfast
// desc:设计管理
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusDesignDocument is the golang structure for table bus_design_document.
type BusDesignDocument struct {
gmeta.Meta `orm:"table:bus_design_document, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 序号
DocumenName interface{} `orm:"documen_name" json:"documenName"` // 文档名称
Remark interface{} `orm:"remark" json:"remark"` // 备注
DocumentUrl interface{} `orm:"document_url" json:"documentUrl"` // 文件路径
FileId interface{} `orm:"file_id" json:"fileId"` // 文件夹id
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目id
Status interface{} `orm:"status" json:"status"` // 状态
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 上传时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,33 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2024-04-11 17:28:54
// 生成路径: internal/app/system/model/entity/bus_design_period_range.go
// 生成人gfast
// desc:设计-周期范围
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusDesignPeriodRange is the golang structure for table bus_design_period_range.
type BusDesignPeriodRange struct {
gmeta.Meta `orm:"table:bus_design_period_range, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目id
TableType interface{} `orm:"table_type" json:"tableType"` // 记录类型1竣工 2施工 3可研
FileName interface{} `orm:"file_name" json:"fileName"` // 文件名称
FilePath interface{} `orm:"file_path" json:"filePath"` // 文件路径
IsEntering interface{} `orm:"is_entering" json:"isEntering"` // 路径内容是否存在1否 2是
StartTime interface{} `orm:"start_time" json:"startTime"` // 起始时间
EndTime interface{} `orm:"end_time" json:"endTime"` // 结束时间
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 录入者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,36 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-07-29 09:31:22
// 生成路径: internal/app/system/model/entity/bus_engineering_quality.go
// 生成人gfast
// desc:工程质量列
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEngineeringQuality is the golang structure for table bus_engineering_quality.
type BusEngineeringQuality struct {
gmeta.Meta `orm:"table:bus_engineering_quality, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 序号
UnitName1 interface{} `orm:"unit_name1" json:"unitName1"` // 单位工程
UnitName2 interface{} `orm:"unit_name2" json:"unitName2"` // 子单位工程
UnitName3 interface{} `orm:"unit_name3" json:"unitName3"` // 分部工程
UnitName4 interface{} `orm:"unit_name4" json:"unitName4"` // 子分部工程
UnitName5 interface{} `orm:"unit_name5" json:"unitName5"` // 分项工程
UnitName6 interface{} `orm:"unit_name6" json:"unitName6"` // 检验批
QualityName interface{} `orm:"quality_name" json:"qualityName"` // 工程项目名称
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目id
Status interface{} `orm:"status" json:"status"` // 施工类型状态
FileUrl interface{} `orm:"file_url" json:"fileUrl"` // 文件地址
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreateTime *gtime.Time `orm:"create_time" json:"createTime"` // 创建时间
UpdateTime *gtime.Time `orm:"update_time" json:"updateTime"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,31 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-07-29 11:14:45
// 生成路径: internal/app/system/model/entity/bus_equipment_equipment_unpacking.go
// 生成人gfast
// desc:开箱记录
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEquipmentEquipmentUnpacking is the golang structure for table bus_equipment_equipment_unpacking.
type BusEquipmentEquipmentUnpacking struct {
gmeta.Meta `orm:"table:bus_equipment_equipment_unpacking, do:true"`
UnpackingId interface{} `orm:"unpacking_id,primary" json:"unpackingId"` // 序号
EquipmentMaterialsId interface{} `orm:"equipment_materials_id" json:"equipmentMaterialsId"` // 设备id
UnpackingName interface{} `orm:"unpacking_name" json:"unpackingName"` // 开箱名称
UnpackingUrl interface{} `orm:"unpacking_url" json:"unpackingUrl"` // 开箱上传文件
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目id
Status interface{} `orm:"status" json:"status"` // 状态
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,44 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-07-29 11:14:16
// 生成路径: internal/app/system/model/entity/bus_equipment_materials.go
// 生成人gfast
// desc:材料/设备名称
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEquipmentMaterials is the golang structure for table bus_equipment_materials.
type BusEquipmentMaterials struct {
gmeta.Meta `orm:"table:bus_equipment_materials, do:true"`
EquipmentMaterialsId interface{} `orm:"equipment_materials_id,primary" json:"equipmentMaterialsId"` // 序号
EquipmentMaterialsName interface{} `orm:"equipment_materials_name" json:"equipmentMaterialsName"` // 材料/设备
CompanyId interface{} `orm:"company_id" json:"companyId"` // 公司
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目
TypeSpecificationName interface{} `orm:"type_specification_name" json:"typeSpecificationName"` // 规格型号
TypeSpecificationUrl interface{} `orm:"type_specification_url" json:"typeSpecificationUrl"` // 规格型号文件
CertificateConformityName interface{} `orm:"certificate_conformity_name" json:"certificateConformityName"` // 合格证编号
CertificateConformityUrl interface{} `orm:"certificate_conformity_url" json:"certificateConformityUrl"` // 合格证编号文件
QualityName interface{} `orm:"quality_name" json:"qualityName"` // 质量说明书编号
QualityUrl interface{} `orm:"quality_url" json:"qualityUrl"` // 质量说明书文件
InspectionReportName interface{} `orm:"inspection_report_name" json:"inspectionReportName"` // 检验报告编号
InspectionReportUrl interface{} `orm:"inspection_report_url" json:"inspectionReportUrl"` // 检验报告文件
ReexamineReportName interface{} `orm:"reexamine_report_name" json:"reexamineReportName"` // 复试报告编号
ReexamineReportUrl interface{} `orm:"reexamine_report_url" json:"reexamineReportUrl"` // 复试报告文件
UsePart interface{} `orm:"use_part" json:"usePart"` // 使用部位
WeightId interface{} `orm:"weight_id" json:"weightId"` // 计量单位
Remark interface{} `orm:"remark" json:"remark"` // 备注
QuantityCount interface{} `orm:"quantity_count" json:"quantityCount"` // 材料数量
Status interface{} `orm:"status" json:"status"` // 状态
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除视角
}

View File

@ -0,0 +1,37 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-09-13 14:21:30
// 生成路径: internal/app/system/model/entity/bus_equipment_materials_inventory.go
// 生成人gfast
// desc:设备材料入库
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEquipmentMaterialsInventory is the golang structure for table bus_equipment_materials_inventory.
type BusEquipmentMaterialsInventory struct {
gmeta.Meta `orm:"table:bus_equipment_materials_inventory, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
EquipmentMaterialsId interface{} `orm:"equipment_materials_id" json:"equipmentMaterialsId"` // 材料ID
OutPut interface{} `orm:"out_put" json:"outPut"` // 出入库
Number interface{} `orm:"number" json:"number"` // 数量
OutPutTime *gtime.Time `orm:"out_put_time" json:"outPutTime"` // 出入库时间
Residue interface{} `orm:"residue" json:"residue"` // 剩余库存数量
Operator interface{} `orm:"operator" json:"operator"` // 出入库负责人
Recipient interface{} `orm:"recipient" json:"recipient" dc:"交接单位"` //交接单位
Shipper interface{} `orm:"shipper" json:"shipper" dc:"领用人"` //领用人
Disposition interface{} `orm:"disposition"json:"disposition"dc:"处理方式"` //处理方式
Remark interface{} `orm:"remark" json:"remark"` // 备注
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除视角
Path interface{} `orm:"path" json:"path"` // 资源路径
}

View File

@ -0,0 +1,22 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// BusEquipmentMaterialsInventoryFile is the golang structure of table bus_equipment_materials_inventory_file for DAO operations like Where/Data.
type BusEquipmentMaterialsInventoryFile struct {
g.Meta `orm:"table:bus_equipment_materials_inventory_file, do:true"`
Id interface{} // 主键
MaterialsInventoryId interface{} // 设备材料Id
Name interface{} // 文件名字
Path interface{} // 文件路径
Suffix interface{} // 文件后缀
Size interface{} // 文件大小
CreatedAt *gtime.Time // 创建时间
}

View File

@ -0,0 +1,28 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-07-28 15:27:53
// 生成路径: internal/app/system/model/entity/bus_equipment_materials_weight.go
// 生成人gfast
// desc:计量单位
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEquipmentMaterialsWeight is the golang structure for table bus_equipment_materials_weight.
type BusEquipmentMaterialsWeight struct {
gmeta.Meta `orm:"table:bus_equipment_materials_weight, do:true"`
WeightId interface{} `orm:"weight_id,primary" json:"weightId"` // 序号
Weight interface{} `orm:"weight" json:"weight"` // 计量单位名称
Status interface{} `orm:"status" json:"status"` // 状态
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,25 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2024-03-20 19:38:54
// 生成路径: internal/app/system/model/entity/bus_essential_information.go
// 生成人gfast
// desc:项目基本信息
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/util/gmeta"
)
// BusEssentialInformation is the golang structure for table bus_essential_information.
type BusEssentialInformation struct {
gmeta.Meta `orm:"table:bus_essential_information, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 主键ID
One interface{} `orm:"one" json:"one"` // 发电量
Two interface{} `orm:"two" json:"two"` // 年发电量
Three interface{} `orm:"three" json:"three"` // 当前发电量
Four interface{} `orm:"four" json:"four"` // 减排量
Five interface{} `orm:"five" json:"five"` // 预估发电量
}

View File

@ -0,0 +1,32 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-09-15 17:15:59
// 生成路径: internal/app/system/model/entity/bus_folder.go
// 生成人gfast
// desc:文件夹
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusFolder is the golang structure for table bus_folder.
type BusFolder struct {
gmeta.Meta `orm:"table:bus_folder, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 序号
ProjectId interface{} `orm:"project_id" json:"projectId"` // 项目id
Father interface{} `orm:"father" json:"father"` // 大于0表示当前文件夹有父级
FolderType interface{} `orm:"folder_type" json:"folderType"` // 文件夹类型
Icon interface{} `orm:"icon" json:"icon"` // 文件夹图标
Name interface{} `orm:"name" json:"name"` // 文件夹名称
Remark interface{} `orm:"remark" json:"remark"` // 备注
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

View File

@ -0,0 +1,35 @@
// ==========================================================================
// GFast自动生成model entity操作代码。
// 生成日期2023-09-15 17:16:00
// 生成路径: internal/app/system/model/entity/bus_folder_file.go
// 生成人gfast
// desc:文件
// company:云南奇讯科技有限公司
// ==========================================================================
package do
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusFolderFile is the golang structure for table bus_folder_file.
type BusFolderFile struct {
gmeta.Meta `orm:"table:bus_folder_file, do:true"`
Id interface{} `orm:"id,primary" json:"id"` // 序号
ProjectId interface{} `orm:"project_id" json:"projectId"` // 項目id
FolderId interface{} `orm:"folder_id" json:"folderId"` // 所属文件夹
FileType interface{} `orm:"file_type" json:"fileType"` // 文件类型
Name interface{} `orm:"name" json:"name"` // 文件名称
Size interface{} `orm:"size" json:"size"` // 文件大小
Suffix interface{} `orm:"suffix" json:"suffix"` // 文件后缀
Path interface{} `orm:"path" json:"path"` // 文件路径
Remark interface{} `orm:"remark" json:"remark"` // 备注
CreateBy interface{} `orm:"create_by" json:"createBy"` // 创建者
UpdateBy interface{} `orm:"update_by" json:"updateBy"` // 更新者
UserType interface{} `orm:"user_type" json:"userType"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除时间
}

Some files were not shown because too many files have changed in this diff Show More