From ed81fc8d860adb66676d4990e4ce0ff56cff79a6 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期三, 22 十一月 2023 19:48:16 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/WMS

---
 constvar/const.go |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/constvar/const.go b/constvar/const.go
index ff95383..bcbb44c 100644
--- a/constvar/const.go
+++ b/constvar/const.go
@@ -176,6 +176,7 @@
 	OperationStatus_Waiting                            //姝e湪绛夊緟
 	OperationStatus_Ready                              //灏辩华
 	OperationStatus_Finish                             //瀹屾垚
+	OperationStatus_Cancel                             //瀹屾垚
 )
 
 type PostType int
@@ -199,3 +200,33 @@
 	UserTypePrimary                     // 涓昏处鎴�
 	UserTypeSub                         // 瀛愯处鎴�
 )
+
+type FileType string
+
+const (
+	FileType_File      FileType = "file"      //鏂囦欢
+	FileType_Picture   FileType = "picture"   //鍥剧墖
+	FileType_Thumbnail FileType = "thumbnail" //缂╃暐鍥�
+)
+
+var FileExtMap = map[string]FileType{
+	"doc":  FileType_File,
+	"docx": FileType_File,
+	"xls":  FileType_File,
+	"xlsx": FileType_File,
+	"txt":  FileType_File,
+}
+
+var PicExtMap = map[string]FileType{
+	"jpg":  FileType_Picture,
+	"jpeg": FileType_Picture,
+	"png":  FileType_Picture,
+	"svg":  FileType_Picture,
+}
+
+type FileTemplateCategory int
+
+const (
+	FileTemplateCategory_Selfmade FileTemplateCategory = iota + 1 //鍏ュ簱-鑷埗
+	FileTemplateCategory_Output                                   //鍑哄簱
+)

--
Gitblit v1.8.0