From ccc4c924d81c3f8201e7a6c783a9a7148b21670d Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 12 九月 2023 17:43:42 +0800
Subject: [PATCH] 公司增删改查,业务类型增删改查

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

diff --git a/constvar/const.go b/constvar/const.go
index c2ae672..f5a9589 100644
--- a/constvar/const.go
+++ b/constvar/const.go
@@ -1 +1,43 @@
 package constvar
+
+type BaseJobType int
+
+const (
+	BaseJobTypeIncoming BaseJobType = iota + 1 //鏀惰揣
+	BaseJobTypeOutgoing                        //浜よ揣
+	BaseJobTypeInternal                        //鍐呴儴璋冩嫧
+)
+
+func (slf BaseJobType) IsValid() bool {
+	return slf == BaseJobTypeIncoming ||
+		slf == BaseJobTypeOutgoing ||
+		slf == BaseJobTypeInternal
+}
+
+type ReservationMethod int
+
+const (
+	ReservationMethodAtConfirm ReservationMethod = iota + 1 //鍦ㄧ‘璁ゆ椂
+	ReservationMethodManual                                 //鎵嬪姩
+	ReservationMethodByDate                                 //鍦ㄩ瀹氭棩鏈熶箣鍓�
+)
+
+func (slf ReservationMethod) IsValid() bool {
+	return slf == ReservationMethodAtConfirm ||
+		slf == ReservationMethodManual ||
+		slf == ReservationMethodByDate
+}
+
+type WhetherType int
+
+const (
+	WhetherTypeAsk    WhetherType = iota + 1 //璇㈤棶
+	WhetherTypeAlways                        //鎬绘槸
+	ReservationNever                         //浠庝笉
+)
+
+func (slf WhetherType) IsValid() bool {
+	return slf == WhetherTypeAsk ||
+		slf == WhetherTypeAlways ||
+		slf == ReservationNever
+}

--
Gitblit v1.8.0