baotian
2024-06-04 b959135a1139fb66646523d92e5bd20c5910f283
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
namespace iWare.Wms.Application
{
    /// <summary>
    /// 上传文件参数
    /// </summary>
    public class FileOutput
    {
        /// <summary>
        /// 文件Id
        /// </summary>
        public long Id { get; set; }
 
        /// <summary>
        /// 文件存储位置(1:阿里云,2:腾讯云,3:minio,4:本地)
        /// </summary>
        public int FileLocation { get; set; }
 
        /// <summary>
        /// 文件仓库
        /// </summary>
        public string FileBucket { get; set; }
 
        /// <summary>
        /// 文件名称(上传时候的文件名)
        /// </summary>
        public string FileOriginName { get; set; }
 
        /// <summary>
        /// 文件后缀
        /// </summary>
        public string FileSuffix { get; set; }
 
        /// <summary>
        /// 文件大小kb
        /// </summary>
        public long FileSizeKb { get; set; }
 
        /// <summary>
        /// 文件大小信息,计算后的
        /// </summary>
        public string FileSizeInfo { get; set; }
 
        /// <summary>
        /// 存储到bucket的名称(文件唯一标识id)
        /// </summary>
        public string FileObjectName { get; set; }
 
        /// <summary>
        /// 存储路径
        /// </summary>
        public string FilePath { get; set; }
    }
 
    /// <summary>
    /// k-form-design所需参数要求
    /// </summary>
    public class KFormFileOutput
    {
        public int code { get; set; }
        public KFormFileIrem Data { get; set; }
    }
 
    public class KFormFileIrem
    {
        /// <summary>
        /// 文件ID
        /// </summary>
        public long FileId { get; set; }
 
        /// <summary>
        /// 文件下载地址
        /// </summary>
        public string Url { get; set; }
    }
}