d4bed3e5c7
* fix bug * updata UI * 0.3.2 ### Added - [Files] Files can now be selected multiple files and downloaded, deleted, moved, etc. - [Apps] Support to modify the application opening address.([#204](https://github.com/IceWhaleTech/CasaOS/issues/204)) ### Changed - [Apps] Hide the display of non-essential environment variables in the application. - [System] Network, disk, cpu, memory, etc. information is modified to be pushed via socket. - [System] Optimize opening speed.([#214](https://github.com/IceWhaleTech/CasaOS/issues/214)) ### Fixed - [System] Fixed the problem that sync data cannot submit the device ID ([#68](https://github.com/IceWhaleTech/CasaOS/issues/68)) - [Files] Fixed the code editor center alignment display problem.([#210](https://github.com/IceWhaleTech/CasaOS/issues/210)) - [Files] Fixed the problem of wrong name when downloading files.([#240](https://github.com/IceWhaleTech/CasaOS/issues/240)) - [System] Fixed the network display as a negative number problem.([#224](https://github.com/IceWhaleTech/CasaOS/issues/224)) * Modify log help class * Fix some bugs in 0.3.2 * Solve the operation file queue problem * Exclude web folders * update UI
31 lines
940 B
Go
31 lines
940 B
Go
/*
|
|
* @Author: LinkLeong link@icewhale.com
|
|
* @Date: 2022-05-20 16:27:12
|
|
* @LastEditors: LinkLeong
|
|
* @LastEditTime: 2022-06-08 15:40:33
|
|
* @FilePath: /CasaOS/model/file.go
|
|
* @Description:
|
|
* @Website: https://www.casaos.io
|
|
* Copyright (c) 2022 by icewhale, All Rights Reserved.
|
|
*/
|
|
package model
|
|
|
|
type FileOperate struct {
|
|
Type string `json:"type" binding:"required"`
|
|
Item []FileItem `json:"item" binding:"required"`
|
|
TotalSize int64 `json:"total_size"`
|
|
ProcessedSize int64 `json:"processed_size"`
|
|
To string `json:"to" binding:"required"`
|
|
}
|
|
|
|
type FileItem struct {
|
|
From string `json:"from" binding:"required"`
|
|
Finished bool `json:"finished"`
|
|
Size int64 `json:"size"`
|
|
ProcessedSize int64 `json:"processed_size"`
|
|
}
|
|
|
|
type FileUpdate struct {
|
|
FilePath string `json:"path" binding:"required"`
|
|
FileContent string `json:"content" binding:"required"`
|
|
}
|