52 lines
2.9 KiB
Go
52 lines
2.9 KiB
Go
|
// ==========================================================================
|
|||
|
// 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"`
|
|||
|
}
|