初始
This commit is contained in:
47
internal/app/system/model/sys_file.go
Normal file
47
internal/app/system/model/sys_file.go
Normal file
@ -0,0 +1,47 @@
|
||||
// ==========================================================================
|
||||
// GFast自动生成model操作代码。
|
||||
// 生成日期:2023-07-29 15:32:09
|
||||
// 生成路径: internal/app/system/model/sys_file.go
|
||||
// 生成人:gfast
|
||||
// desc:文件
|
||||
// company:云南奇讯科技有限公司
|
||||
// ==========================================================================
|
||||
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"github.com/gogf/gf/v2/util/gmeta"
|
||||
)
|
||||
|
||||
// SysFileInfoRes is the golang structure for table sys_file.
|
||||
type SysFileInfoRes struct {
|
||||
gmeta.Meta `orm:"table:sys_file"`
|
||||
FileId int `orm:"file_id,primary" json:"fileId"` // 文件id
|
||||
ParentId int `orm:"parent_id" json:"parentId"` // 父文件id
|
||||
Ancestors string `orm:"ancestors" json:"ancestors"` // 祖级列表
|
||||
FileName string `orm:"file_name" json:"fileName"` // 文件名称
|
||||
OrderNum int `orm:"order_num" json:"orderNum"` // 显示顺序
|
||||
ProjectId int64 `orm:"project_id" json:"projectId"` // 项目id
|
||||
FileTypeId int `orm:"file_type_id" json:"fileTypeId"` // 文件夹类型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 SysFileListRes struct {
|
||||
FileId int `json:"fileId"`
|
||||
ParentId int `json:"parentId"`
|
||||
Ancestors string `json:"ancestors"`
|
||||
FileName string `json:"fileName"`
|
||||
OrderNum int `json:"orderNum"`
|
||||
ProjectId int64 `json:"projectId"`
|
||||
FileTypeId int `json:"fileTypeId"`
|
||||
Leader string `json:"leader"`
|
||||
Status string `json:"status"`
|
||||
CreatedAt *gtime.Time `json:"createdAt"`
|
||||
}
|
Reference in New Issue
Block a user