init: 项目初始代码

This commit is contained in:
2026-10-14 14:00:29 +08:00
commit cc434cf89f
464 changed files with 66984 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace app\api\validate;
use think\Validate;
class CouponSubscribe extends Validate
{
/**
* 定义验证规则
* 格式:'字段名' => ['规则1','规则2'...]
*
* @var array
*/
protected $rule = [
'id' => ['integer'],
'platform_id' => ['integer','gt:0'],
'site_id' => ['integer','gt:0'],
'goods_coupon_id' => ['integer','gt:0'],
'email' => ['email'],
];
/**
* 定义错误信息
* 格式:'字段名.规则名' => '错误信息'
*
* @var array
*/
protected $message = [];
}