Merge branch 'dev' into branch-dev

This commit is contained in:
2025-03-07 09:09:51 +08:00
44 changed files with 3988 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace App\Constants\Admin;
use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;
#[Constants]
class DepotCode extends AbstractConstants
{
/***
* @var int 1=未删除 2=已删除
*/
const int IS_NO_DEL = 1;
const int IS_DEL = 2;
/***
* @var int 1=已入库 2=已出库
*/
const INT INPUT = 1;
const INT OUTPUT = 2;
}

View File

@@ -0,0 +1,13 @@
<?php
namespace App\Constants\Common;
class DishCode
{
/***
* @var int 1=未删除 2=已删除
*/
const int IS_NO_DEL = 1;
const int IS_DELETE = 2;
}

View File

@@ -0,0 +1,39 @@
<?php
namespace App\Constants\Common;
use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;
#[Constants]
class MaterialCode extends AbstractConstants
{
/**
* 未删除
*/
const int IS_NO_DEL = 1;
/**
* 已删除
*/
const int IS_DEL = 2;
/**
* 启用
*/
const int ENABLE = 1;
/**
* 禁用
*/
const int DISABLE = 2;
const int UN_AUDIT = 1;
const int AUDITED = 2;
const int AUDIT_REFUSE = 3;
const int PART_OUT = 4;
const int ALL_OUT = 5;
}

View File

@@ -14,4 +14,5 @@ class RoleCode
const int MARKETPLACE = 6;
const int CHEF = 7;
const int DRIVER = 8;
const int WAREHOUSE = 9;
}