2025-01-03 15:28:36 +08:00
|
|
|
|
package proto
|
|
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
|
|
type FileUploadReq struct {
|
|
|
|
|
|
UploadType string `json:"upload_type" form:"upload_type" binding:"required"`
|
|
|
|
|
|
AuthType string `json:"auth_type" form:"auth_type"`
|
|
|
|
|
|
Md5 string `json:"md5" form:"md5"` //文件md5值
|
|
|
|
|
|
Type string `json:"type" form:"type"` //类型,im,avatar,file,config,config为系统文件
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ConfigFileReq struct {
|
2025-01-03 15:57:18 +08:00
|
|
|
|
ID int `json:"id" form:"id"`
|
|
|
|
|
|
Type string `json:"type" form:"type"` //查询类型,one,all
|
|
|
|
|
|
DelFile bool `json:"del_file"` //删除文件
|
|
|
|
|
|
FileName string `json:"file_name" form:"file_name"`
|
|
|
|
|
|
FilePath string `json:"file_path" form:"file_path"`
|
|
|
|
|
|
Content string `json:"content" form:"content"`
|
2025-01-03 15:28:36 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-01-03 16:10:29 +08:00
|
|
|
|
type AddConfigFileReq struct {
|
|
|
|
|
|
FileName string `json:"file_name" form:"file_name" required:"true"`
|
|
|
|
|
|
FilePath string `json:"file_path" form:"file_path" required:"true"`
|
|
|
|
|
|
}
|
2025-01-03 15:28:36 +08:00
|
|
|
|
type SearchOneConfigFileResp struct {
|
|
|
|
|
|
ID uint `json:"id" form:"id"`
|
|
|
|
|
|
CreatedAt time.Time `json:"created_at" form:"created_at"`
|
|
|
|
|
|
UpdatedAt time.Time `json:"updated_at" form:"updated_at"`
|
|
|
|
|
|
FileName string `json:"file_name" form:"file_name"`
|
|
|
|
|
|
FilePath string `json:"file_path" form:"file_path"`
|
|
|
|
|
|
Content string `json:"content" form:"content"`
|
|
|
|
|
|
}
|