|
|
@@ -125,3 +125,63 @@ func (h Hr) AfterClassAddClassDetail(token string, objectShopId int64, jsonStr s
|
|
|
}
|
|
|
return rst
|
|
|
}
|
|
|
+
|
|
|
+func (h Hr) HrClassStartPrepare(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
+ optId := h.checkPermission(token, objectShopId)
|
|
|
+
|
|
|
+ rst, err := postgre.PGHr{}.HrClassStartPrepare(optId, objectShopId, jsonStr, sign)
|
|
|
+ if err != nil {
|
|
|
+ panic(errors.PGError)
|
|
|
+ }
|
|
|
+ return rst
|
|
|
+}
|
|
|
+
|
|
|
+func (h Hr) HrClassDetailAdd(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
+ optId := h.checkPermission(token, objectShopId)
|
|
|
+
|
|
|
+ rst, err := postgre.PGHr{}.HrClassDetailAdd(optId, objectShopId, jsonStr, sign)
|
|
|
+ if err != nil {
|
|
|
+ panic(errors.PGError)
|
|
|
+ }
|
|
|
+ return rst
|
|
|
+}
|
|
|
+
|
|
|
+func (h Hr) HrClassDetailDel(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
+ optId := h.checkPermission(token, objectShopId)
|
|
|
+
|
|
|
+ rst, err := postgre.PGHr{}.HrClassDetailDel(optId, objectShopId, jsonStr, sign)
|
|
|
+ if err != nil {
|
|
|
+ panic(errors.PGError)
|
|
|
+ }
|
|
|
+ return rst
|
|
|
+}
|
|
|
+
|
|
|
+func (h Hr) HrClassDetailStatusEdit(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
+ optId := h.checkPermission(token, objectShopId)
|
|
|
+
|
|
|
+ rst, err := postgre.PGHr{}.HrClassDetailStatusEdit(optId, objectShopId, jsonStr, sign)
|
|
|
+ if err != nil {
|
|
|
+ panic(errors.PGError)
|
|
|
+ }
|
|
|
+ return rst
|
|
|
+}
|
|
|
+
|
|
|
+func (h Hr) HrClassStartConfirm(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
+ optId := h.checkPermission(token, objectShopId)
|
|
|
+
|
|
|
+ rst, err := postgre.PGHr{}.HrClassStartConfirm(optId, objectShopId, jsonStr, sign)
|
|
|
+ if err != nil {
|
|
|
+ panic(errors.PGError)
|
|
|
+ }
|
|
|
+ return rst
|
|
|
+}
|
|
|
+
|
|
|
+func (h Hr) HrClassGiveUpConfirm(token string, objectShopId int64, jsonStr string, sign string) string {
|
|
|
+ optId := h.checkPermission(token, objectShopId)
|
|
|
+
|
|
|
+ rst, err := postgre.PGHr{}.HrClassGiveUpConfirm(optId, objectShopId, jsonStr, sign)
|
|
|
+ if err != nil {
|
|
|
+ panic(errors.PGError)
|
|
|
+ }
|
|
|
+ return rst
|
|
|
+}
|