海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
500 B

4 years ago
  1. <?php
  2. namespace App\Common;
  3. /**
  4. * 产品状态,包括供应商产品和代理商产品
  5. * Class UserStatus
  6. * @package App\Common
  7. */
  8. class ProductStatus
  9. {
  10. const ON_SALE = 1; //正常在售状态
  11. const UNAUDITED = 0; //未审核状态
  12. const REFUSE = -1; //审核拒绝
  13. const SOLD_OUT = -2; //下架
  14. public static function array(): array
  15. {
  16. return [
  17. self::ON_SALE => '在售',
  18. self::UNAUDITED => '未审核',
  19. self::REFUSE => '拒绝',
  20. self::SOLD_OUT => '下架',
  21. ];
  22. }
  23. }