package file

type BaseField struct {
	UserName string `form:"user_name" json:"user_name"  binding:"required,min=3"` // 必填、对于文本,表示它的长度>=1

}

type FileInfo struct {
	FileName string `form:"file_name" json:"file_name"  binding:"required"` // 文件名必填
	Path     string `form:"file_path" json:"file_path" binding:"required"`  // 文件路径必填
}

type Folder struct {
	FoldereName string `form:"folder_name" json:"folder_name"  binding:"required"` // 文件夹名必填
	FolderPath  string `form:"folder_path" json:"folder_path" binding:"required"`  // 文件夹路径必填
}

type Filename struct {
	//O_FileName string `form:"oldname" json:"oldname"  binding:"required"` // 旧文件名
	N_FileName string `form:"newname" json:"newname"  binding:"required"` // 新文件名
}

type Filepath struct {
	//O_FilePath string `form:"oldpath" json:"oldpath"  binding:"required"` // 旧文件路径
	N_FilePath string `form:"newpath" json:"newpath"  binding:"required"` // 新文件路径
}

type FileUpload struct {
	FileName string `form:"file_name" json:"file_name"  binding:"required"` // 文件名必填
	SavePath string `form:"save_path" json:"save_path" binding:"required"`  // 保存路径必填
}
