Explorar el Código

增加渠道权限检测

alexzy hace 2 meses
padre
commit
75640e5e5e
Se han modificado 1 ficheros con 15 adiciones y 0 borrados
  1. 15 0
      src/promote/PromoteAuthRuleServiceInterface.php

+ 15 - 0
src/promote/PromoteAuthRuleServiceInterface.php

@@ -0,0 +1,15 @@
+<?php
+
+namespace Yxy\Service\promote;
+
+interface PromoteAuthRuleServiceInterface
+{
+    /**
+     * cps渠道权限检测
+     * @param string $name 权限名称
+     * @param int $promote_id 渠道id
+     * @return bool
+     */
+    public function check(string $name, int $promote_id): bool;
+
+}