// ========================================================================== // GFast自动生成model操作代码。 // 生成日期:2023-12-27 09:30:04 // 生成路径: internal/app/system/model/document_data.go // 生成人:gfast // desc:工程资料>资料 // company:云南奇讯科技有限公司 // ========================================================================== package model import ( "github.com/gogf/gf/v2/os/gtime" "github.com/gogf/gf/v2/util/gmeta" ) // DocumentDataInfoRes is the golang structure for table document_data. type DocumentDataInfoRes struct { gmeta.Meta `orm:"table:document_data"` Id int64 `orm:"id,primary" json:"id"` // ProjectId int64 `orm:"project_id" json:"projectId"` // IdStr string `orm:"id_str" json:"idStr"` // 模板id Pid string `orm:"pid" json:"pid"` // 父级(0代表顶级) Name string `orm:"name" json:"name"` // 模板名称 FilenPath string `orm:"filen_path" json:"filenPath"` // 模板文件名 Type string `orm:"type" json:"type"` // 类型(1文件-2文件夹) Suffix string `orm:"suffix" json:"suffix"` // 后缀 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"` // 删除时间 FilenPathCoding string `orm:"filenPathCoding" json:"filenPathCoding"` } type DocumentDataListRes struct { Id int64 `json:"id"` ProjectId int64 `json:"projectId"` IdStr string `json:"idStr"` Pid string `json:"pid"` Name string `json:"name"` FilenPath string `json:"filenPath"` FilenPathCoding string `json:"filenPathCoding"` Type string `json:"type"` Suffix string `json:"suffix"` CreateBy string `json:"createBy"` UpdateBy string `json:"updateBy"` CreatedAt *gtime.Time `json:"createdAt"` } type DocumentDataListTwoRes struct { DocumentDataListRes ProjectName string `json:"projectName"` ShortName string `json:"shortName"` } type TreeStructureDataRes struct { gmeta.Meta `orm:"table:document_data"` Id int64 `json:"id"` IdStr string `json:"idStr"` Pid string `json:"pid"` Name string `json:"name"` Type string `json:"type"` FilenPath string `json:"filenPath"` TreeStructureDataRes []*TreeStructureDataRes `json:"treeStructureDataRes" orm:"with:pid=id_str, where:type=2 and id_str!=''" ` }